From: Pintu Kumar <quic_pintu@quicinc.com>
To: <akpm@linux-foundation.org>, <linux-mm@kvack.org>,
<linux-kernel@vger.kernel.org>
Cc: <skhan@linuxfoundation.org>, <pintu.ping@gmail.com>,
Pintu Kumar <quic_pintu@quicinc.com>
Subject: [PATCH] mm/dmapool: use unsigned int instead of unsigned
Date: Tue, 15 Oct 2024 00:03:49 +0530 [thread overview]
Message-ID: <20241014183349.21763-1-quic_pintu@quicinc.com> (raw)
This warning is reported by checkpatch.
Fix by simply replacing it with unsigned int.
This make the style clean.
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
+ unsigned size;
total: 0 errors, 1 warnings, 524 lines checked
Signed-off-by: Pintu Kumar <quic_pintu@quicinc.com>
---
mm/dmapool.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/dmapool.c b/mm/dmapool.c
index f0bfc6c490f4..9d81d7b3cb05 100644
--- a/mm/dmapool.c
+++ b/mm/dmapool.c
@@ -72,7 +72,7 @@ static DEFINE_MUTEX(pools_reg_lock);
static ssize_t pools_show(struct device *dev, struct device_attribute *attr, char *buf)
{
struct dma_pool *pool;
- unsigned size;
+ unsigned int size;
size = sysfs_emit(buf, "poolinfo - 0.1\n");
--
2.17.1
reply other threads:[~2024-10-14 18:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20241014183349.21763-1-quic_pintu@quicinc.com \
--to=quic_pintu@quicinc.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=pintu.ping@gmail.com \
--cc=skhan@linuxfoundation.org \
/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