All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/amd: Fix warnings in hw_breakpoint.c
       [not found] <tencent_AFA3A930A2A72F79197FAA5B352CBD4B4407@qq.com>
@ 2023-07-11  8:01 ` shijie001
  0 siblings, 0 replies; only message in thread
From: shijie001 @ 2023-07-11  8:01 UTC (permalink / raw)
  To: tglx, mingo, bp, dave.hansen; +Cc: linux-kernel, hpa

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@208suo.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);

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-11  8:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <tencent_AFA3A930A2A72F79197FAA5B352CBD4B4407@qq.com>
2023-07-11  8:01 ` [PATCH] x86/amd: Fix warnings in hw_breakpoint.c shijie001

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.