drivers/phy/mediatek/phy-mtk-dp.c:776:20: error: incompatible pointer to integer conversion initializing 'u32' (aka 'unsigned int') with an expression of type 'const u32[9]' (aka 'const unsigned int[9]')

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild
Message-ID <[email protected]>
:::::: 
:::::: 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: ca245ded65366422add185845ded62fcaa6c6343"
:::::: 

BCC: [email protected]
CC: [email protected]
CC: [email protected]
TO: AngeloGioacchino Del Regno <[email protected]>
CC: 0day robot <[email protected]>

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: ca245ded65366422add185845ded62fcaa6c6343 phy: phy-mtk-dp: Add support for digital and analog calibration
date:   22 hours ago
:::::: branch date: 22 hours ago
:::::: commit date: 22 hours ago
config: x86_64-buildonly-randconfig-006-20260804 (https://download.01.org/0day-ci/archive/20260804/[email protected]/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/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/r/[email protected]/

All errors (new ones prefixed by >>):

   drivers/phy/mediatek/phy-mtk-dp.c:763: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]
     763 |         .off_ana_lane = (const u16[]) { 0x100, 0x200, 0x300, 0x400 },
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/phy/mediatek/phy-mtk-dp.c:763:18: warning: suggest braces around initialization of subobject [-Wmissing-braces]
     763 |         .off_ana_lane = (const u16[]) { 0x100, 0x200, 0x300, 0x400 },
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                         {                                           }
   drivers/phy/mediatek/phy-mtk-dp.c:765: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]
     765 |         .off_dig_lane = (const u16[]) { 0x1100, 0x1200, 0x1300, 0x1400 },
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/phy/mediatek/phy-mtk-dp.c:765:18: warning: suggest braces around initialization of subobject [-Wmissing-braces]
     765 |         .off_dig_lane = (const u16[]) { 0x1100, 0x1200, 0x1300, 0x1400 },
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                         {                                               }
>> drivers/phy/mediatek/phy-mtk-dp.c:776:20: error: incompatible pointer to integer conversion initializing 'u32' (aka 'unsigned int') with an expression of type 'const u32[9]' (aka 'const unsigned int[9]') [-Wint-conversion]
     776 |         .driving_params = (const u32[]) {
         |                           ^~~~~~~~~~~~~~~
     777 |                 [0] = 0,
         |                 ~~~~~~~~
     778 |                 [1] = 0,
         |                 ~~~~~~~~
     779 |                 [2] = 0,
         |                 ~~~~~~~~
     780 |                 [3] = MT8195_DRIVING_PARAM_3_DEFAULT,
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     781 |                 [4] = MT8195_DRIVING_PARAM_4_DEFAULT,
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     782 |                 [5] = MT8195_DRIVING_PARAM_5_DEFAULT,
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     783 |                 [6] = MT8195_DRIVING_PARAM_6_DEFAULT,
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     784 |                 [7] = MT8195_DRIVING_PARAM_7_DEFAULT,
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     785 |                 [8] = MT8195_DRIVING_PARAM_8_DEFAULT
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     786 |         },
         |         ~
   drivers/phy/mediatek/phy-mtk-dp.c:776:20: warning: suggest braces around initialization of subobject [-Wmissing-braces]
     776 |         .driving_params = (const u32[]) {
         |                           ^~~~~~~~~~~~~~~
         |                           {
     777 |                 [0] = 0,
         |                 ~~~~~~~~
     778 |                 [1] = 0,
         |                 ~~~~~~~~
     779 |                 [2] = 0,
         |                 ~~~~~~~~
     780 |                 [3] = MT8195_DRIVING_PARAM_3_DEFAULT,
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     781 |                 [4] = MT8195_DRIVING_PARAM_4_DEFAULT,
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     782 |                 [5] = MT8195_DRIVING_PARAM_5_DEFAULT,
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     783 |                 [6] = MT8195_DRIVING_PARAM_6_DEFAULT,
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     784 |                 [7] = MT8195_DRIVING_PARAM_7_DEFAULT,
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     785 |                 [8] = MT8195_DRIVING_PARAM_8_DEFAULT
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     786 |         },
         |         ~
         |          }
   drivers/phy/mediatek/phy-mtk-dp.c:763:18: error: initializer element is not a compile-time constant
     763 |         .off_ana_lane = (const u16[]) { 0x100, 0x200, 0x300, 0x400 },
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   3 warnings and 4 errors generated.


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

6a23afad443a8e Markus Schneider-Pargmann  2022-06-24  760  
ace28f75ebdee1 AngeloGioacchino Del Regno 2026-07-07  761  static const struct mtk_dp_phy_pdata mt8195_dp_phy_data = {
ca245ded653664 AngeloGioacchino Del Regno 2026-07-07  762  	.off_ana_glb = 0,
ca245ded653664 AngeloGioacchino Del Regno 2026-07-07  763  	.off_ana_lane = (const u16[]) { 0x100, 0x200, 0x300, 0x400 },
ace28f75ebdee1 AngeloGioacchino Del Regno 2026-07-07  764  	.off_dig_glb = 0x1000,
ace28f75ebdee1 AngeloGioacchino Del Regno 2026-07-07  765  	.off_dig_lane = (const u16[]) { 0x1100, 0x1200, 0x1300, 0x1400 },
145c16137cda7b AngeloGioacchino Del Regno 2026-07-07  766  	.regs_ana_glb = mt8195_phy_ana_glb_regs,
ca245ded653664 AngeloGioacchino Del Regno 2026-07-07  767  	.regs_ana_lane = mt8195_phy_ana_lane_regs,
ace28f75ebdee1 AngeloGioacchino Del Regno 2026-07-07  768  	.regs_dig_glb = mt8195_phy_dig_glb_regs,
ace28f75ebdee1 AngeloGioacchino Del Regno 2026-07-07  769  	.regs_dig_lane = mt8195_phy_dig_lane_regs,
ca245ded653664 AngeloGioacchino Del Regno 2026-07-07  770  	.ana_bias_r = 15,
ca245ded653664 AngeloGioacchino Del Regno 2026-07-07  771  	.ana_cktx_imp = 8,
ca245ded653664 AngeloGioacchino Del Regno 2026-07-07  772  	.ana_lanes_imp = {
ca245ded653664 AngeloGioacchino Del Regno 2026-07-07  773  		.pmos = 8,
ca245ded653664 AngeloGioacchino Del Regno 2026-07-07  774  		.nmos = 8,
ca245ded653664 AngeloGioacchino Del Regno 2026-07-07  775  	},
ca245ded653664 AngeloGioacchino Del Regno 2026-07-07 @776  	.driving_params = (const u32[]) {
ca245ded653664 AngeloGioacchino Del Regno 2026-07-07  777  		[0] = 0,
ca245ded653664 AngeloGioacchino Del Regno 2026-07-07  778  		[1] = 0,
ca245ded653664 AngeloGioacchino Del Regno 2026-07-07  779  		[2] = 0,
ca245ded653664 AngeloGioacchino Del Regno 2026-07-07  780  		[3] = MT8195_DRIVING_PARAM_3_DEFAULT,
ca245ded653664 AngeloGioacchino Del Regno 2026-07-07  781  		[4] = MT8195_DRIVING_PARAM_4_DEFAULT,
ca245ded653664 AngeloGioacchino Del Regno 2026-07-07  782  		[5] = MT8195_DRIVING_PARAM_5_DEFAULT,
ca245ded653664 AngeloGioacchino Del Regno 2026-07-07  783  		[6] = MT8195_DRIVING_PARAM_6_DEFAULT,
ca245ded653664 AngeloGioacchino Del Regno 2026-07-07  784  		[7] = MT8195_DRIVING_PARAM_7_DEFAULT,
ca245ded653664 AngeloGioacchino Del Regno 2026-07-07  785  		[8] = MT8195_DRIVING_PARAM_8_DEFAULT
ca245ded653664 AngeloGioacchino Del Regno 2026-07-07  786  	},
ace28f75ebdee1 AngeloGioacchino Del Regno 2026-07-07  787  };
ace28f75ebdee1 AngeloGioacchino Del Regno 2026-07-07  788  

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.