From: kernel test robot <lkp@intel.com>
To: Purna Chandra Mandal <purna.mandal@microchip.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Mark Brown <broonie@kernel.org>
Subject: drivers/spi/spi-pic32.c:869:34: warning: 'pic32_spi_of_match' defined but not used
Date: Sun, 5 Nov 2023 14:54:18 +0800 [thread overview]
Message-ID: <202311051454.MWgWyxBp-lkp@intel.com> (raw)
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
reply other threads:[~2023-11-05 7:04 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=202311051454.MWgWyxBp-lkp@intel.com \
--to=lkp@intel.com \
--cc=broonie@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=purna.mandal@microchip.com \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®