2023-07-12 09:34:07

by huzhi001

[permalink] [raw]
Subject: [PATCH] x86/mm: Fix warnings in mmzone_32.h

The following checkpatch warnings are removed:
WARNING: Use #include <linux/smp.h> instead of <asm/smp.h>

Signed-off-by: ZhiHu <[email protected]>
---
arch/x86/include/asm/mmzone_32.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/include/asm/mmzone_32.h
b/arch/x86/include/asm/mmzone_32.h
index 2d4515e8b7df..97ca734a5de9 100644
--- a/arch/x86/include/asm/mmzone_32.h
+++ b/arch/x86/include/asm/mmzone_32.h
@@ -7,7 +7,7 @@
#ifndef _ASM_X86_MMZONE_32_H
#define _ASM_X86_MMZONE_32_H

-#include <asm/smp.h>
+#include <linux/smp.h>

#ifdef CONFIG_NUMA
extern struct pglist_data *node_data[];