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]
Message-ID: <202111130955.v8ul0sxJ-lkp@intel.com>
Date:   Sat, 13 Nov 2021 09:58:58 +0800
From:   kernel test robot <lkp@...el.com>
To:     Hannes Reinecke <hare@...e.de>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [hare-scsi-devel:scsi-private.v2 18/21]
 drivers/scsi/aacraid/aachba.c:342:29: error: 'FIB_CONTEXT_INTERNAL_CMD'
 undeclared; did you mean 'FIB_CONTEXT_FLAG_INTERNAL_CMD'?

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git scsi-private.v2
head:   915b986531e666d840f72752c597fb6b4ea69d35
commit: 62ef655cc63719b6556a5233e305edc9ffc644bc [18/21] aacraid: sanitize container callbacks
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.0
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/hare/scsi-devel.git/commit/?id=62ef655cc63719b6556a5233e305edc9ffc644bc
        git remote add hare-scsi-devel https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git
        git fetch --no-tags hare-scsi-devel scsi-private.v2
        git checkout 62ef655cc63719b6556a5233e305edc9ffc644bc
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

   drivers/scsi/aacraid/aachba.c: In function 'aac_valid_context':
>> drivers/scsi/aacraid/aachba.c:342:29: error: 'FIB_CONTEXT_INTERNAL_CMD' undeclared (first use in this function); did you mean 'FIB_CONTEXT_FLAG_INTERNAL_CMD'?
     342 |         if (fibptr->flags & FIB_CONTEXT_INTERNAL_CMD)
         |                             ^~~~~~~~~~~~~~~~~~~~~~~~
         |                             FIB_CONTEXT_FLAG_INTERNAL_CMD
   drivers/scsi/aacraid/aachba.c:342:29: note: each undeclared identifier is reported only once for each function it appears in
   drivers/scsi/aacraid/aachba.c: In function '_aac_probe_container2':
   drivers/scsi/aacraid/aachba.c:650:31: error: 'FIB_CONTEXT_INTERNAL_CMD' undeclared (first use in this function); did you mean 'FIB_CONTEXT_FLAG_INTERNAL_CMD'?
     650 |         if (!(fibptr->flags & FIB_CONTEXT_INTERNAL_CMD))
         |                               ^~~~~~~~~~~~~~~~~~~~~~~~
         |                               FIB_CONTEXT_FLAG_INTERNAL_CMD
   drivers/scsi/aacraid/aachba.c: In function '_aac_probe_container1':
   drivers/scsi/aacraid/aachba.c:720:30: error: 'FIB_CONTEXT_INTERNAL_CMD' undeclared (first use in this function); did you mean 'FIB_CONTEXT_FLAG_INTERNAL_CMD'?
     720 |         if ((fibptr->flags & FIB_CONTEXT_INTERNAL_CMD) &&
         |                              ^~~~~~~~~~~~~~~~~~~~~~~~
         |                              FIB_CONTEXT_FLAG_INTERNAL_CMD
   drivers/scsi/aacraid/aachba.c: In function 'aac_probe_container':
   drivers/scsi/aacraid/aachba.c:848:16: error: 'struct scsi_cmnd' has no member named 'scsi_done'
     848 |         scsicmd->scsi_done = aac_probe_container_scsi_done;
         |                ^~


vim +342 drivers/scsi/aacraid/aachba.c

   323	
   324	static int aac_wwn = 1;
   325	module_param_named(wwn, aac_wwn, int, S_IRUGO|S_IWUSR);
   326	MODULE_PARM_DESC(wwn, "Select a WWN type for the arrays:\n"
   327		"\t0 - Disable\n"
   328		"\t1 - Array Meta Data Signature (default)\n"
   329		"\t2 - Adapter Serial Number");
   330	
   331	
   332	static inline int aac_valid_context(struct scsi_cmnd *scsicmd,
   333			struct fib *fibptr) {
   334		struct scsi_device *device;
   335	
   336		if (unlikely(!scsicmd)) {
   337			dprintk((KERN_WARNING "aac_valid_context: scsi command corrupt\n"));
   338			aac_fib_complete(fibptr);
   339			return 0;
   340		}
   341		fibptr->owner = AAC_OWNER_MIDLEVEL;
 > 342		if (fibptr->flags & FIB_CONTEXT_INTERNAL_CMD)
   343			return 1;
   344		device = scsicmd->device;
   345		if (unlikely(!device)) {
   346			dprintk((KERN_WARNING "aac_valid_context: scsi device corrupt\n"));
   347			aac_fib_complete(fibptr);
   348			return 0;
   349		}
   350		return 1;
   351	}
   352	

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

Download attachment ".config.gz" of type "application/gzip" (69180 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ