New: Kernel 6.0-rc1 fails to build with GCC_PLUGIN_LATENT_ENTROPY=y (PowerMac G5 11,2)
https://bugzilla.kernel.org/show_bug.cgi?id=216367
Bug ID: 216367
Summary: Kernel 6.0-rc1 fails to build with
GCC_PLUGIN_LATENT_ENTROPY=y (PowerMac G5 11,2)
Product: Platform Specific/Hardware
Version: 2.5
Kernel Version: 6.0-rc1
Hardware: PPC-64
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: PPC-64
Assignee: [email protected]
Reporter: [email protected]
Regression: No
Created attachment 301575
--> https://bugzilla.kernel.org/attachment.cgi?id=301575&action=edit
kernel .config (kernel 6.0-rc1, PowerMac G5 11,2)
[...]
LDS arch/powerpc/kernel/vmlinux.lds
AS arch/powerpc/kernel/fpu.o
AS arch/powerpc/kernel/vector.o
AS arch/powerpc/kernel/entry_64.o
CC arch/powerpc/kernel/prom_init.o
In file included from ./include/linux/nodemask.h:97,
from ./include/linux/mmzone.h:17,
from ./include/linux/gfp.h:7,
from ./include/linux/xarray.h:15,
from ./include/linux/radix-tree.h:21,
from ./include/linux/idr.h:15,
from ./include/linux/kernfs.h:12,
from ./include/linux/sysfs.h:16,
from ./include/linux/kobject.h:20,
from ./include/linux/pci.h:35,
from arch/powerpc/kernel/prom_init.c:24:./include/linux/random.h: In function 'add_latent_entropy':./include/linux/random.h:25:46: error: 'latent_entropy' undeclared (first use in this function); did you mean 'add_latent_entropy'?
25 | add_device_randomness((const void *)&latent_entropy,sizeof(latent_entropy));
| ^~~~~~~~~~~~~~
| add_latent_entropy./include/linux/random.h:25:46: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [scripts/Makefile.build:249: arch/powerpc/kernel/prom_init.o] Fehler 1
make[1]: *** [scripts/Makefile.build:465: arch/powerpc/kernel] Fehler 2
make: *** [Makefile:1855: arch/powerpc] Error 2
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 216367] Kernel 6.0-rc1 fails to build with GCC_PLUGIN_LATENT_ENTROPY=y (PowerMac G5 11,2)
https://bugzilla.kernel.org/show_bug.cgi?id=216367
Andrew Donnellan ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #1 from Andrew Donnellan ([email protected]) --- I've sent a patch:
https://patchwork.ozlabs.org/project/linuxppc-dev/patch/[email protected]/
Please let me know if it works for you.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 216367] Kernel 6.0-rc1 fails to build with GCC_PLUGIN_LATENT_ENTROPY=y (PowerMac G5 11,2)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=216367
--- Comment #2 from Erhard F. ([email protected]) --- (In reply to Andrew Donnellan from comment #1)
Quoted 5 lines
I've sent a patch:
https://patchwork.ozlabs.org/project/linuxppc-dev/patch/20220816051720.44108-
[email protected]/Please let me know if it works for you.
Applied it on top of v6.0-rc1 and it works fine. Many thanks!
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 216367] Kernel 6.0-rc1 fails to build with GCC_PLUGIN_LATENT_ENTROPY=y (PowerMac G5 11,2)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=216367
--- Comment #3 from Andrew Donnellan ([email protected]) --- Patch has been taken via Kees Cook's hardening tree:
https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git/commit/?h=for-next/hardening&id=012e8d2034f1bda8863435cd589636e618d6a659
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 216367] Kernel 6.0-rc1 fails to build with GCC_PLUGIN_LATENT_ENTROPY=y (PowerMac G5 11,2)
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=216367
Erhard F. ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |CODE_FIX--- Comment #4 from Erhard F. ([email protected]) --- Meanwhile the fix found it's way in v6.0-rc2. Everything ok now, thanks!
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.