Re: [PATCH v3 31/31] elx: efct: Tie into kernel Kconfig and build process

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi James,

I love your patch! Perhaps something to improve:

[auto build test WARNING on mkp-scsi/for-next]
[also build test WARNING on scsi/for-next linus/master v5.6 next-20200411]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/James-Smart/efct-Broadcom-Emulex-FC-Target-driver/20200412-114125
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
config: parisc-allyesconfig (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        GCC_VERSION=9.3.0 make.cross ARCH=parisc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

   In file included from include/uapi/linux/ioctl.h:5,
                    from include/uapi/linux/fs.h:14,
                    from include/linux/fs.h:45,
                    from include/linux/huge_mm.h:8,
                    from include/linux/mm.h:567,
                    from include/linux/scatterlist.h:8,
                    from include/linux/dmapool.h:14,
                    from include/linux/pci.h:1414,
                    from drivers/scsi/elx/efct/efct_driver.h:23,
                    from drivers/scsi/elx/efct/efct_driver.c:7:
>> arch/parisc/include/uapi/asm/ioctl.h:40: warning: "_IOC_WRITE" redefined
      40 | #define _IOC_WRITE 2U
         | 
   In file included from include/asm-generic/ioctl.h:5,
                    from drivers/scsi/elx/efct/efct_driver.h:20,
                    from drivers/scsi/elx/efct/efct_driver.c:7:
   include/uapi/asm-generic/ioctl.h:62: note: this is the location of the previous definition
      62 | # define _IOC_WRITE 1U
         | 
   In file included from include/uapi/linux/ioctl.h:5,
                    from include/uapi/linux/fs.h:14,
                    from include/linux/fs.h:45,
                    from include/linux/huge_mm.h:8,
                    from include/linux/mm.h:567,
                    from include/linux/scatterlist.h:8,
                    from include/linux/dmapool.h:14,
                    from include/linux/pci.h:1414,
                    from drivers/scsi/elx/efct/efct_driver.h:23,
                    from drivers/scsi/elx/efct/efct_driver.c:7:
>> arch/parisc/include/uapi/asm/ioctl.h:41: warning: "_IOC_READ" redefined
      41 | #define _IOC_READ 1U
         | 
   In file included from include/asm-generic/ioctl.h:5,
                    from drivers/scsi/elx/efct/efct_driver.h:20,
                    from drivers/scsi/elx/efct/efct_driver.c:7:
   include/uapi/asm-generic/ioctl.h:66: note: this is the location of the previous definition
      66 | # define _IOC_READ 2U
         | 

vim +/_IOC_WRITE +40 arch/parisc/include/uapi/asm/ioctl.h

^1da177e4c3f41 include/asm-parisc/ioctl.h Linus Torvalds 2005-04-16  25  
^1da177e4c3f41 include/asm-parisc/ioctl.h Linus Torvalds 2005-04-16  26  /* ioctl command encoding: 32 bits total, command in lower 16 bits,
^1da177e4c3f41 include/asm-parisc/ioctl.h Linus Torvalds 2005-04-16  27   * size of the parameter structure in the lower 14 bits of the
^1da177e4c3f41 include/asm-parisc/ioctl.h Linus Torvalds 2005-04-16  28   * upper 16 bits.
^1da177e4c3f41 include/asm-parisc/ioctl.h Linus Torvalds 2005-04-16  29   * Encoding the size of the parameter structure in the ioctl request
^1da177e4c3f41 include/asm-parisc/ioctl.h Linus Torvalds 2005-04-16  30   * is useful for catching programs compiled with old versions
^1da177e4c3f41 include/asm-parisc/ioctl.h Linus Torvalds 2005-04-16  31   * and to avoid overwriting user space outside the user buffer area.
^1da177e4c3f41 include/asm-parisc/ioctl.h Linus Torvalds 2005-04-16  32   * The highest 2 bits are reserved for indicating the ``access mode''.
^1da177e4c3f41 include/asm-parisc/ioctl.h Linus Torvalds 2005-04-16  33   * NOTE: This limits the max parameter size to 16kB -1 !
^1da177e4c3f41 include/asm-parisc/ioctl.h Linus Torvalds 2005-04-16  34   */
^1da177e4c3f41 include/asm-parisc/ioctl.h Linus Torvalds 2005-04-16  35  
^1da177e4c3f41 include/asm-parisc/ioctl.h Linus Torvalds 2005-04-16  36  /*
^1da177e4c3f41 include/asm-parisc/ioctl.h Linus Torvalds 2005-04-16  37   * Direction bits.
^1da177e4c3f41 include/asm-parisc/ioctl.h Linus Torvalds 2005-04-16  38   */
^1da177e4c3f41 include/asm-parisc/ioctl.h Linus Torvalds 2005-04-16  39  #define _IOC_NONE	0U
^1da177e4c3f41 include/asm-parisc/ioctl.h Linus Torvalds 2005-04-16 @40  #define _IOC_WRITE	2U
^1da177e4c3f41 include/asm-parisc/ioctl.h Linus Torvalds 2005-04-16 @41  #define _IOC_READ	1U
^1da177e4c3f41 include/asm-parisc/ioctl.h Linus Torvalds 2005-04-16  42  

:::::: The code at line 40 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux