linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm/dmapool: use unsigned int instead of unsigned
@ 2024-10-14 18:33 Pintu Kumar
  0 siblings, 0 replies; only message in thread
From: Pintu Kumar @ 2024-10-14 18:33 UTC (permalink / raw)
  To: akpm, linux-mm, linux-kernel; +Cc: skhan, pintu.ping, Pintu Kumar

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



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

only message in thread, other threads:[~2024-10-14 18:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-14 18:33 [PATCH] mm/dmapool: use unsigned int instead of unsigned Pintu Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox