Skip to contentSkip to conversation

x86/amd: Fix warnings in hw_breakpoint.c

PATCH New [email protected] 1 participant 1 message Jul 11, 2023 1 message not in the archive x86

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 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 *'

---
 arch/x86/kernel/hw_breakpoint.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/x86/kernel/hw_breakpoint.c +3 -3
index b01644c949b2..2a6b5427575e 100644
@@ -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);