From: shijie001@208suo.com
To: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de,
dave.hansen@linux.intel.com
Cc: linux-kernel@vger.kernel.org, hpa@zytor.com
Subject: [PATCH] x86/amd: Fix warnings in hw_breakpoint.c
Date: Tue, 11 Jul 2023 16:01:08 +0800 [thread overview]
Message-ID: <d1b81b3fcd0608d792cd52b0fab46db9@208suo.com> (raw)
In-Reply-To: <tencent_AFA3A930A2A72F79197FAA5B352CBD4B4407@qq.com>
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);
parent reply other threads:[~2023-07-11 8:02 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <tencent_AFA3A930A2A72F79197FAA5B352CBD4B4407@qq.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d1b81b3fcd0608d792cd52b0fab46db9@208suo.com \
--to=shijie001@208suo.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox