Hi, On Sun, Oct 11, 2015 at 05:42:05PM +0300, Antti Palosaari wrote: > Moikka! > IMHO it is false positive. Variable which is defined on line 777 is used > just few lines later on line 782 as can be seen easily. I think it is > because option CONFIG_DYNAMIC_DEBUG is not set => dev_dbg_ratelimited() > macro is likely just NOP and gives that warning. Maybe some more logic to is > needed in order to avoid that kind of warnings. You can flag it with __maybe_unused: struct usb_interface __maybe_unused *intf = dev->intf; -- Sebastian
Attachment:
signature.asc
Description: PGP signature