linux-next: build failure after merge of the phy-next tree
Mark Brown
maintainerHi all,
After merging the phy-next tree, today's linux-next build (x86_64 allmodconfig) failed like this:
/tmp/next/build/drivers/phy/mediatek/phy-mtk-dp.c:761: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]
761 | .off_ana_lane = (const u16[]) { 0x100, 0x200, 0x300, 0x400 },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/next/build/drivers/phy/mediatek/phy-mtk-dp.c:761:18: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
761 | .off_ana_lane = (const u16[]) { 0x100, 0x200, 0x300, 0x400 },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| { }
/tmp/next/build/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_dig_lane = (const u16[]) { 0x1100, 0x1200, 0x1300, 0x1400 },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/next/build/drivers/phy/mediatek/phy-mtk-dp.c:763:18: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
763 | .off_dig_lane = (const u16[]) { 0x1100, 0x1200, 0x1300, 0x1400 },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| { }
/tmp/next/build/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 | },
| ~
/tmp/next/build/drivers/phy/mediatek/phy-mtk-dp.c:776:20: error: suggest braces around initialization of subobject [-Werror,-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 | },
| ~
| }
/tmp/next/build/drivers/phy/mediatek/phy-mtk-dp.c:761:18: error: initializer element is not a compile-time constant
761 | .off_ana_lane = (const u16[]) { 0x100, 0x200, 0x300, 0x400 },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/next/build/drivers/phy/mediatek/phy-mtk-dp.c:791: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]
791 | .off_ana_lane = (const u16[]) { 0x0, 0x100, 0x200, 0x300 },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/next/build/drivers/phy/mediatek/phy-mtk-dp.c:791:18: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
791 | .off_ana_lane = (const u16[]) { 0x0, 0x100, 0x200, 0x300 },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| { }
/tmp/next/build/drivers/phy/mediatek/phy-mtk-dp.c:793: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]
793 | .off_dig_lane = (const u16[]) { 0x1000, 0x1100, 0x1200, 0x1300 },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/next/build/drivers/phy/mediatek/phy-mtk-dp.c:793:18: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
793 | .off_dig_lane = (const u16[]) { 0x1000, 0x1100, 0x1200, 0x1300 },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| { }
/tmp/next/build/drivers/phy/mediatek/phy-mtk-dp.c:806: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]
806 | .driving_params = (const u32[]) {
| ^~~~~~~~~~~~~~~
807 | [0] = 0,
| ~~~~~~~~
808 | [1] = 0,
| ~~~~~~~~
809 | [2] = 0,
| ~~~~~~~~
810 | [3] = MT8196_DRIVING_PARAM_3_DEFAULT,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
811 | [4] = MT8196_DRIVING_PARAM_4_DEFAULT,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
812 | [5] = MT8196_DRIVING_PARAM_5_DEFAULT,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
813 | [6] = MT8196_DRIVING_PARAM_6_DEFAULT,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
814 | [7] = MT8196_DRIVING_PARAM_7_DEFAULT,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
815 | [8] = MT8196_DRIVING_PARAM_8_DEFAULT
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
816 | },
| ~
/tmp/next/build/drivers/phy/mediatek/phy-mtk-dp.c:806:20: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
806 | .driving_params = (const u32[]) {
| ^~~~~~~~~~~~~~~
| {
807 | [0] = 0,
| ~~~~~~~~
808 | [1] = 0,
| ~~~~~~~~
809 | [2] = 0,
| ~~~~~~~~
810 | [3] = MT8196_DRIVING_PARAM_3_DEFAULT,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
811 | [4] = MT8196_DRIVING_PARAM_4_DEFAULT,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
812 | [5] = MT8196_DRIVING_PARAM_5_DEFAULT,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
813 | [6] = MT8196_DRIVING_PARAM_6_DEFAULT,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
814 | [7] = MT8196_DRIVING_PARAM_7_DEFAULT,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
815 | [8] = MT8196_DRIVING_PARAM_8_DEFAULT
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
816 | },
| ~
| }
/tmp/next/build/drivers/phy/mediatek/phy-mtk-dp.c:791:18: error: initializer element is not a compile-time constant
791 | .off_ana_lane = (const u16[]) { 0x0, 0x100, 0x200, 0x300 },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Caused by commit
6fe4d5beac728 (phy: phy-mtk-dp: Add support for MT8196 eDP PHY)
I have used the tree from next-20260911 instead.
Quoted 4 lines · Mark Brown
Hi all,
After merging the phy-next tree, today's linux-next build (
x86_64allmodconfig) failed like this:
There's a fix already:
https://lore.kernel.org/all/[email protected]/
Sorry about that
Cheers,
Angelo
Quoted 137 lines
/tmp/next/build/drivers/phy/mediatek/phy-mtk-dp.c:761: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]
761 | .off_ana_lane = (const u16[]) {0x100,0x200,0x300,0x400},| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/next/build/drivers/phy/mediatek/phy-mtk-dp.c:761:18: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] 761 | .off_ana_lane = (const u16[]) { 0x100, 0x200, 0x300, 0x400 }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } /tmp/next/build/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_dig_lane = (const u16[]) { 0x1100, 0x1200, 0x1300, 0x1400 }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/next/build/drivers/phy/mediatek/phy-mtk-dp.c:763:18: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] 763 | .off_dig_lane = (const u16[]) { 0x1100, 0x1200, 0x1300, 0x1400 }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } /tmp/next/build/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 | }, | ~ /tmp/next/build/drivers/phy/mediatek/phy-mtk-dp.c:776:20: error: suggest braces around initialization of subobject [-Werror,-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 | }, | ~ | } /tmp/next/build/drivers/phy/mediatek/phy-mtk-dp.c:761:18: error: initializer element is not a compile-time constant 761 | .off_ana_lane = (const u16[]) { 0x100, 0x200, 0x300, 0x400 }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/next/build/drivers/phy/mediatek/phy-mtk-dp.c:791: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] 791 | .off_ana_lane = (const u16[]) { 0x0, 0x100, 0x200, 0x300 }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/next/build/drivers/phy/mediatek/phy-mtk-dp.c:791:18: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] 791 | .off_ana_lane = (const u16[]) { 0x0, 0x100, 0x200, 0x300 }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } /tmp/next/build/drivers/phy/mediatek/phy-mtk-dp.c:793: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] 793 | .off_dig_lane = (const u16[]) { 0x1000, 0x1100, 0x1200, 0x1300 }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/next/build/drivers/phy/mediatek/phy-mtk-dp.c:793:18: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] 793 | .off_dig_lane = (const u16[]) { 0x1000, 0x1100, 0x1200, 0x1300 }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | { } /tmp/next/build/drivers/phy/mediatek/phy-mtk-dp.c:806: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] 806 | .driving_params = (const u32[]) { | ^~~~~~~~~~~~~~~ 807 | [0] = 0, | ~~~~~~~~ 808 | [1] = 0, | ~~~~~~~~ 809 | [2] = 0, | ~~~~~~~~ 810 | [3] = MT8196_DRIVING_PARAM_3_DEFAULT, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 811 | [4] = MT8196_DRIVING_PARAM_4_DEFAULT, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 812 | [5] = MT8196_DRIVING_PARAM_5_DEFAULT, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 813 | [6] = MT8196_DRIVING_PARAM_6_DEFAULT, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 814 | [7] = MT8196_DRIVING_PARAM_7_DEFAULT, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 815 | [8] = MT8196_DRIVING_PARAM_8_DEFAULT | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 816 | }, | ~ /tmp/next/build/drivers/phy/mediatek/phy-mtk-dp.c:806:20: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] 806 | .driving_params = (const u32[]) { | ^~~~~~~~~~~~~~~ | { 807 | [0] = 0, | ~~~~~~~~ 808 | [1] = 0, | ~~~~~~~~ 809 | [2] = 0, | ~~~~~~~~ 810 | [3] = MT8196_DRIVING_PARAM_3_DEFAULT, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 811 | [4] = MT8196_DRIVING_PARAM_4_DEFAULT, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 812 | [5] = MT8196_DRIVING_PARAM_5_DEFAULT, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 813 | [6] = MT8196_DRIVING_PARAM_6_DEFAULT, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 814 | [7] = MT8196_DRIVING_PARAM_7_DEFAULT, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 815 | [8] = MT8196_DRIVING_PARAM_8_DEFAULT | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 816 | }, | ~ | } /tmp/next/build/drivers/phy/mediatek/phy-mtk-dp.c:791:18: error: initializer element is not a compile-time constant 791 | .off_ana_lane = (const u16[]) { 0x0, 0x100, 0x200, 0x300 }, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Caused by commit
6fe4d5beac728 (phy: phy-mtk-dp: Add support for MT8196 eDP PHY)I have used the tree from next-20260911 instead.
Quoted 9 lines · AngeloGioacchino Del Regno
Quoted 4 lines · Mark Brown
Hi all,
After merging the phy-next tree, today's linux-next build (
x86_64allmodconfig) failed like this:There's a fix already:
picked thanks. somehow my builder also missed this.
Signature · 1 line
~Vinod