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: <202207230443.XqQnDddU-lkp@intel.com>
Date:   Sat, 23 Jul 2022 04:08:06 +0800
From:   kernel test robot <lkp@...el.com>
To:     Dave Jiang <dave.jiang@...el.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [djiang:cxl-security 10/16] arch/x86/include/asm/cacheflush.h:15:9:
 error: implicit declaration of function 'wbinvd_on_all_cpus'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/djiang/linux.git cxl-security
head:   a9e386b59eef5db739f0706d734daa39759dab96
commit: abef64ac4e6fcd42bddc34994ee00ee33b7d6686 [10/16] cxl/pmem: Add "Unlock" security command support
config: x86_64-randconfig-a002 (https://download.01.org/0day-ci/archive/20220723/202207230443.XqQnDddU-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/djiang/linux.git/commit/?id=abef64ac4e6fcd42bddc34994ee00ee33b7d6686
        git remote add djiang https://git.kernel.org/pub/scm/linux/kernel/git/djiang/linux.git
        git fetch --no-tags djiang cxl-security
        git checkout abef64ac4e6fcd42bddc34994ee00ee33b7d6686
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/cxl/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

   In file included from include/linux/cacheflush.h:5,
                    from include/linux/highmem.h:8,
                    from include/linux/bvec.h:10,
                    from include/linux/blk_types.h:10,
                    from include/linux/bio.h:10,
                    from include/linux/libnvdimm.h:14,
                    from drivers/cxl/security.c:3:
   drivers/cxl/security.c: In function 'cxl_pmem_security_unlock':
>> arch/x86/include/asm/cacheflush.h:15:9: error: implicit declaration of function 'wbinvd_on_all_cpus' [-Werror=implicit-function-declaration]
      15 |         wbinvd_on_all_cpus();   \
         |         ^~~~~~~~~~~~~~~~~~
   drivers/cxl/security.c:133:9: note: in expansion of macro 'flush_cache_all'
     133 |         flush_cache_all();
         |         ^~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/wbinvd_on_all_cpus +15 arch/x86/include/asm/cacheflush.h

b2bba72c10cdd9 include/asm-x86/cacheflush.h      Thomas Gleixner 2007-10-15  12  
86257bb97c28b5 arch/x86/include/asm/cacheflush.h Davidlohr Bueso 2022-07-12  13  #define flush_cache_all()	\
86257bb97c28b5 arch/x86/include/asm/cacheflush.h Davidlohr Bueso 2022-07-12  14  do {				\
86257bb97c28b5 arch/x86/include/asm/cacheflush.h Davidlohr Bueso 2022-07-12 @15  	wbinvd_on_all_cpus();	\
86257bb97c28b5 arch/x86/include/asm/cacheflush.h Davidlohr Bueso 2022-07-12  16  } while (0);			\
86257bb97c28b5 arch/x86/include/asm/cacheflush.h Davidlohr Bueso 2022-07-12  17  

:::::: The code at line 15 was first introduced by commit
:::::: 86257bb97c28b5c4c183ae2395db09e76fde198a x86: define flush_cache_all as global wbinvd

:::::: TO: Davidlohr Bueso <dave@...olabs.net>
:::::: CC: Dave Jiang <dave.jiang@...el.com>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ