LKML Archive on
 help / color / Atom feed
From: Mathieu Malaterre <>
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 <>,
Subject: [PATCH] Add missing header include <linux/mem_encrypt.h>
Date: Tue, 22 May 2018 21:55:31 +0200
Message-ID: <> (raw)

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 <>
 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>

             reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-22 19:55 Mathieu Malaterre [this message]
2018-05-22 20:25 ` Steven Rostedt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

LKML Archive on

Archives are clonable:
	git clone --mirror lkml/git/0.git
	git clone --mirror lkml/git/1.git
	git clone --mirror lkml/git/2.git
	git clone --mirror lkml/git/3.git
	git clone --mirror lkml/git/4.git
	git clone --mirror lkml/git/5.git
	git clone --mirror lkml/git/6.git
	git clone --mirror lkml/git/7.git
	git clone --mirror lkml/git/8.git
	git clone --mirror lkml/git/9.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 lkml lkml/ \
	public-inbox-index lkml

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone