]> git.karo-electronics.de Git - linux-beck.git/commit
lib/mpi: use "static inline" instead of "extern inline"
authorArnd Bergmann <arnd@arndb.de>
Fri, 26 Feb 2016 12:46:27 +0000 (13:46 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 27 Feb 2016 19:26:34 +0000 (03:26 +0800)
commit9c6bd0c2f103f4748cb4abcaf141f7d11aabfe9f
tree178d424cb723b82e2ab2393e0806ab18bb1cf8a7
parentc5d552487b9eb116b61032239ffb2f8d192f19b8
lib/mpi: use "static inline" instead of "extern inline"

When we use CONFIG_PROFILE_ALL_BRANCHES, every 'if()' introduces
a static variable, but that is not allowed in 'extern inline'
functions:

mpi-inline.h:116:204: warning: '______f' is static but declared in inline function 'mpihelp_sub' which is not static
mpi-inline.h:113:184: warning: '______f' is static but declared in inline function 'mpihelp_sub' which is not static
mpi-inline.h:70:184: warning: '______f' is static but declared in inline function 'mpihelp_add' which is not static
mpi-inline.h:56:204: warning: '______f' is static but declared in inline function 'mpihelp_add_1' which is not static

This changes the MPI code to use 'static inline' instead, to get
rid of hundreds of warnings.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
lib/mpi/mpi-inline.h
lib/mpi/mpi-internal.h