mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Bart Van Assche <bvanassche@acm.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [bvanassche:scsi-sysfs 9/53] drivers/ata/sata_sil24.c:382:35: warning: initialization of 'unsigned char:1' from 'const struct attribute_group **' makes integer from pointer without a cast
Date: Fri, 1 Oct 2021 17:57:32 +0800	[thread overview]
Message-ID: <202110011726.qUhxkfSq-lkp@intel.com> (raw)

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

tree:   https://github.com/bvanassche/linux scsi-sysfs
head:   5fd80e4ce1f3a99c29cab3f6cb1536c7c68b21aa
commit: e65e65ede3d9ba7a93337352ba5e16a45281a0ca [9/53] ata
config: ia64-randconfig-r013-20211001 (attached as .config)
compiler: ia64-linux-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://github.com/bvanassche/linux/commit/e65e65ede3d9ba7a93337352ba5e16a45281a0ca
        git remote add bvanassche https://github.com/bvanassche/linux
        git fetch --no-tags bvanassche scsi-sysfs
        git checkout e65e65ede3d9ba7a93337352ba5e16a45281a0ca
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=ia64 

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

   In file included from arch/ia64/include/asm/pgtable.h:153,
                    from include/linux/pgtable.h:6,
                    from arch/ia64/include/asm/uaccess.h:40,
                    from include/linux/uaccess.h:11,
                    from arch/ia64/include/asm/sections.h:11,
                    from include/linux/interrupt.h:21,
                    from include/linux/pci.h:38,
                    from drivers/ata/sata_sil24.c:13:
   arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
   arch/ia64/include/asm/mmu_context.h:127:48: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
     127 |         unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
         |                                                ^~~~~~~
   drivers/ata/sata_sil24.c: At top level:
   drivers/ata/sata_sil24.c:382:10: error: 'struct scsi_host_template' has no member named 'sdev_attr_groups'; did you mean 'shost_attr_groups'?
     382 |         .sdev_attr_groups       = ata_ncq_sdev_attr_groups,
         |          ^~~~~~~~~~~~~~~~
         |          shost_attr_groups
>> drivers/ata/sata_sil24.c:382:35: warning: initialization of 'unsigned char:1' from 'const struct attribute_group **' makes integer from pointer without a cast [-Wint-conversion]
     382 |         .sdev_attr_groups       = ata_ncq_sdev_attr_groups,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/ata/sata_sil24.c:382:35: note: (near initialization for 'sil24_sht.track_queue_depth')
   drivers/ata/sata_sil24.c:382:35: error: initializer element is not computable at load time
   drivers/ata/sata_sil24.c:382:35: note: (near initialization for 'sil24_sht.track_queue_depth')


vim +382 drivers/ata/sata_sil24.c

   375	
   376	static struct scsi_host_template sil24_sht = {
   377		__ATA_BASE_SHT(DRV_NAME),
   378		.can_queue		= SIL24_MAX_CMDS,
   379		.sg_tablesize		= SIL24_MAX_SGE,
   380		.dma_boundary		= ATA_DMA_BOUNDARY,
   381		.tag_alloc_policy	= BLK_TAG_ALLOC_FIFO,
 > 382		.sdev_attr_groups	= ata_ncq_sdev_attr_groups,
   383		.change_queue_depth	= ata_scsi_change_queue_depth,
   384		.slave_configure	= ata_scsi_slave_config
   385	};
   386	

---
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: 39968 bytes --]

                 reply	other threads:[~2021-10-01  9: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=202110011726.qUhxkfSq-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=bvanassche@acm.org \
    --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

all inboxes | Powered by JetHome®