aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2015-01-28 16:00:11 +0100
committerCorey Minyard <[email protected]>2015-02-19 20:58:18 -0600
commit191cc41405188780e5f8f3c90d84a1e747d962e9 (patch)
treeddc2a596ae5f6abfe58271ffec0417f40685f05c /net/lapb/lapb_iface.c
parent48862ea2ce86370b708614506d93f07ed09b066f (diff)
ipmi: avoid gcc warning
A new harmless warning has come up on ARM builds with gcc-4.9: drivers/char/ipmi/ipmi_msghandler.c: In function 'smi_send.isra.11': include/linux/spinlock.h:372:95: warning: 'flags' may be used uninitialized in this function [-Wmaybe-uninitialized] raw_spin_unlock_irqrestore(&lock->rlock, flags); ^ drivers/char/ipmi/ipmi_msghandler.c:1490:16: note: 'flags' was declared here unsigned long flags; ^ This could be worked around by initializing the 'flags' variable, but it seems better to rework the code to avoid this. Signed-off-by: Arnd Bergmann <[email protected]> Fixes: 7ea0ed2b5be81 ("ipmi: Make the message handler easier to use for SMI interfaces") Signed-off-by: Corey Minyard <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions