0 day kernel build service
 help / color / mirror / Atom feed
* drivers/phy/mediatek/phy-mtk-dp.c:334:18: error: incompatible pointer to integer conversion initializing 'u16' (aka 'unsigned short') with an expression of type 'const u16[4]' (aka 'const unsigned short[4]')
@ 2026-08-04  9:57 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-04  9:57 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "bisect to a FBC not belonging to original linux-review patches: branch: linux-review/AngeloGioacchino-Del-Regno/dt-bindings-phy-Document-MT8195-and-MT8196-DisplayPort-PHYs/20260803-214632, commit: ace28f75ebdee148cda44a230458044917223727"
:::::: 

BCC: lkp@intel.com
CC: llvm@lists.linux.dev
CC: oe-kbuild-all@lists.linux.dev
TO: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
CC: 0day robot <lkp@intel.com>

tree:   https://github.com/intel-lab-lkp/linux/commits/AngeloGioacchino-Del-Regno/dt-bindings-phy-Document-MT8195-and-MT8196-DisplayPort-PHYs/20260803-214632
head:   d33b28885557c8205bb5bc4e8a6566b3c4711e15
commit: ace28f75ebdee148cda44a230458044917223727 phy: phy-mtk-dp: Migrate register offsets to SoC specific pdata
date:   20 hours ago
:::::: branch date: 20 hours ago
:::::: commit date: 20 hours ago
config: x86_64-buildonly-randconfig-006-20260804 (https://download.01.org/0day-ci/archive/20260804/202608041721.5FoNeDGF-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260804/202608041721.5FoNeDGF-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/r/202608041721.5FoNeDGF-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

>> drivers/phy/mediatek/phy-mtk-dp.c:334:18: error: incompatible pointer to integer conversion initializing 'u16' (aka 'unsigned short') with an expression of type 'const u16[4]' (aka 'const unsigned short[4]') [-Wint-conversion]
     334 |         .off_dig_lane = (const u16[]) { 0x1100, 0x1200, 0x1300, 0x1400 },
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/phy/mediatek/phy-mtk-dp.c:334:18: warning: suggest braces around initialization of subobject [-Wmissing-braces]
     334 |         .off_dig_lane = (const u16[]) { 0x1100, 0x1200, 0x1300, 0x1400 },
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                         {                                               }
>> drivers/phy/mediatek/phy-mtk-dp.c:334:18: error: initializer element is not a compile-time constant
     334 |         .off_dig_lane = (const u16[]) { 0x1100, 0x1200, 0x1300, 0x1400 },
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning and 2 errors generated.


vim +334 drivers/phy/mediatek/phy-mtk-dp.c

6a23afad443a8e0 Markus Schneider-Pargmann  2022-06-24  331  
ace28f75ebdee14 AngeloGioacchino Del Regno 2026-07-07  332  static const struct mtk_dp_phy_pdata mt8195_dp_phy_data = {
ace28f75ebdee14 AngeloGioacchino Del Regno 2026-07-07  333  	.off_dig_glb = 0x1000,
ace28f75ebdee14 AngeloGioacchino Del Regno 2026-07-07 @334  	.off_dig_lane = (const u16[]) { 0x1100, 0x1200, 0x1300, 0x1400 },
ace28f75ebdee14 AngeloGioacchino Del Regno 2026-07-07  335  	.regs_dig_glb = mt8195_phy_dig_glb_regs,
ace28f75ebdee14 AngeloGioacchino Del Regno 2026-07-07  336  	.regs_dig_lane = mt8195_phy_dig_lane_regs,
ace28f75ebdee14 AngeloGioacchino Del Regno 2026-07-07  337  };
ace28f75ebdee14 AngeloGioacchino Del Regno 2026-07-07  338  

--
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:[~2026-08-04 10:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-04  9:57 drivers/phy/mediatek/phy-mtk-dp.c:334:18: error: incompatible pointer to integer conversion initializing 'u16' (aka 'unsigned short') with an expression of type 'const u16[4]' (aka 'const unsigned short[4]') 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