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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sun, 5 Nov 2023 14:54:18 +0800
From:   kernel test robot <lkp@...el.com>
To:     Purna Chandra Mandal <purna.mandal@...rochip.com>
Cc:     oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
        Mark Brown <broonie@...nel.org>
Subject: drivers/spi/spi-pic32.c:869:34: warning: 'pic32_spi_of_match'
 defined but not used

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   aea6bf908d730b01bd264a8821159db9463c111c
commit: 1bcb9f8ceb67803960871ecf4ed2d365a2a919c8 spi: spi-pic32: Add PIC32 SPI master driver
date:   8 years ago
config: i386-buildonly-randconfig-005-20231101 (https://download.01.org/0day-ci/archive/20231105/202311051454.MWgWyxBp-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231105/202311051454.MWgWyxBp-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311051454.MWgWyxBp-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/spi/spi-pic32.c: In function 'pic32_spi_dma_transfer':
   drivers/spi/spi-pic32.c:323:43: warning: implicit conversion from 'enum dma_data_direction' to 'enum dma_transfer_direction' [-Wenum-conversion]
     323 |                                           DMA_FROM_DEVICE,
         |                                           ^~~~~~~~~~~~~~~
   drivers/spi/spi-pic32.c:333:43: warning: implicit conversion from 'enum dma_data_direction' to 'enum dma_transfer_direction' [-Wenum-conversion]
     333 |                                           DMA_TO_DEVICE,
         |                                           ^~~~~~~~~~~~~
   drivers/spi/spi-pic32.c: At top level:
>> drivers/spi/spi-pic32.c:869:34: warning: 'pic32_spi_of_match' defined but not used [-Wunused-const-variable=]
     869 | static const struct of_device_id pic32_spi_of_match[] = {
         |                                  ^~~~~~~~~~~~~~~~~~
   In file included from include/linux/bitops.h:36,
                    from include/linux/kernel.h:10,
                    from include/linux/clk.h:16,
                    from drivers/spi/spi-pic32.c:17:
   In function 'set_bit',
       inlined from '__dma_cap_set' at include/linux/dmaengine.h:1167:2,
       inlined from 'pic32_spi_dma_prep' at drivers/spi/spi-pic32.c:632:2,
       inlined from 'pic32_spi_probe' at drivers/spi/spi-pic32.c:802:2:
   arch/x86/include/asm/bitops.h:75:17: warning: array subscript 'long int[0]' is partly outside array bounds of 'dma_cap_mask_t[1]' [-Warray-bounds]
      75 |                 asm volatile(LOCK_PREFIX "orb %1,%0"
         |                 ^~~
   drivers/spi/spi-pic32.c: In function 'pic32_spi_probe':
   drivers/spi/spi-pic32.c:629:24: note: at offset 1 into object 'mask' of size 4
     629 |         dma_cap_mask_t mask;
         |                        ^~~~
   In function 'set_bit',
       inlined from '__dma_cap_set' at include/linux/dmaengine.h:1167:2,
       inlined from 'pic32_spi_dma_prep' at drivers/spi/spi-pic32.c:632:2,
       inlined from 'pic32_spi_probe' at drivers/spi/spi-pic32.c:802:2:
   arch/x86/include/asm/bitops.h:75:17: warning: array subscript 'long int[0]' is partly outside array bounds of 'dma_cap_mask_t[1]' [-Warray-bounds]
      75 |                 asm volatile(LOCK_PREFIX "orb %1,%0"
         |                 ^~~
   drivers/spi/spi-pic32.c: In function 'pic32_spi_probe':
   drivers/spi/spi-pic32.c:629:24: note: at offset 1 into object 'mask' of size 4
     629 |         dma_cap_mask_t mask;
         |                        ^~~~


vim +/pic32_spi_of_match +869 drivers/spi/spi-pic32.c

   868	
 > 869	static const struct of_device_id pic32_spi_of_match[] = {
   870		{.compatible = "microchip,pic32mzda-spi",},
   871		{},
   872	};
   873	MODULE_DEVICE_TABLE(of, pic32_spi_of_match);
   874	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists