mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/spi/spi-pic32.c:869:34: warning: 'pic32_spi_of_match' defined but not used
@ 2023-11-05  6:54 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-11-05  6:54 UTC (permalink / raw)
  To: Purna Chandra Mandal; +Cc: oe-kbuild-all, linux-kernel, Mark Brown

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@intel.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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-05  7:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-05  6:54 drivers/spi/spi-pic32.c:869:34: warning: 'pic32_spi_of_match' defined but not used kernel test robot

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®