From: hanyu001@208suo.com
To: rric@kernel.org, mchehab@kernel.org, james.morse@arm.com,
tony.luck@intel.com, bp@alien8.de, yazen.ghannam@amd.com
Cc: linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org
Subject: [PATCH] drivers: edac 'unsigned int' to bare use of 'unsigned'
Date: Fri, 14 Jul 2023 10:32:56 +0800 [thread overview]
Message-ID: <075f691cb489f3f480340203921a5eba@208suo.com> (raw)
In-Reply-To: <tencent_1729A1084117B6691D94F35D48218BA78A08@qq.com>
Use of 'unsigned int' instead of bare use of 'unsigned'. Fix this for
edac_mc*, ghes and the i5100 driver as reported by checkpatch.pl.
drivers/edac/amd64_edac.c:2112: WARNING: Prefer 'unsigned int' to bare
use of 'unsigned'
Signed-off-byC: Prefer 'unsigned int' to bare use of 'unsigned'
Signed-off-by: maqimei <2433033762@qq.com>
---
drivers/edac/amd64_edac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
index ddb9bf3..62b7611 100644
--- a/drivers/edac/amd64_edac.c
+++ b/drivers/edac/amd64_edac.c
@@ -2109,7 +2109,7 @@ static int ddr2_cs_size(unsigned i, bool
dct_width)
}
static int k8_dbam_to_chip_select(struct amd64_pvt *pvt, u8 dct,
- unsigned cs_mode, int cs_mask_nr)
+ unsigned int cs_mode, int cs_mask_nr)
{
u32 dclr = dct ? pvt->dclr1 : pvt->dclr0;
next parent reply other threads:[~2023-07-14 2:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <tencent_1729A1084117B6691D94F35D48218BA78A08@qq.com>
2023-07-14 2:32 ` hanyu001 [this message]
[not found] <tencent_1109A4B8453E45F850A4A038DBF78E91F907@qq.com>
2023-07-14 2:50 ` hanyu001
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=075f691cb489f3f480340203921a5eba@208suo.com \
--to=hanyu001@208suo.com \
--cc=bp@alien8.de \
--cc=james.morse@arm.com \
--cc=linux-edac@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=rric@kernel.org \
--cc=tony.luck@intel.com \
--cc=yazen.ghannam@amd.com \
/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®