lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202107301301.lZzUGJoI-lkp@intel.com>
Date:   Fri, 30 Jul 2021 13:43:15 +0800
From:   kernel test robot <lkp@...el.com>
To:     Jiri Slaby <jslaby@...e.cz>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        Jens Axboe <axboe@...nel.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 *)'

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@...el.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@...c.com>
:::::: CC: Jeff Garzik <jgarzik@...hat.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (18791 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ