lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20241014183349.21763-1-quic_pintu@quicinc.com>
Date: Tue, 15 Oct 2024 00:03:49 +0530
From: Pintu Kumar <quic_pintu@...cinc.com>
To: <akpm@...ux-foundation.org>, <linux-mm@...ck.org>,
        <linux-kernel@...r.kernel.org>
CC: <skhan@...uxfoundation.org>, <pintu.ping@...il.com>,
        Pintu Kumar
	<quic_pintu@...cinc.com>
Subject: [PATCH] mm/dmapool: use unsigned int instead of unsigned

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@...cinc.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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ