[ammarfaizi2-block:bp/bp/test 23/23] arch/x86/kernel/cpu/mce/amd.c:726:1: warning: 'inline' is not at beginning of declaration

From: kernel test robot
Date: Sun Apr 03 2022 - 12:31:44 EST


tree: https://github.com/ammarfaizi2/linux-block bp/bp/test
head: aff0e90f2a981e0350187c8a931071d7f35df6e5
commit: aff0e90f2a981e0350187c8a931071d7f35df6e5 [23/23] x86/mce: Define a function to extract ErrorAddr from MCA_ADDR
config: x86_64-defconfig (https://download.01.org/0day-ci/archive/20220404/202204040044.xPo5Hahu-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.2.0-19) 11.2.0
reproduce (this is a W=1 build):
# https://github.com/ammarfaizi2/linux-block/commit/aff0e90f2a981e0350187c8a931071d7f35df6e5
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block bp/bp/test
git checkout aff0e90f2a981e0350187c8a931071d7f35df6e5
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/kernel/cpu/mce/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> arch/x86/kernel/cpu/mce/amd.c:726:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration]
726 | void __always_inline smca_extract_err_addr(struct mce *m)
| ^~~~


vim +/inline +726 arch/x86/kernel/cpu/mce/amd.c

724
725 /* Extract [55:<lsb>] where lsb is the LS-*valid* bit of the address bits. */
> 726 void __always_inline smca_extract_err_addr(struct mce *m)
727 {
728 u8 lsb;
729
730 if (!mce_flags.smca)
731 return;
732
733 lsb = (m->addr >> 56) & 0x3f;
734
735 m->addr &= GENMASK_ULL(55, lsb);
736 }
737

--
0-DAY CI Kernel Test Service
https://01.org/lkp