From: xuanzhenggang001@208suo.com
To: linux@armlinux.org.uk
Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: [PATCH] ARM: MCPM: prefer 'unsigned int' to bare use of 'unsigned'
Date: Sun, 09 Jul 2023 21:17:23 +0800 [thread overview]
Message-ID: <cd587f2f5422658255327d28d56e2b7b@208suo.com> (raw)
In-Reply-To: <20230709131439.14552-1-denghuilong@cdjrlc.com>
Fix the following warnings reported by checkpatch:
arch/arm/common/mcpm_entry.c:143: WARNING: Prefer 'unsigned int' to bare
use of 'unsigned'
arch/arm/common/mcpm_entry.c:143: WARNING: Prefer 'unsigned int' to bare
use of 'unsigned'
arch/arm/common/mcpm_entry.c:152: WARNING: Prefer 'unsigned int' to bare
use of 'unsigned'
arch/arm/common/mcpm_entry.c:152: WARNING: Prefer 'unsigned int' to bare
use of 'unsigned'
Signed-off-by: Zhenggang Xuan <xuanzhenggang001@208suo.com>
---
arch/arm/common/mcpm_entry.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/common/mcpm_entry.c b/arch/arm/common/mcpm_entry.c
index 8a9aeeb504dd..97f8e7947807 100644
--- a/arch/arm/common/mcpm_entry.c
+++ b/arch/arm/common/mcpm_entry.c
@@ -140,7 +140,7 @@ static int __mcpm_cluster_state(unsigned int
cluster)
extern unsigned long
mcpm_entry_vectors[MAX_NR_CLUSTERS][MAX_CPUS_PER_CLUSTER];
-void mcpm_set_entry_vector(unsigned cpu, unsigned cluster, void *ptr)
+void mcpm_set_entry_vector(unsigned int cpu, unsigned int cluster, void
*ptr)
{
unsigned long val = ptr ? __pa_symbol(ptr) : 0;
mcpm_entry_vectors[cluster][cpu] = val;
@@ -149,7 +149,7 @@ void mcpm_set_entry_vector(unsigned cpu, unsigned
cluster, void *ptr)
extern unsigned long
mcpm_entry_early_pokes[MAX_NR_CLUSTERS][MAX_CPUS_PER_CLUSTER][2];
-void mcpm_set_early_poke(unsigned cpu, unsigned cluster,
+void mcpm_set_early_poke(unsigned int cpu, unsigned int cluster,
unsigned long poke_phys_addr, unsigned long poke_val)
{
unsigned long *poke = &mcpm_entry_early_pokes[cluster][cpu][0];
parent reply other threads:[~2023-07-09 13:17 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20230709131439.14552-1-denghuilong@cdjrlc.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=cd587f2f5422658255327d28d56e2b7b@208suo.com \
--to=xuanzhenggang001@208suo.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
/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
all inboxes | Powered by JetHome®