diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2016-07-13 20:18:54 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-07-14 07:04:20 -0400 |
commit | 84e629b66882f8d1b6e40060e85e5bb27c892d42 (patch) | |
tree | 91c5dc98f19f6bb31690a45c84d9ca9788f5f53f | |
parent | 8b3843996d7ce863b6057287421e8f539b5ffd15 (diff) |
x86: Don't use module.h just for AUTHOR / LICENSE tags
The Kconfig controlling compilation of these files are:
arch/x86/Kconfig.debug:config DEBUG_RODATA_TEST
arch/x86/Kconfig.debug: bool "Testcase for the marking rodata read-only"
arch/x86/Kconfig.debug:config X86_PTDUMP_CORE
arch/x86/Kconfig.debug: def_bool n
...meaning that it currently is not being built as a module by anyone.
Lets remove the couple traces of modular infrastructure use, so that
when reading the driver there is no doubt it is builtin-only.
We delete the MODULE_LICENSE tag etc. since all that information
is already contained at the top of the file in the comments.
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: Arjan van de Ven <arjan@linux.intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20160714001901.31603-2-paul.gortmaker@windriver.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/x86/kernel/test_rodata.c | 5 | ||||
-rw-r--r-- | arch/x86/mm/dump_pagetables.c | 6 |
2 files changed, 1 insertions, 10 deletions
diff --git a/arch/x86/kernel/test_rodata.c b/arch/x86/kernel/test_rodata.c index cb4a01b41e27..222e84e2432e 100644 --- a/arch/x86/kernel/test_rodata.c +++ b/arch/x86/kernel/test_rodata.c | |||
@@ -9,7 +9,6 @@ | |||
9 | * as published by the Free Software Foundation; version 2 | 9 | * as published by the Free Software Foundation; version 2 |
10 | * of the License. | 10 | * of the License. |
11 | */ | 11 | */ |
12 | #include <linux/module.h> | ||
13 | #include <asm/cacheflush.h> | 12 | #include <asm/cacheflush.h> |
14 | #include <asm/sections.h> | 13 | #include <asm/sections.h> |
15 | #include <asm/asm.h> | 14 | #include <asm/asm.h> |
@@ -74,7 +73,3 @@ int rodata_test(void) | |||
74 | 73 | ||
75 | return 0; | 74 | return 0; |
76 | } | 75 | } |
77 | |||
78 | MODULE_LICENSE("GPL"); | ||
79 | MODULE_DESCRIPTION("Testcase for marking rodata as read-only"); | ||
80 | MODULE_AUTHOR("Arjan van de Ven <arjan@linux.intel.com>"); | ||
diff --git a/arch/x86/mm/dump_pagetables.c b/arch/x86/mm/dump_pagetables.c index 99bfb192803f..5bb27fa27973 100644 --- a/arch/x86/mm/dump_pagetables.c +++ b/arch/x86/mm/dump_pagetables.c | |||
@@ -14,7 +14,7 @@ | |||
14 | 14 | ||
15 | #include <linux/debugfs.h> | 15 | #include <linux/debugfs.h> |
16 | #include <linux/mm.h> | 16 | #include <linux/mm.h> |
17 | #include <linux/module.h> | 17 | #include <linux/init.h> |
18 | #include <linux/seq_file.h> | 18 | #include <linux/seq_file.h> |
19 | 19 | ||
20 | #include <asm/pgtable.h> | 20 | #include <asm/pgtable.h> |
@@ -446,8 +446,4 @@ static int __init pt_dump_init(void) | |||
446 | 446 | ||
447 | return 0; | 447 | return 0; |
448 | } | 448 | } |
449 | |||
450 | __initcall(pt_dump_init); | 449 | __initcall(pt_dump_init); |
451 | MODULE_LICENSE("GPL"); | ||
452 | MODULE_AUTHOR("Arjan van de Ven <arjan@linux.intel.com>"); | ||
453 | MODULE_DESCRIPTION("Kernel debugging helper that dumps pagetables"); | ||