powerpc: Fix PS3 allmodconfig warning
authorGeoff Levand <geoff@infradead.org>
Mon, 1 Apr 2024 07:08:31 +0000 (16:08 +0900)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 3 Apr 2024 10:44:50 +0000 (21:44 +1100)
commitbfe51886ca544956eb4ff924d1937ac01d0ca9c8
treed58350b884dff682aeb8eb254d26a01412d51cf6
parent608d4a5ca56302181e669cea0aa571cbec6680eb
powerpc: Fix PS3 allmodconfig warning

The struct ps3_notification_device in the ps3_probe_thread routine
is too large to be on the stack, causing a warning for an
allmodconfig build with clang.

Change the struct ps3_notification_device from a variable on the stack
to a dynamically allocated variable.

Reported-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/d64f06f4-81ae-4ec5-ab3b-d7f7f091e0ac@infradead.org
arch/powerpc/platforms/ps3/device-init.c