[<prev] [next>] [day] [month] [year] [list]
Message-ID: <d1b81b3fcd0608d792cd52b0fab46db9@208suo.com>
Date: Tue, 11 Jul 2023 16:01:08 +0800
From: shijie001@...suo.com
To: tglx@...utronix.de, mingo@...hat.com, bp@...en8.de,
dave.hansen@...ux.intel.com
Cc: linux-kernel@...r.kernel.org, hpa@...or.com
Subject: [PATCH] x86/amd: Fix warnings in hw_breakpoint.c
The following checkpatch warnings are removed:
WARNING: Use #include <linux/processor.h> instead of <asm/processor.h>
WARNING: Use #include <linux/user.h> instead of <asm/user.h>
WARNING: Prefer 'unsigned int *' to bare use of 'unsigned *'
WARNING: Prefer 'unsigned int *' to bare use of 'unsigned *'
Signed-off-by: Jie Shi <shijie001@...suo.com>
---
arch/x86/kernel/hw_breakpoint.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/kernel/hw_breakpoint.c
b/arch/x86/kernel/hw_breakpoint.c
index b01644c949b2..2a6b5427575e 100644
--- a/arch/x86/kernel/hw_breakpoint.c
+++ b/arch/x86/kernel/hw_breakpoint.c
@@ -29,9 +29,9 @@
#include <linux/smp.h>
#include <asm/hw_breakpoint.h>
-#include <asm/processor.h>
+#include <linux/processor.h>
#include <asm/debugreg.h>
-#include <asm/user.h>
+#include <linux/user.h>
#include <asm/desc.h>
#include <asm/tlbflush.h>
@@ -74,7 +74,7 @@ unsigned long encode_dr7(int drnum, unsigned int len,
unsigned int type)
* Decode the length and type bits for a particular breakpoint as
* stored in debug register 7. Return the "enabled" status.
*/
-int decode_dr7(unsigned long dr7, int bpnum, unsigned *len, unsigned
*type)
+int decode_dr7(unsigned long dr7, int bpnum, unsigned int *len,
unsigned int *type)
{
int bp_info = dr7 >> (DR_CONTROL_SHIFT + bpnum * DR_CONTROL_SIZE);
Powered by blists - more mailing lists