]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
staging: wlags49_h2: avoid PROFILE_ALL_BRANCHES warnings
authorArnd Bergmann <arnd@arndb.de>
Thu, 5 Jun 2014 20:48:14 +0000 (22:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jun 2014 00:10:12 +0000 (17:10 -0700)
commit07d3bf6b5ee5c411573a2dacfaed4c9133255de9
tree20661101a010c830c0e7938eba056eee8d86d8e8
parentc72374ff0d4c66c548a68637d1f0adcd9a788c4a
staging: wlags49_h2: avoid PROFILE_ALL_BRANCHES warnings

Using an 'if()' inside of an 'extern inline' function causes
a gcc warning when CONFIG_PROFILE_ALL_BRANCHES is set every
time the function is called, which gets very noisy:

In file included from /git/arm-soc/drivers/staging/wlags49_h2/wl_wext.c:73:0:
drivers/staging/wlags49_h2/wl_internal.h:1035:216: warning: '______f' is static but declared in inline function 'wl_act_int_off' which is not static [enabled by default]
  if(lp->is_handling_int == WL_HANDLING_INT) {

Fortunately there is a trivial workaround, so we can avoid
the problem by making the functions in question 'static inline'
rather than 'extern inline'.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Henk de Groot <pe1dnn@amsat.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlags49_h2/wl_internal.h