From: Borislav Petkov <bp@alien8.de>
To: linux-mm@kvack.org
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH] mm/mmu_context: Remove asm/mmu_context.h include directive
Date: Thu, 14 Dec 2017 14:20:05 +0100 [thread overview]
Message-ID: <20171214132005.12704-1-bp@alien8.de> (raw)
From: Borislav Petkov <bp@suse.de>
The header linux/mmu_context.h includes it already. Otherwise, you get
warnings like below with some configs.
In file included from mm/mmu_context.c:11:0:
./arch/x86/include/asm/mmu_context.h:129:0: warning: "switch_mm_irqs_off" redefined [enabled by default]
#define switch_mm_irqs_off switch_mm_irqs_off
^
In file included from mm/mmu_context.c:8:0:
include/linux/mmu_context.h:15:0: note: this is the location of the previous definition
# define switch_mm_irqs_off switch_mm
^
Signed-off-by: Borislav Petkov <bp@suse.de>
---
mm/mmu_context.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/mm/mmu_context.c b/mm/mmu_context.c
index 3e612ae748e9..50c556e19383 100644
--- a/mm/mmu_context.c
+++ b/mm/mmu_context.c
@@ -10,8 +10,6 @@
#include <linux/mmu_context.h>
#include <linux/export.h>
-#include <asm/mmu_context.h>
-
/*
* use_mm
* Makes the calling kernel thread take on the specified
--
2.13.0
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
reply other threads:[~2017-12-14 13:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171214132005.12704-1-bp@alien8.de \
--to=bp@alien8.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).