From patchwork Mon Oct 14 18:33:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pintu Kumar X-Patchwork-Id: 13835388 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84E3DD1813A for ; Mon, 14 Oct 2024 18:34:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0C6E76B0089; Mon, 14 Oct 2024 14:34:41 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0771E6B008A; Mon, 14 Oct 2024 14:34:41 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E59B46B008C; Mon, 14 Oct 2024 14:34:40 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id C59356B0089 for ; Mon, 14 Oct 2024 14:34:40 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id D7AF4C0F20 for ; Mon, 14 Oct 2024 18:34:31 +0000 (UTC) X-FDA: 82673058636.29.7109C30 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by imf23.hostedemail.com (Postfix) with ESMTP id 3CDAC140005 for ; Mon, 14 Oct 2024 18:34:34 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b="cU NVdFZ"; spf=pass (imf23.hostedemail.com: domain of quic_pintu@quicinc.com designates 205.220.180.131 as permitted sender) smtp.mailfrom=quic_pintu@quicinc.com; dmarc=pass (policy=none) header.from=quicinc.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1728930806; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=ZtMZ9rpeS1pqw3+AB3ebNz1vWNw34/B8sPO+EDEkMYE=; b=ffIBA3AyE9JCcqEVO7zsV6TdqKiiaaS28Hv3JYCHv2n3nVkkBcDG7SIlGu378tBv3pvKW9 wP+Jro5/Zmw2jiIe1Fm6dfJdrWtq+AHG89LkCADCXCN3kBJ6kp8SG8463i1sK7mKquHEpR dWDfR36AHKdRUP4V5kze94ecZBhclqQ= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b="cU NVdFZ"; spf=pass (imf23.hostedemail.com: domain of quic_pintu@quicinc.com designates 205.220.180.131 as permitted sender) smtp.mailfrom=quic_pintu@quicinc.com; dmarc=pass (policy=none) header.from=quicinc.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1728930806; a=rsa-sha256; cv=none; b=3myfJ9urYcmHY5nB4ggF2A3cOzkwoLExg0Amdoo8FVOCZBjuVFqtDrc//vQFapiB5O7QyQ 7CNRyQIBBaflPlGmVZQm/yFFNQhLY1Q1rVbxEoNI6eCLm4e5eeFe4Ecqcj6DY9pLsvreXN pr8gIlcjRx+CxYu8rTX/0VmagtJO9Ok= Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49EFrD5L019841; Mon, 14 Oct 2024 18:34:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-type:date:from:message-id:mime-version:subject:to; s= qcppdkim1; bh=ZtMZ9rpeS1pqw3+AB3ebNz1vWNw34/B8sPO+EDEkMYE=; b=cU NVdFZb5dGGoSA/v01torSxdOcqzkpBSm5VnBy480ikipRlMNFwptCm6+n0G3BPxg kc+UIXIK23SW0qe85W/H0acif1ru8IumeRknctzN8UqoTecLEf+alrHUrs9eNa9D dUu9Xb2C9sh4hviqKsQnlhJ/MR63S24TtDMYZ9WkvG+O/ML2Hrks9ixZf7PDhn0+ KGhTYHMZYmSgrOg9OkKT+2wAZia7VmIqqHrzvPRgzT/tMzldf/SwLibHrpg8PKFv Xoj8ocQpxwXrEHJqLDbW8gn6nTGfENFK+hf9qAsYmZ/pW2C7K5Bjts12863+rPeI VFQU6cBXZgctIE2OHQIw== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4296b7rc9s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Oct 2024 18:34:36 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA02.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 49EIYZFX012598 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Oct 2024 18:34:35 GMT Received: from hu-pintu-blr.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Mon, 14 Oct 2024 11:34:33 -0700 From: Pintu Kumar To: , , CC: , , Pintu Kumar Subject: [PATCH] mm/dmapool: use unsigned int instead of unsigned Date: Tue, 15 Oct 2024 00:03:49 +0530 Message-ID: <20241014183349.21763-1-quic_pintu@quicinc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: W69QJEk-dfTBGiBJLW5SswZMPcJaTny_ X-Proofpoint-ORIG-GUID: W69QJEk-dfTBGiBJLW5SswZMPcJaTny_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 adultscore=0 priorityscore=1501 impostorscore=0 bulkscore=0 spamscore=0 suspectscore=0 mlxscore=0 malwarescore=0 clxscore=1015 phishscore=0 mlxlogscore=990 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2410140133 X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: 3CDAC140005 X-Stat-Signature: bjnpthuxwq6qzpfwcn7o9cu57zh7tkng X-HE-Tag: 1728930874-242991 X-HE-Meta: U2FsdGVkX19mF/QgnwS55crimmNHQMUdZG5Ij0y5GsgsTt8/jfq4PbjRyglkedNxiJS8z74j4dPOXIGyRuXYHRfC2l1quWI+QEqMi55P7tk7KfvzCu1LqQL8SwOiHmU9VSPC2C84/82hDxTYp6vkbAnhBkGSqc2680FBKKhVnsG4rT5E1Ydu1r/Ju7XgdKIgYkRL15XWJFqmywrI4VFGSgoFWXsapWroN/i+kDCil5c+1YPbOkZzI+1S3cRK0TxSNWMNPDnyRL1yvz9ni2egJJRMSiv5Bj+IZf7OnZfFI954Lu0ZDdxurRiQiJnWjXYJcbf5fMyW3qOUBzCv1qVyfWCYmEcKxJr+vqsiRd0C5sE9KmokWNMrpmEDDuc4ZMmGUYm3FVBSsyk2RcLOiBIulduO2ua/OXduGOCjXTrahACNIDLBDfivbL6La9J93n2m4sgOdy1V96xMs7xxZOIoegb67Q8zC+sfb0IGX4QeGhLslOpeKI66EhEJUQ9niW7PksGXb9OTr58zLQaGA8DRMX9A9WJLZgIMtsQ3hqjYIUIyfyRfS4tZcZly7yKA8VC/UZckfJqjBvkIaYvDxNvEpPAuaW2X9pRjiewFwl1PwgyOSoukOoR91MQBLE4222pdMXn58+fIHoImJRm6P9tlhylqyrYMQP6QoZqQbsvsB6+0RzEChJFenLhP4E1ex+OUclJmoitJePgQF17h8GigND/I9fKV2gHncx8i03YvEH2p5WdR8Iz9Oo26kjamUPZKdK7UouFcJiShY2QNdQtYv9SzQiqfv9mtQyXqlV8tVvAH1uVt/j/oOHXgyQ5moKvoBPKZkCID6wl27CfCiAffANcP+o3f5rfGt0a200hia0i87NqosneIx3DPybVaZ69bhshOGaA+qrZmNKVNA7nqeu8hdqWiSiOTx6wyr1SYPQ8jn1ywQUBBvB7T7tdoHilsGEZ2GpcaPPTTyNIzQ1f 7n+k4BaG fYjpwgklanE+3H5FqoeYus5biBTZmzHxzCqyVAcLwzbHPX6hD84Att9T1NPPF8JDFLBX2HsTpq9HL/hYvdEl0s7x2wIGs5ZPsgVrYFDpRlm2cHkL0/U6TetCDDobHNtVL8exyKPvads0NwpZw6LtSss3qnHrHHK/9piMukbp8sLU3NzmEaH4i6OhxVNWZsXI1JffjhfQbtkO4QUh43sHrvqMJMexotoyZT/HniJj0k9ogB9c92mojv7I4/+KNvZtlaM/Qum2rq/9u2MDXiIFgzhfn7woLr7NWHV26oDsWXcqDVdUr33cIrx/EJiKUSm6kIIcVjRfR4h9Y8zf8f3BwrEY4ca+prmxoyezn X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 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 --- 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");