linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [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
@ 2021-11-12 20:37 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-12 20:37 UTC (permalink / raw)
  To: Hannes Reinecke; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 3303 bytes --]

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@intel.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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 69180 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-12 20:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-12 20:37 [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 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).