* [PATCH] Add missing header include <linux/mem_encrypt.h>
@ 2018-05-22 19:55 Mathieu Malaterre
2018-05-22 20:25 ` Steven Rostedt
0 siblings, 1 reply; 2+ messages in thread
From: Mathieu Malaterre @ 2018-05-22 19:55 UTC (permalink / raw)
To: Tom Lendacky
Cc: Mathieu Malaterre, Andrew Morton, Ingo Molnar, Thomas Gleixner,
Kees Cook, Laura Abbott, Steven Rostedt (VMware),
Dominik Brodowski, Gargi Sharma, Josh Poimboeuf, linux-kernel
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 <malat@debian.org>
---
init/main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/init/main.c b/init/main.c
index 3d6b31f4e520..35ce2ddb1322 100644
--- a/init/main.c
+++ b/init/main.c
@@ -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>
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Add missing header include <linux/mem_encrypt.h>
2018-05-22 19:55 [PATCH] Add missing header include <linux/mem_encrypt.h> Mathieu Malaterre
@ 2018-05-22 20:25 ` Steven Rostedt
0 siblings, 0 replies; 2+ messages in thread
From: Steven Rostedt @ 2018-05-22 20:25 UTC (permalink / raw)
To: Mathieu Malaterre
Cc: Tom Lendacky, Andrew Morton, Ingo Molnar, Thomas Gleixner,
Kees Cook, Laura Abbott, Dominik Brodowski, Gargi Sharma,
Josh Poimboeuf, linux-kernel
On Tue, 22 May 2018 21:55:31 +0200
Mathieu Malaterre <malat@debian.org> 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]
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
-- Steve
>
> Signed-off-by: Mathieu Malaterre <malat@debian.org>
> ---
> init/main.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/init/main.c b/init/main.c
> index 3d6b31f4e520..35ce2ddb1322 100644
> --- a/init/main.c
> +++ b/init/main.c
> @@ -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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-05-22 20:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-22 19:55 [PATCH] Add missing header include <linux/mem_encrypt.h> Mathieu Malaterre
2018-05-22 20:25 ` Steven Rostedt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.