]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
powerpc: Add a missing include header
authorMathieu Malaterre <malat@debian.org>
Thu, 22 Mar 2018 20:20:04 +0000 (21:20 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 25 May 2018 02:04:46 +0000 (12:04 +1000)
The header file <asm/switch_to.h> was missing from the includes. Fix the
following warning, treated as error with W=1:

  arch/powerpc/kernel/vecemu.c:260:5: error: no previous prototype for â€˜emulate_altivec’ [-Werror=missing-prototypes]

Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/vecemu.c

index 8812085883fdb55a6b055801b8307206c65678aa..4acd3fb2b38ee3c54a80b21e995dd591e9d0b8d6 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/sched.h>
 #include <asm/ptrace.h>
 #include <asm/processor.h>
+#include <asm/switch_to.h>
 #include <linux/uaccess.h>
 
 /* Functions in vector.S */