LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jiri Slaby <jslaby@suse.cz>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Jens Axboe <axboe@kernel.dk>
Subject: [linux-stable-rc:linux-4.4.y 573/615] drivers/ata/sata_dwc_460ex.c:1158:14: warning: initialization of 'enum ata_completion_errors (*)(struct ata_queued_cmd *)' from incompatible pointer type 'void (*)(struct ata_queued_cmd *)'
Date: Fri, 30 Jul 2021 13:43:15 +0800	[thread overview]
Message-ID: <202107301301.lZzUGJoI-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.4.y
head:   36437aaa551298340a942cd706837e40efdae9c3
commit: 6002dcd35aa356a3ea79d106f94733e7a298f040 [573/615] ata: make qc_prep return ata_completion_errors
config: powerpc64-randconfig-r023-20210730 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 10.3.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/stable/linux-stable-rc.git/commit/?id=6002dcd35aa356a3ea79d106f94733e7a298f040
        git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
        git fetch --no-tags linux-stable-rc linux-4.4.y
        git checkout 6002dcd35aa356a3ea79d106f94733e7a298f040
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=powerpc64 

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 include/linux/scatterlist.h:7,
                    from include/linux/dma-mapping.h:10,
                    from include/linux/libata.h:32,
                    from drivers/ata/sata_dwc_460ex.c:37:
   include/linux/mm.h: In function 'is_vmalloc_addr':
   include/linux/mm.h:386:14: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'long int' [-Wsign-compare]
     386 |  return addr >= VMALLOC_START && addr < VMALLOC_END;
         |              ^~
   In file included from include/linux/libata.h:35,
                    from drivers/ata/sata_dwc_460ex.c:37:
   include/linux/ata.h: In function 'ata_id_is_lba_capacity_ok':
   include/linux/ata.h:950:17: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare]
     950 |      (lba_sects >= 16383 * 63 * id[ATA_ID_HEADS]))
         |                 ^~
   In file included from include/linux/blkdev.h:14,
                    from include/linux/blk-mq.h:4,
                    from include/scsi/scsi_host.h:10,
                    from include/linux/libata.h:37,
                    from drivers/ata/sata_dwc_460ex.c:37:
   include/linux/pagemap.h: In function 'fault_in_multipages_readable':
   include/linux/pagemap.h:632:16: warning: variable 'c' set but not used [-Wunused-but-set-variable]
     632 |  volatile char c;
         |                ^
   In file included from include/linux/blkdev.h:18,
                    from include/linux/blk-mq.h:4,
                    from include/scsi/scsi_host.h:10,
                    from include/linux/libata.h:37,
                    from drivers/ata/sata_dwc_460ex.c:37:
   include/linux/bio.h: In function 'bio_next_split':
   include/linux/bio.h:424:14: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
     424 |  if (sectors >= bio_sectors(bio))
         |              ^~
   In file included from drivers/ata/sata_dwc_460ex.c:37:
   include/linux/libata.h: In function 'ata_msg_init':
   include/linux/libata.h:113:23: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
     113 |  if (dval < 0 || dval >= (sizeof(u32) * 8))
         |                       ^~
   drivers/ata/sata_dwc_460ex.c: In function 'dma_dwc_xfer_setup':
   drivers/ata/sata_dwc_460ex.c:308:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     308 |  dma_addr_t addr = (dma_addr_t)&hsdev->sata_dwc_regs->dmadr;
         |                    ^
   drivers/ata/sata_dwc_460ex.c: At top level:
>> drivers/ata/sata_dwc_460ex.c:1158:14: warning: initialization of 'enum ata_completion_errors (*)(struct ata_queued_cmd *)' from incompatible pointer type 'void (*)(struct ata_queued_cmd *)' [-Wincompatible-pointer-types]
    1158 |  .qc_prep  = sata_dwc_qc_prep,
         |              ^~~~~~~~~~~~~~~~
   drivers/ata/sata_dwc_460ex.c:1158:14: note: (near initialization for 'sata_dwc_ops.qc_prep')


vim +1158 drivers/ata/sata_dwc_460ex.c

62936009f35a66 Rupjyoti Sarmah 2010-07-06  1151  
62936009f35a66 Rupjyoti Sarmah 2010-07-06  1152  static struct ata_port_operations sata_dwc_ops = {
62936009f35a66 Rupjyoti Sarmah 2010-07-06  1153  	.inherits		= &ata_sff_port_ops,
62936009f35a66 Rupjyoti Sarmah 2010-07-06  1154  
62936009f35a66 Rupjyoti Sarmah 2010-07-06  1155  	.error_handler		= sata_dwc_error_handler,
3a8b788f61a5b8 Thang Q. Nguyen 2012-04-17  1156  	.hardreset		= sata_dwc_hardreset,
62936009f35a66 Rupjyoti Sarmah 2010-07-06  1157  
62936009f35a66 Rupjyoti Sarmah 2010-07-06 @1158  	.qc_prep		= sata_dwc_qc_prep,
62936009f35a66 Rupjyoti Sarmah 2010-07-06  1159  	.qc_issue		= sata_dwc_qc_issue,
62936009f35a66 Rupjyoti Sarmah 2010-07-06  1160  
62936009f35a66 Rupjyoti Sarmah 2010-07-06  1161  	.scr_read		= sata_dwc_scr_read,
62936009f35a66 Rupjyoti Sarmah 2010-07-06  1162  	.scr_write		= sata_dwc_scr_write,
62936009f35a66 Rupjyoti Sarmah 2010-07-06  1163  
62936009f35a66 Rupjyoti Sarmah 2010-07-06  1164  	.port_start		= sata_dwc_port_start,
62936009f35a66 Rupjyoti Sarmah 2010-07-06  1165  	.port_stop		= sata_dwc_port_stop,
62936009f35a66 Rupjyoti Sarmah 2010-07-06  1166  
62936009f35a66 Rupjyoti Sarmah 2010-07-06  1167  	.bmdma_setup		= sata_dwc_bmdma_setup,
62936009f35a66 Rupjyoti Sarmah 2010-07-06  1168  	.bmdma_start		= sata_dwc_bmdma_start,
62936009f35a66 Rupjyoti Sarmah 2010-07-06  1169  };
62936009f35a66 Rupjyoti Sarmah 2010-07-06  1170  

:::::: The code at line 1158 was first introduced by commit
:::::: 62936009f35a6659cc3ebe0d90c754182d60da73 [libata] Add 460EX on-chip SATA driver, sata_dwc_460ex

:::::: TO: Rupjyoti Sarmah <rsarmah@amcc.com>
:::::: CC: Jeff Garzik <jgarzik@redhat.com>

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

                 reply	other threads:[~2021-07-30  5:43 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=202107301301.lZzUGJoI-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=axboe@kernel.dk \
    --cc=gregkh@linuxfoundation.org \
    --cc=jslaby@suse.cz \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --subject='Re: [linux-stable-rc:linux-4.4.y 573/615] drivers/ata/sata_dwc_460ex.c:1158:14: warning: initialization of '\''enum ata_completion_errors (*)(struct ata_queued_cmd *)'\'' from incompatible pointer type '\''void (*)(struct ata_queued_cmd *)'\''' \
    /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

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