lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202204040044.xPo5Hahu-lkp@intel.com>
Date:   Mon, 4 Apr 2022 00:30:51 +0800
From:   kernel test robot <lkp@...el.com>
To:     Smita Koralahalli <Smita.KoralahalliChannabasappa@....com>
Cc:     kbuild-all@...ts.01.org,
        GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
        linux-kernel@...r.kernel.org, Borislav Petkov <bp@...e.de>,
        Yazen Ghannam <yazen.ghannam@....com>
Subject: [ammarfaizi2-block:bp/bp/test 23/23]
 arch/x86/kernel/cpu/mce/amd.c:726:1: warning: 'inline' is not at beginning
 of declaration

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@intel.com/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@...el.com>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ