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: <202208302248.WGHox2Rb-lkp@intel.com>
Date:   Tue, 30 Aug 2022 22:31:30 +0800
From:   kernel test robot <lkp@...el.com>
To:     Bart Van Assche <bvanassche@....org>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org
Subject: [bvanassche:scsi-proc 3/4] drivers/scsi/esas2r/esas2r_main.c:643:12:
 warning: incompatible integer to pointer conversion assigning to 'struct
 proc_dir_entry *' from 'int'

tree:   https://github.com/bvanassche/linux scsi-proc
head:   9f3429c2524eb69771ca4dc34354b429324bcf9d
commit: 9bc087eaf74989496ad8827feb0a755389b1a440 [3/4] scsi: esas2r: Introduce scsi_template_proc_dir()
config: x86_64-randconfig-a014 (https://download.01.org/0day-ci/archive/20220830/202208302248.WGHox2Rb-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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://github.com/bvanassche/linux/commit/9bc087eaf74989496ad8827feb0a755389b1a440
        git remote add bvanassche https://github.com/bvanassche/linux
        git fetch --no-tags bvanassche scsi-proc
        git checkout 9bc087eaf74989496ad8827feb0a755389b1a440
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/scsi/esas2r/

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

All warnings (new ones prefixed by >>):

   drivers/scsi/esas2r/esas2r_main.c:643:14: error: implicit declaration of function 'scsi_template_proc_dir' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                   proc_dir = scsi_template_proc_dir(esas2r_proc_host->hostt);
                              ^
>> drivers/scsi/esas2r/esas2r_main.c:643:12: warning: incompatible integer to pointer conversion assigning to 'struct proc_dir_entry *' from 'int' [-Wint-conversion]
                   proc_dir = scsi_template_proc_dir(esas2r_proc_host->hostt);
                            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/scsi/esas2r/esas2r_main.c:738:15: error: implicit declaration of function 'scsi_template_proc_dir' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                           proc_dir = scsi_template_proc_dir(sh->hostt);
                                      ^
   drivers/scsi/esas2r/esas2r_main.c:738:13: warning: incompatible integer to pointer conversion assigning to 'struct proc_dir_entry *' from 'int' [-Wint-conversion]
                           proc_dir = scsi_template_proc_dir(sh->hostt);
                                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   2 warnings and 2 errors generated.


vim +643 drivers/scsi/esas2r/esas2r_main.c

   633	
   634	static void __exit esas2r_exit(void)
   635	{
   636		esas2r_log(ESAS2R_LOG_INFO, "%s called", __func__);
   637	
   638		if (esas2r_proc_major > 0) {
   639			struct proc_dir_entry *proc_dir;
   640	
   641			esas2r_log(ESAS2R_LOG_INFO, "unregister proc");
   642	
 > 643			proc_dir = scsi_template_proc_dir(esas2r_proc_host->hostt);
   644			if (proc_dir)
   645				remove_proc_entry(ATTONODE_NAME, proc_dir);
   646			unregister_chrdev(esas2r_proc_major, ESAS2R_DRVR_NAME);
   647	
   648			esas2r_proc_major = 0;
   649		}
   650	
   651		esas2r_log(ESAS2R_LOG_INFO, "pci_unregister_driver() called");
   652	
   653		pci_unregister_driver(&esas2r_pci_driver);
   654	}
   655	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ