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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:   Thu, 11 Aug 2022 11:00:26 +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/18] 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:   6dfac91d7af3a05b518c7063b10fe5e86cc96412
commit: be69ae055fb2ad4a855deab9a535f62450af7ba3 [10/18] cxl/pmem: Add "Unlock" security command support
config: x86_64-randconfig-a002 (https://download.01.org/0day-ci/archive/20220811/202208111011.CGpGPHmA-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=be69ae055fb2ad4a855deab9a535f62450af7ba3
        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 be69ae055fb2ad4a855deab9a535f62450af7ba3
        # 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:123:9: note: in expansion of macro 'flush_cache_all'
     123 |         flush_cache_all();
         |         ^~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


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

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

:::::: The code at line 15 was first introduced by commit
:::::: 647bce130827c98324f56ab35d377978e7262c57 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