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]
Date:   Sat, 22 Jan 2022 21:13:29 +0800
From:   kernel test robot <lkp@...el.com>
To:     Ben Widawsky <ben.widawsky@...el.com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        Alison Schofield <alison.schofield@...el.com>,
        Vishal Verma <vishal.l.verma@...el.com>,
        Ira Weiny <ira.weiny@...el.com>,
        Ben Widawsky <ben.widawsky@...el.com>,
        Dan Williams <dan.j.williams@...el.com>,
        linux-kernel@...r.kernel.org
Subject: [cxl:preview 46/53] drivers/cxl/core/memdev.c:222:6: warning: no
 previous prototype for function 'detach_memdev'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git preview
head:   e675fabdbbcdb6e32dba688a20fb0bd42e0e2d5d
commit: 2b2d6579d0ee25b92d9af10c407c11cb4e3e0afe [46/53] cxl/mem: Add the cxl_mem driver
config: i386-randconfig-a013 (https://download.01.org/0day-ci/archive/20220122/202201222155.g7TX2HHO-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7b3d30728816403d1fd73cc5082e9fb761262bce)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/commit/?id=2b2d6579d0ee25b92d9af10c407c11cb4e3e0afe
        git remote add cxl https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git
        git fetch --no-tags cxl preview
        git checkout 2b2d6579d0ee25b92d9af10c407c11cb4e3e0afe
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/cxl/core/

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 >>):

>> drivers/cxl/core/memdev.c:222:6: warning: no previous prototype for function 'detach_memdev' [-Wmissing-prototypes]
   void detach_memdev(struct work_struct *work)
        ^
   drivers/cxl/core/memdev.c:222:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void detach_memdev(struct work_struct *work)
   ^
   static 
   1 warning generated.


vim +/detach_memdev +222 drivers/cxl/core/memdev.c

   221	
 > 222	void detach_memdev(struct work_struct *work)
   223	{
   224		struct cxl_memdev *cxlmd;
   225	
   226		cxlmd = container_of(work, typeof(*cxlmd), detach_work);
   227		device_release_driver(&cxlmd->dev);
   228		put_device(&cxlmd->dev);
   229	}
   230	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ