public inbox for [email protected]
 help / color / mirror / Atom feed
* [ammarfaizi2-block:bp/bp/test 23/23] arch/x86/kernel/cpu/mce/amd.c:726:1: warning: 'inline' is not at beginning of declaration
@ 2022-04-03 16:30 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-04-03 16:30 UTC (permalink / raw)
  To: Smita Koralahalli
  Cc: kbuild-all, GNU/Weeb Mailing List, linux-kernel, Borislav Petkov,
	Yazen Ghannam

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/[email protected]/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 <[email protected]>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-03 16:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-03 16:30 [ammarfaizi2-block:bp/bp/test 23/23] arch/x86/kernel/cpu/mce/amd.c:726:1: warning: 'inline' is not at beginning of declaration kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox