[PATCH] mm: Fix warnings in pgtable_32.h

huzhi001@208suo.com posted 1 patch 2 years, 7 months ago
arch/x86/include/asm/pgtable_32.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] mm: Fix warnings in pgtable_32.h
Posted by huzhi001@208suo.com 2 years, 7 months ago
The following checkpatch warnings are removed:
WARNING: Use #include <linux/processor.h> instead of <asm/processor.h>

Signed-off-by: ZhiHu <huzhi001@208suo.com>
---
  arch/x86/include/asm/pgtable_32.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/include/asm/pgtable_32.h 
b/arch/x86/include/asm/pgtable_32.h
index 7d4ad8907297..f4c155055035 100644
--- a/arch/x86/include/asm/pgtable_32.h
+++ b/arch/x86/include/asm/pgtable_32.h
@@ -14,7 +14,7 @@
   * the i386 page table tree.
   */
  #ifndef __ASSEMBLY__
-#include <asm/processor.h>
+#include <linux/processor.h>
  #include <linux/threads.h>
  #include <asm/paravirt.h>
Re: [PATCH] mm: Fix warnings in pgtable_32.h
Posted by Randy Dunlap 2 years, 7 months ago
Hi,

On 7/12/23 07:00, huzhi001@208suo.com wrote:
> The following checkpatch warnings are removed:
> WARNING: Use #include <linux/processor.h> instead of <asm/processor.h>
> 
> Signed-off-by: ZhiHu <huzhi001@208suo.com>

Do you compile-test your changes?

> ---
>  arch/x86/include/asm/pgtable_32.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/x86/include/asm/pgtable_32.h b/arch/x86/include/asm/pgtable_32.h
> index 7d4ad8907297..f4c155055035 100644
> --- a/arch/x86/include/asm/pgtable_32.h
> +++ b/arch/x86/include/asm/pgtable_32.h
> @@ -14,7 +14,7 @@
>   * the i386 page table tree.
>   */
>  #ifndef __ASSEMBLY__
> -#include <asm/processor.h>
> +#include <linux/processor.h>
>  #include <linux/threads.h>
>  #include <asm/paravirt.h>

-- 
~Randy