The following powerpc ppc6xx_defconfig build regressions noticed on the
Linux next-20251027 tag with gcc-14 and gcc-8.
* powerpc, build
- gcc-14-ppc6xx_defconfig
- gcc-8-ppc6xx_defconfig
First seen on next-20251027
Good: next-20251024
Bad: next-20251027
Regression Analysis:
- New regression? yes
- Reproducibility? yes
Build regression: next-20251027: backlight.c:59:39: error: implicit
declaration of function 'of_find_node_by_name'; did you mean
'bus_find_device_by_name'?
Build regression: next-20251027: include/linux/math.h:167:43: error:
first argument to '__builtin_choose_expr' not a constant
Build regression: next-20251027: via-pmu-backlight.c:22:20: error:
'FB_BACKLIGHT_LEVELS' undeclared here (not in a function)
Build regression: next-20251027: minmax.h:71:17: error: first argument
to '__builtin_choose_expr' not a constant
Build regression: next-20251027: compiler.h:168:17: error:
'__UNIQUE_ID_x__286' undeclared (first use in this function); did you
mean '__UNIQUE_ID_y__287'?
Reported-by: Linux Kernel Functional Testing <lkft(a)linaro.org>
## Build error
arch/powerpc/platforms/powermac/backlight.c: In function
'pmac_has_backlight_type':
arch/powerpc/platforms/powermac/backlight.c:59:39: error: implicit
declaration of function 'of_find_node_by_name'; did you mean
'bus_find_device_by_name'? [-Wimplicit-function-declaration]
59 | struct device_node* bk_node =
of_find_node_by_name(NULL, "backlight");
| ^~~~~~~~~~~~~~~~~~~~
| bus_find_device_by_name
arch/powerpc/platforms/powermac/backlight.c:59:39: error:
initialization of 'struct device_node *' from 'int' makes pointer from
integer without a cast [-Wint-conversion]
arch/powerpc/platforms/powermac/backlight.c:60:17: error: implicit
declaration of function 'of_property_match_string'
[-Wimplicit-function-declaration]
60 | int i = of_property_match_string(bk_node,
"backlight-control", type);
| ^~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/platforms/powermac/backlight.c:62:9: error: implicit
declaration of function 'of_node_put'
[-Wimplicit-function-declaration]
62 | of_node_put(bk_node);
| ^~~~~~~~~~~
drivers/macintosh/via-pmu-backlight.c:22:20: error:
'FB_BACKLIGHT_LEVELS' undeclared here (not in a function)
22 | static u8 bl_curve[FB_BACKLIGHT_LEVELS];
| ^~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
drivers/macintosh/via-pmu-backlight.c: In function 'pmu_backlight_curve_lookup':
include/linux/compiler.h:168:17: error: '__UNIQUE_ID_x__286'
undeclared (first use in this function); did you mean
'__UNIQUE_ID_y__287'?
168 | __PASTE(__UNIQUE_ID_, \
| ^~~~~~~~~~~~
drivers/macintosh/via-pmu-backlight.c:45:23: note: in expansion of macro 'max'
45 | max = max((int)bl_curve[i], max);
| ^~~
include/linux/minmax.h:71:17: error: first argument to
'__builtin_choose_expr' not a constant
71 | (typeof(__builtin_choose_expr(sizeof(ux) > 4, 1LL,
1L)))(ux) >= 0)
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:577:23: note: in definition of macro
'__compiletime_assert'
577 | if (!(condition))
\
| ^~~~~~~~~
drivers/macintosh/via-pmu-backlight.c:45:23: note: in expansion of macro 'max'
45 | max = max((int)bl_curve[i], max);
| ^~~
include/linux/minmax.h:71:17: error: first argument to
'__builtin_choose_expr' not a constant
71 | (typeof(__builtin_choose_expr(sizeof(ux) > 4, 1LL,
1L)))(ux) >= 0)
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:577:23: note: in definition of macro
'__compiletime_assert'
577 | if (!(condition))
\
| ^~~~~~~~~
include/linux/minmax.h:112:25: note: in expansion of macro '__careful_cmp'
112 | #define max(x, y) __careful_cmp(max, x, y)
| ^~~~~~~~~~~~~
drivers/macintosh/via-pmu-backlight.c:45:23: note: in expansion of macro 'max'
45 | max = max((int)bl_curve[i], max);
| ^~~
In file included from include/linux/kernel.h:27,
from arch/powerpc/include/asm/page.h:11,
from arch/powerpc/include/asm/thread_info.h:13,
from include/linux/thread_info.h:60,
from arch/powerpc/include/asm/ptrace.h:342,
from drivers/macintosh/via-pmu-backlight.c:11:
include/linux/math.h:162:17: error: first argument to
'__builtin_choose_expr' not a constant
162 | __builtin_choose_expr(
\
| ^~~~~~~~~~~~~~~~~~~~~
drivers/macintosh/via-pmu-backlight.c: In function
'pmu_backlight_get_level_brightness':
drivers/macintosh/via-pmu-backlight.c:63:38: error: 'FB_BACKLIGHT_MAX'
undeclared (first use in this function); did you mean 'BACKLIGHT_RAW'?
63 | pmulevel = bl_curve[level] * FB_BACKLIGHT_MAX / MAX_PMU_LEVEL;
| ^~~~~~~~~~~~~~~~
| BACKLIGHT_RAW
drivers/macintosh/via-pmu-backlight.c:58:51: warning: parameter
'level' set but not used [-Wunused-but-set-parameter]
58 | static int pmu_backlight_get_level_brightness(int level)
| ~~~~^~~~~
drivers/macintosh/via-pmu-backlight.c: In function 'pmu_backlight_init':
drivers/macintosh/via-pmu-backlight.c:144:17: error: implicit
declaration of function 'of_machine_is_compatible'
[-Wimplicit-function-declaration]
144 | of_machine_is_compatible("AAPL,3400/2400") ||
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/macintosh/via-pmu-backlight.c: At top level:
drivers/macintosh/via-pmu-backlight.c:22:11: warning: 'bl_curve'
defined but not used [-Wunused-variable]
22 | static u8 bl_curve[FB_BACKLIGHT_LEVELS];
| ^~~~~~~~
make[5]: *** [scripts/Makefile.build:287:
drivers/macintosh/via-pmu-backlight.o] Error 1
make[5]: Target 'drivers/macintosh/' not remade because of errors.
## Source
* Kernel version: 6.18.0-rc2-next-20251027
* Git tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/next/linux-next.git
* Git describe: next-20251027
* Git commit: 8fec172c82c2b5f6f8e47ab837c1dc91ee3d1b87
* Architectures: powerpc
* Toolchains: gcc-14
* Kconfigs: defconfig
## Build
* Test log: https://storage.tuxsuite.com/public/linaro/lkft/builds/34dKrlb77LGOQQSoC8FH…
* Test details:
https://regressions.linaro.org/lkft/linux-next-master/next-20251027/build/g…
* Build plan: https://tuxapi.tuxsuite.com/v1/groups/linaro/projects/lkft/builds/34dKrlb77…
* Build link: https://storage.tuxsuite.com/public/linaro/lkft/builds/34dKrlb77LGOQQSoC8FH…
* Kernel config:
https://storage.tuxsuite.com/public/linaro/lkft/builds/34dKrlb77LGOQQSoC8FH…
--
Linaro LKFT
Total jobs: 94
Total errors: 30 (31.91%)
LAVA errors: 0 (0.00%)
Test errors: 30 (31.91%)
Job errors: 0 (0.00%)
Infra errors: 0 (0.00%)
Canceled jobs: 0 (0.00%)
Device type: dragonboard-845c
Total jobs: 72
Total errors: 26 (36.11%)
Error type: Test
Error count: 26 (36.11%)
Error: No match for error type 'Test', message 'tradefed - adb device lost[a6622a22]'
Count: 8 (11.11%)
IDs:
db845c-09:
8511102 8511964 8511990 8512092 8512400
8512409 8512423 8512742
Error: No match for error type 'Test', message 'tradefed - adb device lost[dd3b965f]'
Count: 1 (1.39%)
IDs:
db845c-02:
8512461
Error: No match for error type 'Test', message 'tradefed - adb device lost[f3a58ae3]'
Count: 1 (1.39%)
IDs:
db845c-04:
8512445
Error: No match for error type 'Test', message 'Device NOT found after DUT booted up! adb wait-for-device timed out after 300s'
Count: 8 (11.11%)
IDs:
db845c-04:
8511977 8512018 8512438
db845c-06:
8512019
db845c-08:
8505061
db845c-09:
8505065 8510547 8510550
Error: No match for error type 'Test', message 'tradefed - adb device lost[e875976d]'
Count: 1 (1.39%)
IDs:
db845c-06:
8512406
Error: No match for error type 'Test', message 'tradefed - adb device lost[d966d3f5]'
Count: 2 (2.78%)
IDs:
db845c-03:
8511103 8512405
Error: No match for error type 'Test', message 'tradefed - adb device lost[476f370a]'
Count: 1 (1.39%)
IDs:
db845c-10:
8512395
Error: No match for error type 'Test', message 'tradefed - adb device lost[30e1e2ee]'
Count: 3 (4.17%)
IDs:
db845c-08:
8505064 8512077 8512107
Error: Device NOT found!
Count: 1 (1.39%)
IDs:
db845c-04:
8511975
Device type: x86
Total jobs: 1
Total errors: 0 (0.00%)
Device type: qrb5165-rb5
Total jobs: 21
Total errors: 4 (19.05%)
Error type: Test
Error count: 4 (19.05%)
Error: No match for error type 'Test', message 'lava-docker-test-shell timed out after 592 seconds'
Count: 1 (4.76%)
IDs:
rb5-07:
8512105
Error: No match for error type 'Test', message 'Device NOT found after DUT booted up! adb wait-for-device timed out after 300s'
Count: 2 (9.52%)
IDs:
rb5-01:
8512081 8512083
Error: No match for error type 'Test', message 'tradefed - adb device lost[93dcfd96]'
Count: 1 (4.76%)
IDs:
rb5-01:
8512010
Total jobs: 130
Total errors: 28 (21.54%)
LAVA errors: 0 (0.00%)
Test errors: 24 (18.46%)
Job errors: 0 (0.00%)
Infra errors: 4 (3.08%)
Canceled jobs: 0 (0.00%)
Device type: dragonboard-845c
Total jobs: 76
Total errors: 13 (17.11%)
Error type: Test
Error count: 13 (17.11%)
Error: No match for error type 'Test', message 'Device NOT found after DUT booted up! adb wait-for-device timed out after 300s'
Count: 6 (7.89%)
IDs:
db845c-04:
8511130 8511135
db845c-06:
8511441
db845c-09:
8505050 8511431 8512026
Error: Device NOT found!
Count: 1 (1.32%)
IDs:
db845c-09:
8511532
Error: No match for error type 'Test', message 'tradefed - adb device lost[f3a58ae3]'
Count: 1 (1.32%)
IDs:
db845c-04:
8511504
Error: No match for error type 'Test', message 'tradefed - adb device lost[30e1e2ee]'
Count: 2 (2.63%)
IDs:
db845c-08:
8505049 8511502
Error: No match for error type 'Test', message 'tradefed - adb device lost[a6622a22]'
Count: 2 (2.63%)
IDs:
db845c-09:
8505048 8511434
Error: No match for error type 'Test', message 'tradefed - adb device lost[476f370a]'
Count: 1 (1.32%)
IDs:
db845c-10:
8505051
Device type: qrb5165-rb5
Total jobs: 46
Total errors: 13 (28.26%)
Error type: Test
Error count: 9 (19.57%)
Error: Device NOT found!
Count: 3 (6.52%)
IDs:
rb5-01:
8511966
rb5-07:
8511511 8511536
Error: No match for error type 'Test', message 'Device NOT found after DUT booted up! adb wait-for-device timed out after 300s'
Count: 5 (10.87%)
IDs:
rb5-01:
8511450
rb5-03:
8511501
rb5-07:
8511455 8511515 8511555
Error: No match for error type 'Test', message 'tradefed - adb device lost[74d67c95]'
Count: 1 (2.17%)
IDs:
rb5-03:
8511526
Error type: Infrastructure
Error count: 4 (8.70%)
Error: Connection closed
Count: 4 (8.70%)
IDs:
rb5-01:
8511423 8511445 8511654 8511675
Device type: hi960-hikey
Total jobs: 8
Total errors: 2 (25.00%)
Error type: Test
Error count: 2 (25.00%)
Error: No match for error type 'Test', message 'Device NOT found after DUT booted up! adb wait-for-device timed out after 300s'
Count: 1 (12.50%)
IDs:
hi960-hikey-02:
8511496
Error: No match for error type 'Test', message 'tradefed - adb device lost[47D27933024424E6]'
Count: 1 (12.50%)
IDs:
hi960-hikey-04:
8511106