[linux-next:master 4949/7693] drivers/mailbox/omap-mailbox.c:383:34: warning: unused variable 'omap_mailbox_of_match'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   b18bbfc14a38b5234e09c2adcf713e38063a7e6e
commit: ebcf9008a895a2a9416f69e186b56fbade35e12c [4949/7693] remoteproc: k3-m4: Add a remoteproc driver for M4F subsystem
config: hexagon-randconfig-r062-20240829 (https://download.01.org/0day-ci/archive/20240829/202408292154.19W0R3u3-lkp@xxxxxxxxx/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240829/202408292154.19W0R3u3-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408292154.19W0R3u3-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

   In file included from drivers/mailbox/omap-mailbox.c:12:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:14:
   In file included from arch/hexagon/include/asm/io.h:328:
   include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           val = __raw_readb(PCI_IOBASE + addr);
                             ~~~~~~~~~~ ^
   include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
                                                           ~~~~~~~~~~ ^
   include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu'
   #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
                                                     ^
   In file included from drivers/mailbox/omap-mailbox.c:12:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:14:
   In file included from arch/hexagon/include/asm/io.h:328:
   include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
                                                           ~~~~~~~~~~ ^
   include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu'
   #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
                                                     ^
   In file included from drivers/mailbox/omap-mailbox.c:12:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:14:
   In file included from arch/hexagon/include/asm/io.h:328:
   include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           __raw_writeb(value, PCI_IOBASE + addr);
                               ~~~~~~~~~~ ^
   include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
                                                         ~~~~~~~~~~ ^
   include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
                                                         ~~~~~~~~~~ ^
>> drivers/mailbox/omap-mailbox.c:383:34: warning: unused variable 'omap_mailbox_of_match' [-Wunused-const-variable]
   static const struct of_device_id omap_mailbox_of_match[] = {
                                    ^
   7 warnings generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for OMAP2PLUS_MBOX
   Depends on [n]: MAILBOX [=y] && (ARCH_OMAP2PLUS || ARCH_K3)
   Selected by [y]:
   - TI_K3_M4_REMOTEPROC [=y] && REMOTEPROC [=y] && (ARCH_K3 || COMPILE_TEST [=y])


vim +/omap_mailbox_of_match +383 drivers/mailbox/omap-mailbox.c

ea2ec1e80f78e5f Suman Anna 2018-07-11  382  
75288cc66dc478b Suman Anna 2014-09-10 @383  static const struct of_device_id omap_mailbox_of_match[] = {
75288cc66dc478b Suman Anna 2014-09-10  384  	{
75288cc66dc478b Suman Anna 2014-09-10  385  		.compatible	= "ti,omap2-mailbox",
ea2ec1e80f78e5f Suman Anna 2018-07-11  386  		.data		= &omap2_data,
75288cc66dc478b Suman Anna 2014-09-10  387  	},
75288cc66dc478b Suman Anna 2014-09-10  388  	{
75288cc66dc478b Suman Anna 2014-09-10  389  		.compatible	= "ti,omap3-mailbox",
ea2ec1e80f78e5f Suman Anna 2018-07-11  390  		.data		= &omap2_data,
75288cc66dc478b Suman Anna 2014-09-10  391  	},
75288cc66dc478b Suman Anna 2014-09-10  392  	{
75288cc66dc478b Suman Anna 2014-09-10  393  		.compatible	= "ti,omap4-mailbox",
ea2ec1e80f78e5f Suman Anna 2018-07-11  394  		.data		= &omap4_data,
75288cc66dc478b Suman Anna 2014-09-10  395  	},
9c1f2a5dc2948b9 Suman Anna 2019-06-04  396  	{
9c1f2a5dc2948b9 Suman Anna 2019-06-04  397  		.compatible	= "ti,am654-mailbox",
9c1f2a5dc2948b9 Suman Anna 2019-06-04  398  		.data		= &omap4_data,
9c1f2a5dc2948b9 Suman Anna 2019-06-04  399  	},
595be654b0c23b6 Suman Anna 2021-02-09  400  	{
595be654b0c23b6 Suman Anna 2021-02-09  401  		.compatible	= "ti,am64-mailbox",
595be654b0c23b6 Suman Anna 2021-02-09  402  		.data		= &omap4_data,
595be654b0c23b6 Suman Anna 2021-02-09  403  	},
75288cc66dc478b Suman Anna 2014-09-10  404  	{
75288cc66dc478b Suman Anna 2014-09-10  405  		/* end */
75288cc66dc478b Suman Anna 2014-09-10  406  	},
75288cc66dc478b Suman Anna 2014-09-10  407  };
75288cc66dc478b Suman Anna 2014-09-10  408  MODULE_DEVICE_TABLE(of, omap_mailbox_of_match);
75288cc66dc478b Suman Anna 2014-09-10  409  

:::::: The code at line 383 was first introduced by commit
:::::: 75288cc66dc478b32e43970dd6913396526504ae mailbox/omap: add support for parsing dt devices

:::::: TO: Suman Anna <s-anna@xxxxxx>
:::::: CC: Tony Lindgren <tony@xxxxxxxxxxx>

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux