Messages in this thread | | | Date | Thu, 11 Nov 2021 23:57:17 +0800 | From | kernel test robot <> | Subject | [hare-scsi-devel:scsi-private.v2 15/21] drivers/scsi/aacraid/linit.c:641:28: warning: dereferencing 'void *' pointer |
| |
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 [unhandled content-type:application/gzip] | |