* [hare-scsi-devel:scsi-private.v2 15/21] drivers/scsi/aacraid/linit.c:641:28: warning: dereferencing 'void *' pointer
@ 2021-11-11 15:57 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-11 15:57 UTC (permalink / raw)
To: Hannes Reinecke; +Cc: kbuild-all, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 2178 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: x86_64-kexec (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# 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
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/scsi/aacraid/linit.c: In function 'fib_count_iter':
>> drivers/scsi/aacraid/linit.c:641:28: warning: dereferencing 'void *' pointer
641 | struct fib *fibptr = &data->dev->fibs[scsi_cmd_to_rq(scmnd)->tag];
| ^~
drivers/scsi/aacraid/linit.c:641:28: error: request for member 'dev' in something not a structure or union
vim +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: 29131 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-11 15:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-11 15:57 [hare-scsi-devel:scsi-private.v2 15/21] drivers/scsi/aacraid/linit.c:641:28: warning: dereferencing 'void *' pointer 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).