x86/mm: Correct fixmap header usage on adaptable MODULES_END
Subsystems (5)
PATCH 1/1 x86/mm: Correct fixmap header usage on adaptable MODULES_END
This patch remove fixmap header usage on non-x86 code that was introduced by the adaptable MODULE_END change.
---
Based on tip:x86/mm
--- arch/x86/include/asm/pgtable_64.h | 1 + arch/x86/kernel/module.c | 1 - arch/x86/mm/dump_pagetables.c | 1 - arch/x86/mm/kasan_init_64.c | 1 - mm/vmalloc.c | 4 ---- 5 files changed, 1 insertion(+), 7 deletions(-)
arch/x86/include/asm/pgtable_64.h +1 -0
@@ -13,6 +13,7 @@#include <asm/processor.h> #include <linux/bitops.h> #include <linux/threads.h> +#include <asm/fixmap.h> extern pud_t level3_kernel_pgt[512 ];extern pud_t level3_ident_pgt[512 ];
arch/x86/kernel/module.c +0 -1
@@ -35,7 +35,6 @@#include <asm/page.h> #include <asm/pgtable.h> #include <asm/setup.h> -#include <asm/fixmap.h> #if 0 #define DEBUGP (fmt, ...) \
arch/x86/mm/dump_pagetables.c +0 -1
@@ -20,7 +20,6 @@#include <asm/kasan.h> #include <asm/pgtable.h> -#include <asm/fixmap.h> /* * The dumper groups pagetable entries of the same type into one, and for
arch/x86/mm/kasan_init_64.c +0 -1
@@ -9,7 +9,6 @@#include <asm/tlbflush.h> #include <asm/sections.h> -#include <asm/fixmap.h> extern pgd_t early_level4_pgt[PTRS_PER_PGD ];extern struct range pfn_mapped[E820_X_MAX ];
mm/vmalloc.c +0 -4
@@ -36,10 +36,6 @@#include <asm/tlbflush.h> #include <asm/shmparam.h> -#ifdef CONFIG_X86 -# include <asm/fixmap.h> -#endif -#include "internal.h" struct vfree_deferred {
Signature · 7 lines
2.12.0.367.g23dc2f6d3c-goog -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
tip-bot for Thomas Garnier
merge botx86/mm: Correct fixmap header usage on adaptable MODULES_END
Commit-ID: f991376e444aee8f5643a45703c1433bf7948940 Gitweb: http://git.kernel.org/tip/f991376e444aee8f5643a45703c1433bf7948940 Author: Thomas Garnier <[email protected]> AuthorDate: Fri, 17 Mar 2017 10:50:34 -0700 Committer: Ingo Molnar <[email protected]> CommitDate: Sat, 18 Mar 2017 09:48:00 +0100
x86/mm: Correct fixmap header usage on adaptable MODULES_END
This patch removes fixmap header usage on non-x86 code that was introduced by the adaptable MODULE_END change.
--- arch/x86/include/asm/pgtable_64.h | 1 + arch/x86/kernel/module.c | 1 - arch/x86/mm/dump_pagetables.c | 1 - arch/x86/mm/kasan_init_64.c | 1 - mm/vmalloc.c | 4 ---- 5 files changed, 1 insertion(+), 7 deletions(-)
arch/x86/include/asm/pgtable_64.h +1 -0
@@ -13,6 +13,7 @@#include <asm/processor.h> #include <linux/bitops.h> #include <linux/threads.h> +#include <asm/fixmap.h> extern pud_t level3_kernel_pgt[512 ];extern pud_t level3_ident_pgt[512 ];
arch/x86/kernel/module.c +0 -1
@@ -35,7 +35,6 @@#include <asm/page.h> #include <asm/pgtable.h> #include <asm/setup.h> -#include <asm/fixmap.h> #if 0 #define DEBUGP (fmt, ...) \
arch/x86/mm/dump_pagetables.c +0 -1
@@ -20,7 +20,6 @@#include <asm/kasan.h> #include <asm/pgtable.h> -#include <asm/fixmap.h> /* * The dumper groups pagetable entries of the same type into one, and for
arch/x86/mm/kasan_init_64.c +0 -1
@@ -9,7 +9,6 @@#include <asm/tlbflush.h> #include <asm/sections.h> -#include <asm/fixmap.h> extern pgd_t early_level4_pgt[PTRS_PER_PGD ];extern struct range pfn_mapped[E820_X_MAX ];
mm/vmalloc.c +0 -4
@@ -36,10 +36,6 @@#include <asm/tlbflush.h> #include <asm/shmparam.h> -#ifdef CONFIG_X86 -# include <asm/fixmap.h> -#endif -#include "internal.h" struct vfree_deferred {
Quoted 2 lines · Thomas Garnier
This patch remove fixmap header usage on non-x86 code that was introduced by the adaptable
MODULE_ENDchange.
Hi, Thomas
In this patch, it looks you are trying to do two things for my understanding:
1. To include <asm/fixmap.h> in asm/pagetable_64.h and remove the include in some of the x86 files
2. Remove <asm/fixmap.h> in mm/vmalloc.c
I think your change log covers the second task in the patch, but not not talk about the first task you did in the patch. If you could mention it in commit log, it would be good for maintain.
BTW, I have little knowledge about MODULE_END. By searching the code MODULE_END is not used in arch/x86. If you would like to mention the commit which introduce the problem, it would be more helpful to review the code.
Quoted 17 lines
Signed-off-by Thomas Garnier <[email protected]>---
Based on tip:x86/mm
---arch/x86/include/asm/pgtable_64.h | 1 + arch/x86/kernel/module.c | 1 - arch/x86/mm/dump_pagetables.c | 1 - arch/x86/mm/kasan_init_64.c | 1 - mm/vmalloc.c | 4 ---- 5 files changed, 1 insertion(+), 7 deletions(-)arch/x86/include/asm/pgtable_64.h +0
-0
arch/x86/include/asm/pgtable_64.h line 17
Quoted 5 lines
arch/x86/include/asm/pgtable_64.h +1
-0@@ -13,6 +13,7 @@#include <asm/processor.h> #include <linux/bitops.h> #include <linux/threads.h> +#include <asm/fixmap.h>
Hmm... I see in both pgtable_32.h and pgtable_64.h will include <asm/fixmap.h> after this change. And pgtable_32.h and pgtable_64.h will be included only in pgtable.h. So is it possible to include <asm/fixmap.h> in pgtable.h for once instead of include it in both files? Any concerns you would have?
Quoted 55 lines
arch/x86/include/asm/pgtable_64.h +0
-0extern pud_t level3_kernel_pgt[512 ];extern pud_t level3_ident_pgt[512 ];arch/x86/kernel/module.c +0
-1@@ -35,7 +35,6 @@#include <asm/page.h> #include <asm/pgtable.h> #include <asm/setup.h> -#include <asm/fixmap.h> #if 0 #define DEBUGP (fmt, ...) \arch/x86/mm/dump_pagetables.c +0
-1@@ -20,7 +20,6 @@#include <asm/kasan.h> #include <asm/pgtable.h> -#include <asm/fixmap.h> /* * The dumper groups pagetable entries of the same type into one, and for arch/x86/mm/kasan_init_64.c +0
-1@@ -9,7 +9,6 @@#include <asm/tlbflush.h> #include <asm/sections.h> -#include <asm/fixmap.h> extern pgd_t early_level4_pgt[PTRS_PER_PGD ];extern struct range pfn_mapped[E820_X_MAX ];mm/vmalloc.c +0
-4@@ -36,10 +36,6 @@#include <asm/tlbflush.h> #include <asm/shmparam.h> -#ifdef CONFIG_X86 -# include <asm/fixmap.h> -#endif -#include "internal.h" struct vfree_deferred {Signature · 1 line
2.12.0.367.g23dc2f6d3c-goog
Signature · 2 lines
Wei Yang Help you, Help me
Quoted 6 lines · Wei Yang
Quoted 2 lines · Thomas Garnier
This patch remove fixmap header usage on non-x86 code that was introduced by the adaptable
MODULE_ENDchange.Hi, Thomas
Quoted 8 lines
In this patch, it looks you are trying to do two things for my understanding:
1. To include <asm/fixmap.h> inasm/pagetable_64.hand remove the include in some of the x86 files
2. Remove <asm/fixmap.h> inmm/vmalloc.cI think your change log covers the second task in the patch, but not not talk about the first task you did in the patch. If you could mention it in commit log, it would be good for maintain.
I agree, I am not the best at writing commits (by far). What's the best way for me to correct that? (the bot seem to have taken it).
Quoted 4 lines
BTW, I have little knowledge about
MODULE_END. By searching the codeMODULE_ENDis not used inarch/x86. If you would like to mention the commit which introduce the problem, it would be more helpful to review the code.
It is used in many places in arch/x86, kasan, head64, fault etc..:
http://lxr.free-electrons.com/ident?i=MODULES_END
Quoted 13 lines
Quoted 13 lines
Signed-off-by Thomas Garnier <[email protected]>---
Based on tip:x86/mm
---arch/x86/include/asm/pgtable_64.h | 1 + arch/x86/kernel/module.c | 1 - arch/x86/mm/dump_pagetables.c | 1 - arch/x86/mm/kasan_init_64.c | 1 - mm/vmalloc.c | 4 ---- 5 files changed, 1 insertion(+), 7 deletions(-)
Quoted 15 lines
arch/x86/include/asm/pgtable_64.h line 17
Quoted 10 lines
arch/x86/include/asm/pgtable_64.h +1
-0@@ -13,6 +13,7 @@#include <asm/processor.h> #include <linux/bitops.h> #include <linux/threads.h> +#include <asm/fixmap.h> Hmm... I see in both
pgtable_32.handpgtable_64.hwill include <asm/fixmap.h> after this change. Andpgtable_32.handpgtable_64.hwill be included only inpgtable.h. So is it possible to include <asm/fixmap.h> inpgtable.hfor once instead of include it in both files? Any concerns you would have?
I am not sure I understood. Only 64-bit need this header to correctly get MODULES_END, that's why I added it to pgtable_64.h only. I tried to add it lower before and ran into multiple header errors.
Quoted 60 lines
Quoted 55 lines
arch/x86/include/asm/pgtable_64.h +0
-0extern pud_t level3_kernel_pgt[512 ];extern pud_t level3_ident_pgt[512 ];arch/x86/kernel/module.c +0
-1@@ -35,7 +35,6 @@#include <asm/page.h> #include <asm/pgtable.h> #include <asm/setup.h> -#include <asm/fixmap.h> #if 0 #define DEBUGP (fmt, ...) \arch/x86/mm/dump_pagetables.c +0
-1@@ -20,7 +20,6 @@#include <asm/kasan.h> #include <asm/pgtable.h> -#include <asm/fixmap.h> /* * The dumper groups pagetable entries of the same type into one, and for arch/x86/mm/kasan_init_64.c +0
-1@@ -9,7 +9,6 @@#include <asm/tlbflush.h> #include <asm/sections.h> -#include <asm/fixmap.h> extern pgd_t early_level4_pgt[PTRS_PER_PGD ];extern struct range pfn_mapped[E820_X_MAX ];mm/vmalloc.c +0
-5@@ -36,10 +36,6 @@#include <asm/tlbflush.h> #include <asm/shmparam.h> -#ifdef CONFIG_X86 -# include <asm/fixmap.h> -#endif -#include "internal.h" struct vfree_deferred { --Quoted 1 line
2.12.0.367.g23dc2f6d3c-goog
--
Wei Yang
Help you, Help me
Signature · 7 lines
Thomas -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 12 lines · Thomas Garnier
Quoted 11 lines · Wei Yang
Quoted 2 lines · Thomas Garnier
This patch remove fixmap header usage on non-x86 code that was introduced by the adaptable
MODULE_ENDchange.Hi, Thomas
In this patch, it looks you are trying to do two things for my understanding:
1. To include <asm/fixmap.h> inasm/pagetable_64.hand remove the include in some of the x86 files
2. Remove <asm/fixmap.h> inmm/vmalloc.c
Quoted 7 lines
Quoted 3 lines
I think your change log covers the second task in the patch, but not not talk about the first task you did in the patch. If you could mention it in commit log, it would be good for maintain.
I agree, I am not the best at writing commits (by far). What's the best way for me to correct that? (the bot seem to have taken it).
Simply mention it in your commit log is enough to me.
Quoted 8 lines
Quoted 4 lines
BTW, I have little knowledge about
MODULE_END. By searching the codeMODULE_ENDis not used inarch/x86. If you would like to mention the commit which introduce the problem, it would be more helpful to review the code.It is used in many places in
arch/x86, kasan, head64, fault etc..:
http://lxr.free-electrons.com/ident?i=MODULES_END
Oh, thanks :-)
Quoted 29 lines
Quoted 13 lines
Quoted 13 lines
Signed-off-by Thomas Garnier <[email protected]>---
Based on tip:x86/mm
---arch/x86/include/asm/pgtable_64.h | 1 + arch/x86/kernel/module.c | 1 - arch/x86/mm/dump_pagetables.c | 1 - arch/x86/mm/kasan_init_64.c | 1 - mm/vmalloc.c | 4 ---- 5 files changed, 1 insertion(+), 7 deletions(-)Quoted 15 lines
arch/x86/include/asm/pgtable_64.h line 17
Quoted 10 lines
arch/x86/include/asm/pgtable_64.h +1
-0@@ -13,6 +13,7 @@#include <asm/processor.h> #include <linux/bitops.h> #include <linux/threads.h> +#include <asm/fixmap.h> Hmm... I see in both
pgtable_32.handpgtable_64.hwill include <asm/fixmap.h> after this change. Andpgtable_32.handpgtable_64.hwill be included only inpgtable.h. So is it possible to include <asm/fixmap.h> inpgtable.hfor once instead of include it in both files? Any concerns you would have?
Quoted 4 lines
I am not sure I understood. Only 64-bit need this header to correctly get
MODULES_END, that's why I added it topgtable_64.honly. I tried to add it lower before and ran into multiple header errors.
When you look in to pgtable_64.h, you would see it includes <asm/fixmap.h> too. Hmm... If only 64-bit need this header, would it be possible to remote it from pgtable_32.h?
Quoted 65 lines
Quoted 60 lines
Quoted 55 lines
arch/x86/include/asm/pgtable_64.h +0
-0extern pud_t level3_kernel_pgt[512 ];extern pud_t level3_ident_pgt[512 ];arch/x86/kernel/module.c +0
-1@@ -35,7 +35,6 @@#include <asm/page.h> #include <asm/pgtable.h> #include <asm/setup.h> -#include <asm/fixmap.h> #if 0 #define DEBUGP (fmt, ...) \arch/x86/mm/dump_pagetables.c +0
-1@@ -20,7 +20,6 @@#include <asm/kasan.h> #include <asm/pgtable.h> -#include <asm/fixmap.h> /* * The dumper groups pagetable entries of the same type into one, and for arch/x86/mm/kasan_init_64.c +0
-1@@ -9,7 +9,6 @@#include <asm/tlbflush.h> #include <asm/sections.h> -#include <asm/fixmap.h> extern pgd_t early_level4_pgt[PTRS_PER_PGD ];extern struct range pfn_mapped[E820_X_MAX ];mm/vmalloc.c +0
-5@@ -36,10 +36,6 @@#include <asm/tlbflush.h> #include <asm/shmparam.h> -#ifdef CONFIG_X86 -# include <asm/fixmap.h> -#endif -#include "internal.h" struct vfree_deferred { --Quoted 1 line
2.12.0.367.g23dc2f6d3c-goog
--
Wei Yang
Help you, Help meSignature · 1 line
Thomas
Signature · 2 lines
Wei Yang Help you, Help me
Quoted 17 lines · Wei Yang
Quoted 16 lines · Thomas Garnier
Quoted 14 lines · Wei Yang
Quoted 2 lines · Thomas Garnier
This patch remove fixmap header usage on non-x86 code that was introduced by the adaptable
MODULE_ENDchange.Hi, Thomas
In this patch, it looks you are trying to do two things for my understanding:
1. To include <asm/fixmap.h> inasm/pagetable_64.hand remove the include in some of the x86 files
2. Remove <asm/fixmap.h> inmm/vmalloc.cI think your change log covers the second task in the patch, but not not talk about the first task you did in the patch. If you could mention it in commit log, it would be good for maintain.
Quoted 6 lines
Quoted 3 lines
I agree, I am not the best at writing commits (by far). What's the best way for me to correct that? (the bot seem to have taken it).
Simply mention it in your commit log is enough to me.
I meant, do I send another patch or reply on in this thread and bot will pick it up?
Quoted 40 lines
Quoted 8 lines
Quoted 4 lines
BTW, I have little knowledge about
MODULE_END. By searching the codeMODULE_ENDis not used inarch/x86. If you would like to mention the commit which introduce the problem, it would be more helpful to review the code.It is used in many places in
arch/x86, kasan, head64, fault etc..:
http://lxr.free-electrons.com/ident?i=MODULES_ENDOh, thanks :-)
Quoted 29 lines
Quoted 28 lines
Quoted 18 lines
Signed-off-by Thomas Garnier <[email protected]>---
Based on tip:x86/mm
---arch/x86/include/asm/pgtable_64.h | 1 + arch/x86/kernel/module.c | 1 - arch/x86/mm/dump_pagetables.c | 1 - arch/x86/mm/kasan_init_64.c | 1 - mm/vmalloc.c | 4 ---- 5 files changed, 1 insertion(+), 7 deletions(-)arch/x86/include/asm/pgtable_64.h +0
-0arch/x86/include/asm/pgtable_64.h line 17
Quoted 5 lines
arch/x86/include/asm/pgtable_64.h +1
-0@@ -13,6 +13,7 @@#include <asm/processor.h> #include <linux/bitops.h> #include <linux/threads.h> +#include <asm/fixmap.h> Hmm... I see in both
pgtable_32.handpgtable_64.hwill include <asm/fixmap.h> after this change. Andpgtable_32.handpgtable_64.hwill be included only inpgtable.h. So is it possible to include <asm/fixmap.h> inpgtable.hfor once instead of include it in both files? Any concerns you would have?
Quoted 9 lines
Quoted 4 lines
I am not sure I understood. Only 64-bit need this header to correctly get
MODULES_END, that's why I added it topgtable_64.honly. I tried to add it lower before and ran into multiple header errors.When you look in to
pgtable_64.h, you would see it includes <asm/fixmap.h> too. Hmm... If only 64-bit need this header, would it be possible to remote it frompgtable_32.h?
I see that you mean, I can test to see if putting fixmap in pgtable.h will be enough.
Quoted 70 lines
Quoted 64 lines
Quoted 54 lines
Quoted 54 lines
arch/x86/include/asm/pgtable_64.h +0
-0extern pud_t level3_kernel_pgt[512 ];extern pud_t level3_ident_pgt[512 ];arch/x86/kernel/module.c +0
-1@@ -35,7 +35,6 @@#include <asm/page.h> #include <asm/pgtable.h> #include <asm/setup.h> -#include <asm/fixmap.h> #if 0 #define DEBUGP (fmt, ...) \arch/x86/mm/dump_pagetables.c +0
-1@@ -20,7 +20,6 @@#include <asm/kasan.h> #include <asm/pgtable.h> -#include <asm/fixmap.h> /* * The dumper groups pagetable entries of the same type into one, and for arch/x86/mm/kasan_init_64.c +0
-1@@ -9,7 +9,6 @@#include <asm/tlbflush.h> #include <asm/sections.h> -#include <asm/fixmap.h> extern pgd_t early_level4_pgt[PTRS_PER_PGD ];extern struct range pfn_mapped[E820_X_MAX ];mm/vmalloc.c +0
-4@@ -36,10 +36,6 @@#include <asm/tlbflush.h> #include <asm/shmparam.h> -#ifdef CONFIG_X86 -# include <asm/fixmap.h> -#endif -#include "internal.h" Quoted 7 lines
Quoted 3 lines
mm/vmalloc.c +0
-1struct vfree_deferred { --2.12.0.367.g23dc2f6d3c-goog
--
Wei Yang
Help you, Help meQuoted 2 lines
--
Thomas--
Wei Yang
Help you, Help me
Signature · 7 lines
Thomas -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 22 lines · Thomas Garnier
Quoted 21 lines · Wei Yang
Quoted 19 lines · Thomas Garnier
Quoted 6 lines · Wei Yang
Quoted 2 lines · Thomas Garnier
This patch remove fixmap header usage on non-x86 code that was introduced by the adaptable
MODULE_ENDchange.Hi, Thomas
Quoted 8 lines
In this patch, it looks you are trying to do two things for my understanding:
1. To include <asm/fixmap.h> inasm/pagetable_64.hand remove the include in some of the x86 files
2. Remove <asm/fixmap.h> inmm/vmalloc.cI think your change log covers the second task in the patch, but not not talk about the first task you did in the patch. If you could mention it in commit log, it would be good for maintain.
I agree, I am not the best at writing commits (by far). What's the best way for me to correct that? (the bot seem to have taken it).
Quoted 6 lines
Quoted 2 lines
Simply mention it in your commit log is enough to me.
I meant, do I send another patch or reply on in this thread and bot will pick it up?
I think it is necessary to send V2.
Signature · 2 lines
Wei Yang Help you, Help me