linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Hannes Reinecke <hare@suse.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [hare-scsi-devel:scsi-private.v2 15/21] drivers/scsi/aacraid/linit.c:641:28: warning: dereferencing 'void *' pointer
Date: Thu, 11 Nov 2021 23:57:17 +0800	[thread overview]
Message-ID: <202111112309.NPnB5Pt5-lkp@intel.com> (raw)

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

                 reply	other threads:[~2021-11-11 15:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202111112309.NPnB5Pt5-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=hare@suse.de \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).