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: <202111130449.KiJ8SiTp-lkp@intel.com>
Date:   Sat, 13 Nov 2021 04:37:57 +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 15/21]
 drivers/scsi/aacraid/linit.c:641:35: error: request for member 'dev' in
 something not a structure or union

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git scsi-private.v2
head:   915b986531e666d840f72752c597fb6b4ea69d35
commit: e6b8e84251bef24827e609d3a87c5d6652302b85 [15/21] aacraid: add 'owner' field to 'struct fib'
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=e6b8e84251bef24827e609d3a87c5d6652302b85
        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 e6b8e84251bef24827e609d3a87c5d6652302b85
        # 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/linit.c: In function 'fib_count_iter':
   drivers/scsi/aacraid/linit.c:641:35: error: dereferencing 'void *' pointer [-Werror]
     641 |         struct fib *fibptr = &data->dev->fibs[scsi_cmd_to_rq(scmnd)->tag];
         |                                   ^~
>> drivers/scsi/aacraid/linit.c:641:35: error: request for member 'dev' in something not a structure or union
   In file included from include/linux/perf_event.h:25,
                    from include/linux/trace_events.h:10,
                    from include/trace/syscall.h:7,
                    from include/linux/syscalls.h:87,
                    from drivers/scsi/aacraid/linit.c:33:
   At top level:
   arch/arc/include/asm/perf_event.h:126:27: error: 'arc_pmu_cache_map' defined but not used [-Werror=unused-const-variable=]
     126 | static const unsigned int arc_pmu_cache_map[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = {
         |                           ^~~~~~~~~~~~~~~~~
   arch/arc/include/asm/perf_event.h:91:27: error: 'arc_pmu_ev_hw_map' defined but not used [-Werror=unused-const-variable=]
      91 | static const char * const arc_pmu_ev_hw_map[] = {
         |                           ^~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/dev +641 drivers/scsi/aacraid/linit.c

   637	
   638	static bool fib_count_iter(struct scsi_cmnd *scmnd, void *data, bool reserved)
   639	{
   640		struct fib_count_data *fib_count = data;
 > 641		struct fib *fibptr = &data->dev->fibs[scsi_cmd_to_rq(scmnd)->tag];
   642	
   643		switch (fibptr->owner) {
   644		case AAC_OWNER_FIRMWARE:
   645			fib_count->fwcnt++;
   646			break;
   647		case AAC_OWNER_ERROR_HANDLER:
   648			fib_count->ehcnt++;
   649			break;
   650		case AAC_OWNER_LOWLEVEL:
   651			fib_count->llcnt++;
   652			break;
   653		case AAC_OWNER_MIDLEVEL:
   654			fib_count->mlcnt++;
   655			break;
   656		default:
   657			fib_count->krlcnt++;
   658			break;
   659		}
   660		return true;
   661	}
   662	

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