]> git.itanic.dy.fi Git - linux-stable/commit
staging: rtl8712, rtl8712: avoid lots of build warnings
authorArnd Bergmann <arnd@arndb.de>
Thu, 5 Jun 2014 20:48:15 +0000 (22:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Jun 2015 15:19:31 +0000 (08:19 -0700)
commitfa89009a1869844f9a9360eb07c45d457446ac0e
treea7465403d73b66cb1304b754eacd37efcb47ee2e
parentc3d1409f854af336108600edcd967feacf4cbd24
staging: rtl8712, rtl8712: avoid lots of build warnings

commit 0c9f3a65c5eb7fe1fc611a22eb8a8b71ea865998 upstream.

The rtl8712 driver has an 'extern inline' function that contains an
'if', which causes lots of warnings with CONFIG_PROFILE_ALL_BRANCHES
overriding the definition of 'if':

drivers/staging/rtl8712/ieee80211.h:759:229: warning: '______f' is static but declared in inline function 'ieee80211_get_hdrlen' which is not static [enabled by default]

This changes the driver to use 'static inline' instead, which happens
to be the correct annotation anyway.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Florian Schilhabel <florian.c.schilhabel@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8187se/ieee80211/ieee80211.h
drivers/staging/rtl8192u/ieee80211/ieee80211.h
drivers/staging/rtl8712/ieee80211.h