Comment 5 for bug 1760099

Revision history for this message
Breno Leitão (breno-leitao) wrote :

Hi Tyler,

Yes, we need to backport this patchset to all the current supported kernel. Since most of the supported kernel contains the whole RFI infra structure, I do not expect it to be hard. If you need help, I can find someone to help on the backport.

Regarding the problem you are facing, I talked to the powerpc maintainer (Michael Ellerman) and he suggested squashing the warning using something as the code below. He will be also sending the patch upstream.

```
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c
index 66f2b6299c40..44c30dd38067 100644
--- a/arch/powerpc/kernel/setup_64.c
+++ b/arch/powerpc/kernel/setup_64.c
@@ -880,7 +880,7 @@ void rfi_flush_enable(bool enable)
     rfi_flush = enable;
 }

-static void init_fallback_flush(void)
+static void __ref init_fallback_flush(void)
 {
     u64 l1d_size, limit;
     int cpu;

```