diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-02-26 13:46:27 +0100 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2020-04-07 11:09:46 +0200 |
commit | d3add33ae8a9f25b031ea00deef932974482c230 (patch) | |
tree | a2575abe0621f2da7cc532a20e16ce27e952c98b /include/asm-generic/bug.h | |
parent | 6437fe91ef4d922a30cf6d5064013baab91c1578 (diff) |
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>
(cherry picked from commit 9c6bd0c2f103f4748cb4abcaf141f7d11aabfe9f)
Diffstat (limited to 'include/asm-generic/bug.h')
0 files changed, 0 insertions, 0 deletions