2024-02-23 09:18:32

by Naresh Kamboju

[permalink] [raw]
Subject: parisc: kernel/cpu.c:3110:9: error: expected identifier or '(' before '=' token

[ Please ignore this email if it is already reported ]

The parisc builds failed on Linux next tag next-20240220..next-20240223.
First build failures noticed on tag next-20240220.

parisc:
defconfig: gcc-11 - Failed
allnoconfig: gcc-11 - Failed
tinyconfig: gcc-11 - Failed

kernel/cpu.c:3110:9: error: expected identifier or '(' before '=' token
3110 | = {CPU_BITS_ALL};
| ^
make[4]: *** [scripts/Makefile.build:244: kernel/cpu.o] Error 1

Reported-by: Linux Kernel Functional Testing <[email protected]>

Steps to reproduce:
$ tuxmake --runtime podman --target-arch parisc --toolchain gcc-11
--kconfig defconfig

Links:
- https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20240223/testrun/22811934/suite/build/test/gcc-11-defconfig/log
- https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20240223/testrun/22811934/suite/build/test/gcc-11-defconfig/details/
- https://storage.tuxsuite.com/public/linaro/lkft/builds/2cl8psPmccoERtfX4SrhL0yxD0F/

--
Linaro LKFT
https://lkft.linaro.org


2024-02-24 17:51:28

by Randy Dunlap

[permalink] [raw]
Subject: Re: parisc: kernel/cpu.c:3110:9: error: expected identifier or '(' before '=' token

[add Alexey]


On 2/23/24 01:18, Naresh Kamboju wrote:
> [ Please ignore this email if it is already reported ]
>
> The parisc builds failed on Linux next tag next-20240220..next-20240223.
> First build failures noticed on tag next-20240220.
>
> parisc:
> defconfig: gcc-11 - Failed
> allnoconfig: gcc-11 - Failed
> tinyconfig: gcc-11 - Failed
>
> kernel/cpu.c:3110:9: error: expected identifier or '(' before '=' token
> 3110 | = {CPU_BITS_ALL};
> | ^

commit da92df490eea
Author: Alexey Dobriyan <[email protected]>
Date: Mon Feb 5 13:01:19 2024 +0300

cpu: Mark cpu_possible_mask as __ro_after_init

inserts a ';' here:

#ifdef CONFIG_INIT_ALL_POSSIBLE
-struct cpumask __cpu_possible_mask __read_mostly
+struct cpumask __cpu_possible_mask __ro_after_init;
= {CPU_BITS_ALL};
#else


> make[4]: *** [scripts/Makefile.build:244: kernel/cpu.o] Error 1
>
> Reported-by: Linux Kernel Functional Testing <[email protected]>
>
> Steps to reproduce:
> $ tuxmake --runtime podman --target-arch parisc --toolchain gcc-11
> --kconfig defconfig
>
> Links:
> - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20240223/testrun/22811934/suite/build/test/gcc-11-defconfig/log
> - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20240223/testrun/22811934/suite/build/test/gcc-11-defconfig/details/
> - https://storage.tuxsuite.com/public/linaro/lkft/builds/2cl8psPmccoERtfX4SrhL0yxD0F/
>
> --
> Linaro LKFT
> https://lkft.linaro.org
>

--
#Randy