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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202405071219.tVTh5ZMY-lkp@intel.com>
Date: Tue, 7 May 2024 13:13:06 +0800
From: kernel test robot <lkp@...el.com>
To: Heiko Stuebner <heiko@...ech.de>, vkoul@...nel.org, kishon@...nel.org,
	robh@...nel.org, krzk+dt@...nel.org, conor+dt@...nel.org
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
	quentin.schulz@...rry.de, heiko@...ech.de,
	linux-phy@...ts.infradead.org, devicetree@...r.kernel.org,
	linux-arm-kernel@...ts.infradead.org,
	linux-rockchip@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/2] phy: rockchip: Add Samsung CSI/DSI Combo DCPHY driver

Hi Heiko,

kernel test robot noticed the following build warnings:

[auto build test WARNING on rockchip/for-next]
[also build test WARNING on robh/for-next linus/master v6.9-rc7 next-20240506]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Heiko-Stuebner/dt-bindings-phy-Add-Rockchip-MIPI-CSI-DSI-PHY-schema/20240506-205052
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git for-next
patch link:    https://lore.kernel.org/r/20240506124836.3621528-3-heiko%40sntech.de
patch subject: [PATCH 2/2] phy: rockchip: Add Samsung CSI/DSI Combo DCPHY driver
config: hexagon-allmodconfig
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 37ae4ad0eef338776c7e2cffb3896153d43dcd90)
reproduce (this is a W=1 build):

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/202405071219.tVTh5ZMY-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c:14:
   In file included from include/linux/phy/phy.h:17:
   In file included from include/linux/regulator/consumer.h:35:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   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:13:
   In file included from arch/hexagon/include/asm/io.h:328:
   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/phy/rockchip/phy-rockchip-samsung-dcphy.c:14:
   In file included from include/linux/phy/phy.h:17:
   In file included from include/linux/regulator/consumer.h:35:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   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:13:
   In file included from arch/hexagon/include/asm/io.h:328:
   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/phy/rockchip/phy-rockchip-samsung-dcphy.c:14:
   In file included from include/linux/phy/phy.h:17:
   In file included from include/linux/regulator/consumer.h:35:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   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:13:
   In file included from arch/hexagon/include/asm/io.h:328:
   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);
         |                                                       ~~~~~~~~~~ ^
   In file included from drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c:14:
   In file included from include/linux/phy/phy.h:17:
   In file included from include/linux/regulator/consumer.h:35:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:21:
   In file included from include/linux/mm.h:2208:
   include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     522 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
>> drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c:908:34: warning: unused variable 'samsung_dphy_rx_hsfreq_ranges' [-Wunused-const-variable]
     908 | static const struct hsfreq_range samsung_dphy_rx_hsfreq_ranges[] = {
         |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   8 warnings generated.


vim +/samsung_dphy_rx_hsfreq_ranges +908 drivers/phy/rockchip/phy-rockchip-samsung-dcphy.c

   906	
   907	/* These tables must be sorted by .range_h ascending. */
 > 908	static const struct hsfreq_range samsung_dphy_rx_hsfreq_ranges[] = {
   909		{ 80,  0x105}, { 100, 0x106}, { 120, 0x107}, { 140, 0x108},
   910		{ 160, 0x109}, { 180, 0x10a}, { 200, 0x10b}, { 220, 0x10c},
   911		{ 240, 0x10d}, { 270, 0x10e}, { 290, 0x10f}, { 310, 0x110},
   912		{ 330, 0x111}, { 350, 0x112}, { 370, 0x113}, { 390, 0x114},
   913		{ 410, 0x115}, { 430, 0x116}, { 450, 0x117}, { 470, 0x118},
   914		{ 490, 0x119}, { 510, 0x11a}, { 540, 0x11b}, { 560, 0x11c},
   915		{ 580, 0x11d}, { 600, 0x11e}, { 620, 0x11f}, { 640, 0x120},
   916		{ 660, 0x121}, { 680, 0x122}, { 700, 0x123}, { 720, 0x124},
   917		{ 740, 0x125}, { 760, 0x126}, { 790, 0x127}, { 810, 0x128},
   918		{ 830, 0x129}, { 850, 0x12a}, { 870, 0x12b}, { 890, 0x12c},
   919		{ 910, 0x12d}, { 930, 0x12e}, { 950, 0x12f}, { 970, 0x130},
   920		{ 990, 0x131}, {1010, 0x132}, {1030, 0x133}, {1060, 0x134},
   921		{1080, 0x135}, {1100, 0x136}, {1120, 0x137}, {1140, 0x138},
   922		{1160, 0x139}, {1180, 0x13a}, {1200, 0x13b}, {1220, 0x13c},
   923		{1240, 0x13d}, {1260, 0x13e}, {1280, 0x13f}, {1310, 0x140},
   924		{1330, 0x141}, {1350, 0x142}, {1370, 0x143}, {1390, 0x144},
   925		{1410, 0x145}, {1430, 0x146}, {1450, 0x147}, {1470, 0x148},
   926		{1490, 0x149}, {1580, 0x007}, {1740, 0x008}, {1910, 0x009},
   927		{2070, 0x00a}, {2240, 0x00b}, {2410, 0x00c}, {2570, 0x00d},
   928		{2740, 0x00e}, {2910, 0x00f}, {3070, 0x010}, {3240, 0x011},
   929		{3410, 0x012}, {3570, 0x013}, {3740, 0x014}, {3890, 0x015},
   930		{4070, 0x016}, {4240, 0x017}, {4400, 0x018}, {4500, 0x019},
   931	};
   932	

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

View attachment "reproduce" of type "text/plain" (740 bytes)

View attachment "config" of type "text/plain" (292447 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ