From: kernel test robot <lkp@intel.com>
To: Bart Van Assche <bvanassche@acm.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.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'
Date: Tue, 30 Aug 2022 22:31:30 +0800 [thread overview]
Message-ID: <202208302248.WGHox2Rb-lkp@intel.com> (raw)
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@intel.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
reply other threads:[~2022-08-30 14:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202208302248.WGHox2Rb-lkp@intel.com \
--to=lkp@intel.com \
--cc=bvanassche@acm.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox