]> git.baikalelectronics.ru Git - kernel.git/commit
block: Change extern inline to static inline
authorTobias Klauser <tklauser@distanz.ch>
Fri, 18 Nov 2016 14:16:06 +0000 (15:16 +0100)
committerJens Axboe <axboe@fb.com>
Fri, 18 Nov 2016 14:44:23 +0000 (07:44 -0700)
commit6751a78692d5faf7a04f45af16abea75359a8f30
treebeeb094ffe8efe3a73643e47d58e6e4653aaf69b
parentc63484cd26681309a89c92a1072bb51e9b3e1952
block: Change extern inline to static inline

With compilers which follow the C99 standard (like modern versions of
gcc and clang), "extern inline" does the opposite thing from older
versions of gcc (emits code for an externally linkable version of the
inline function).

"static inline" does the intended behavior in all cases instead.

Description taken from commit e8caa4042780 ("staging, rtl8192e,
LLVMLinux: Change extern inline to static inline").

This also fixes the following GCC warning when building with CONFIG_PM
disabled:

  ./include/linux/blkdev.h:1143:20: warning: no previous prototype for 'blk_set_runtime_active' [-Wmissing-prototypes]

Fixes: 6f219e36b906 ("block: Add blk_set_runtime_active()")
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/blkdev.h