From: Arnd Bergmann Date: Thu, 5 Jun 2014 20:48:15 +0000 (+0200) Subject: staging: rtl8712, rtl8712: avoid lots of build warnings X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~1719 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c9f3a65c5eb7fe1fc611a22eb8a8b71ea865998;p=pandora-kernel.git staging: rtl8712, rtl8712: avoid lots of build warnings 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 Cc: Larry Finger Cc: Florian Schilhabel Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed