public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [asahilinux:isp/heap-alloc 113/143] drivers/media/platform/apple/isp/isp-drv.c:392:34: warning: unused variable 'apple_isp_hw_t8110'
@ 2023-09-10 20:44 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-09-10 20:44 UTC (permalink / raw)
  To: Eileen Yoon; +Cc: llvm, oe-kbuild-all, Hector Martin

tree:   https://github.com/AsahiLinux/linux isp/heap-alloc
head:   fdd4fa0037948a22f3fff6d893e4ccb26cdb2396
commit: 0d0847e7706a7944b9c5a7ddbd497517e5ff1c64 [113/143] media: apple: isp: IMX558 initial support
config: hexagon-randconfig-r024-20230911 (https://download.01.org/0day-ci/archive/20230911/202309110434.IG9NsNRi-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230911/202309110434.IG9NsNRi-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/202309110434.IG9NsNRi-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from drivers/media/platform/apple/isp/isp-drv.c:12:
   In file included from include/linux/iommu.h:10:
   In file included from include/linux/scatterlist.h:9:
   In file included from arch/hexagon/include/asm/io.h:334:
   include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     547 |         val = __raw_readb(PCI_IOBASE + addr);
         |                           ~~~~~~~~~~ ^
   include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     560 |         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'
      37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
         |                                                   ^
   In file included from drivers/media/platform/apple/isp/isp-drv.c:12:
   In file included from include/linux/iommu.h:10:
   In file included from include/linux/scatterlist.h:9:
   In file included from arch/hexagon/include/asm/io.h:334:
   include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     573 |         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'
      35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
         |                                                   ^
   In file included from drivers/media/platform/apple/isp/isp-drv.c:12:
   In file included from include/linux/iommu.h:10:
   In file included from include/linux/scatterlist.h:9:
   In file included from arch/hexagon/include/asm/io.h:334:
   include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     584 |         __raw_writeb(value, PCI_IOBASE + addr);
         |                             ~~~~~~~~~~ ^
   include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     594 |         __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
         |                                                       ~~~~~~~~~~ ^
   include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     604 |         __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
         |                                                       ~~~~~~~~~~ ^
   drivers/media/platform/apple/isp/isp-drv.c:112:10: warning: format specifies type 'unsigned long long' but the argument has type 'phys_addr_t' (aka 'unsigned int') [-Wformat]
     112 |         isp_dbg(isp, "reserving: %d: phys: 0x%llx size: 0x%llx iova: 0x%llx\n",
         |                                              ~~~~
         |                                              %x
     113 |                 index, resv->phys, resv->size, resv->iova);
         |                        ^~~~~~~~~~
   drivers/media/platform/apple/isp/isp-drv.h:252:47: note: expanded from macro 'isp_dbg'
     252 |         dev_dbg((isp)->dev, "[%s] " fmt, __func__, ##__VA_ARGS__)
         |                                     ~~~              ^~~~~~~~~~~
   include/linux/dev_printk.h:163:47: note: expanded from macro 'dev_dbg'
     163 |                 dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
         |                                                     ~~~     ^~~~~~~~~~~
   include/linux/dev_printk.h:129:34: note: expanded from macro 'dev_printk'
     129 |                 _dev_printk(level, dev, fmt, ##__VA_ARGS__);            \
         |                                         ~~~    ^~~~~~~~~~~
   drivers/media/platform/apple/isp/isp-drv.c:112:34: warning: format specifies type 'unsigned long long' but the argument has type 'dma_addr_t' (aka 'unsigned int') [-Wformat]
     112 |         isp_dbg(isp, "reserving: %d: phys: 0x%llx size: 0x%llx iova: 0x%llx\n",
         |                                                                        ~~~~
         |                                                                        %x
     113 |                 index, resv->phys, resv->size, resv->iova);
         |                                                ^~~~~~~~~~
   drivers/media/platform/apple/isp/isp-drv.h:252:47: note: expanded from macro 'isp_dbg'
     252 |         dev_dbg((isp)->dev, "[%s] " fmt, __func__, ##__VA_ARGS__)
         |                                     ~~~              ^~~~~~~~~~~
   include/linux/dev_printk.h:163:47: note: expanded from macro 'dev_dbg'
     163 |                 dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
         |                                                     ~~~     ^~~~~~~~~~~
   include/linux/dev_printk.h:129:34: note: expanded from macro 'dev_printk'
     129 |                 _dev_printk(level, dev, fmt, ##__VA_ARGS__);            \
         |                                         ~~~    ^~~~~~~~~~~
   drivers/media/platform/apple/isp/isp-drv.c:365:34: warning: unused variable 'apple_isp_hw_t6000' [-Wunused-const-variable]
     365 | static const struct apple_isp_hw apple_isp_hw_t6000 = {
         |                                  ^
>> drivers/media/platform/apple/isp/isp-drv.c:392:34: warning: unused variable 'apple_isp_hw_t8110' [-Wunused-const-variable]
     392 | static const struct apple_isp_hw apple_isp_hw_t8110 = {
         |                                  ^
   10 warnings generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for TYPEC
   Depends on [n]: USB_SUPPORT [=n]
   Selected by [y]:
   - PHY_APPLE_ATC [=y] && (ARCH_APPLE || COMPILE_TEST [=y])


vim +/apple_isp_hw_t8110 +392 drivers/media/platform/apple/isp/isp-drv.c

   364	
 > 365	static const struct apple_isp_hw apple_isp_hw_t6000 = {
   366		.pmu_base = 0x28e584000,
   367	
   368		.dsid_clr_base0 = 0x200014000,
   369		.dsid_clr_base1 = 0x200054000,
   370		.dsid_clr_base2 = 0x200094000,
   371		.dsid_clr_base3 = 0x2000d4000,
   372		.dsid_clr_range0 = 0x1000,
   373		.dsid_clr_range1 = 0x1000,
   374		.dsid_clr_range2 = 0x1000,
   375		.dsid_clr_range3 = 0x1000,
   376	
   377		.clock_scratch = 0x28e3d0868,
   378		.clock_base = 0x0,
   379		.clock_bit = 0x0,
   380		.clock_size = 0x8,
   381		.bandwidth_scratch = 0x28e3d0980,
   382		.bandwidth_base = 0x0,
   383		.bandwidth_bit = 0x0,
   384		.bandwidth_size = 0x8,
   385	
   386		.stream_command = DART_T8020_STREAM_COMMAND,
   387		.stream_select = DART_T8020_STREAM_SELECT,
   388		.ttbr = DART_T8020_TTBR,
   389		.stream_command_invalidate = DART_T8020_STREAM_COMMAND_INVALIDATE,
   390	};
   391	
 > 392	static const struct apple_isp_hw apple_isp_hw_t8110 = {
   393		.pmu_base = 0x23b704000,
   394	
   395		.dsid_clr_base0 = 0x200014000, // TODO
   396		.dsid_clr_base1 = 0x200054000,
   397		.dsid_clr_base2 = 0x200094000,
   398		.dsid_clr_base3 = 0x2000d4000,
   399		.dsid_clr_range0 = 0x1000,
   400		.dsid_clr_range1 = 0x1000,
   401		.dsid_clr_range2 = 0x1000,
   402		.dsid_clr_range3 = 0x1000,
   403	
   404		.clock_scratch = 0x23b3d0560,
   405		.clock_base = 0x0,
   406		.clock_bit = 0x0,
   407		.clock_size = 0x8,
   408		.bandwidth_scratch = 0x23b3d05d0,
   409		.bandwidth_base = 0x0,
   410		.bandwidth_bit = 0x0,
   411		.bandwidth_size = 0x8,
   412	
   413		.stream_command = DART_T8020_STREAM_COMMAND, // TODO
   414		.stream_select = DART_T8020_STREAM_SELECT,
   415		.ttbr = DART_T8020_TTBR,
   416		.stream_command_invalidate = DART_T8020_STREAM_COMMAND_INVALIDATE,
   417	};
   418	

-- 
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-09-10 20:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-10 20:44 [asahilinux:isp/heap-alloc 113/143] drivers/media/platform/apple/isp/isp-drv.c:392:34: warning: unused variable 'apple_isp_hw_t8110' 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