Add missing header include <linux/mem_encrypt.h>
PATCH 1/1 Add missing header include <linux/mem_encrypt.h>
In commit c7753208a94c ("x86, swiotlb: Add memory encryption support") a call to function ‘mem_encrypt_init’ was added. Include prototype defined in header <linux/mem_encrypt.h> to prevent a warning reported during compilation with W=1:
init/main.c:494:20: warning: no previous prototype for ‘mem_encrypt_init’ [-Wmissing-prototypes]
Signed-off-by Mathieu Malaterre <[email protected]>
--- init/main.c | 1 + 1 file changed, 1 insertion(+)
init/main.c +1 -0
@@ -91,6 +91,7 @@#include <linux/cache.h> #include <linux/rodata_test.h> #include <linux/jump_label.h> +#include <linux/mem_encrypt.h> #include <asm/io.h> #include <asm/bugs.h>
Signature · 1 line
2.11.0
Quoted 6 lines · On Tue, 22 May 2018 21:55:31 +0200 Mathieu Malaterre <[email protected]> wrote:
In commit
c7753208a94c("x86, swiotlb: Add memory encryption support") a call to function ‘mem_encrypt_init’ was added. Include prototype defined in header <linux/mem_encrypt.h> to prevent a warning reported during compilation with W=1:
init/main.c:494:20: warning: no previous prototype for ‘mem_encrypt_init’ [-Wmissing-prototypes]
-- Steve
Quoted 18 lines
Signed-off-by Mathieu Malaterre <[email protected]>--- init/main.c | 1 + 1 file changed, 1 insertion(+)init/main.c +1
-0@@ -91,6 +91,7 @@#include <linux/cache.h> #include <linux/rodata_test.h> #include <linux/jump_label.h> +#include <linux/mem_encrypt.h> #include <asm/io.h> #include <asm/bugs.h>