From patchwork Wed Nov 20 11:01:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiale Yang <295107659@qq.com> X-Patchwork-Id: 13880673 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 E9504D6E2A0 for ; Wed, 20 Nov 2024 03:01:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 44DF96B007B; Tue, 19 Nov 2024 22:01:53 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3D7C46B0083; Tue, 19 Nov 2024 22:01:53 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 29EAF6B0085; Tue, 19 Nov 2024 22:01:53 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 0E34A6B007B for ; Tue, 19 Nov 2024 22:01:53 -0500 (EST) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 9BA3DA0977 for ; Wed, 20 Nov 2024 03:01:52 +0000 (UTC) X-FDA: 82804971732.25.E801F86 Received: from out203-205-221-239.mail.qq.com (out203-205-221-239.mail.qq.com [203.205.221.239]) by imf14.hostedemail.com (Postfix) with ESMTP id 8C1E310000D for ; Wed, 20 Nov 2024 03:00:53 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=qq.com header.s=s201512 header.b=osxqEvJy; dmarc=pass (policy=quarantine) header.from=qq.com; spf=pass (imf14.hostedemail.com: domain of 295107659@qq.com designates 203.205.221.239 as permitted sender) smtp.mailfrom=295107659@qq.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1732071526; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=N9sf+ePvMFKYrZY7XeQBpjh72pBc9Va3eTg4PtaoaKg=; b=wXvTuTmA1f+dAWLWXLg9N6yAMhED5B7OsQlCIhLmQTBT24UjiiNff3OEY7ZWHSmWSqBGbS g2dt3Hiz78LHox1TSLWD3ZbjSqXsaXkpgs3QHNzzsmfJLtiRQ5mKGSDRiEKV5LCiJYwkl9 q6QuE06iTH+OiYSbtuYRXiGTyoaa3a8= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=qq.com header.s=s201512 header.b=osxqEvJy; dmarc=pass (policy=quarantine) header.from=qq.com; spf=pass (imf14.hostedemail.com: domain of 295107659@qq.com designates 203.205.221.239 as permitted sender) smtp.mailfrom=295107659@qq.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1732071526; a=rsa-sha256; cv=none; b=NYR6wPUgJ3W7jr2oQbV/lXOqrwItJ7j6YBUIlquySEm8iPAcrrXnBwGRbTPj/w/mLWAOsr LkccrAnidT7AJPUInIawFD3xGGQGB73C0/vcVBh9Y2IkXkseCkR+oOkW942L8uFuLaH3Jc iSgRU3GjfGZoAZRk8V+ajETJ/nkt8ro= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1732071704; bh=N9sf+ePvMFKYrZY7XeQBpjh72pBc9Va3eTg4PtaoaKg=; h=From:To:Cc:Subject:Date; b=osxqEvJyZgvU/vIi2RaspBKlVWoKR417Du6id7/HSm10SRa5sU3i0aDyqDUOzYZvl zBYmUZHPWYKm7+UKY9aQ24F/lhMsrPYTQkm/XCv40TuUnhfwHPT8FBNOrDLomhDMwU s9c57/pE9u/HsisVqq+3Uw1BuQ6vlCAf1YjAPry8= Received: from archlinux-sandisk.localdomain ([218.95.110.191]) by newxmesmtplogicsvrsza15-1.qq.com (NewEsmtp) with SMTP id 64B6C2C; Wed, 20 Nov 2024 11:01:36 +0800 X-QQ-mid: xmsmtpt1732071696t7u88rilu Message-ID: X-QQ-XMAILINFO: MJEEBIyZqkdZA6jD+mZtz2rZfHMRPLmkQefkxd5o21xC6Xbec/omIKpPepRxa4 +A2CI0hSHsjoeYw6ZqIvtCV8OQGfmrna4cV7ffJ2JQJOubIRv7TpywuJ2Grjqm8Ofzh9n6loud5J 2YB9vMhtw6sG5v/8gKSxpxBRwcxTuYysF5hk3udJDJMENN1lm5GApbQvKU5nLtN+DdZcjuvq3FSl +c0JLcg8QhiZ1sSbe/e4RJDeCsQXM96XvyIlOkeRg1IB3ZPrG+V4slcLg2TEmdNFwkS6fdwID0zf kl6MRyjP3Scp1svYrfeb60XQSgrP5XO3H5vAgL2rkFyR6XfzkE0Ru/K2PMu9KNQv0u/xlsK29+Ml CDC0ivan3mBhtTYMEaj4jAY68uN+NnNCckg95ZjN5gisJSEgXX/1hWs0rb2cGJwx5cyYvYF6PgZ7 /DAcBlNNhu+z8e0UxljzGyIvre+ZBih4UMtpeeS3JZxyL0WwZLWqQxfpD1K2naOuu4avmyJSi56b SkM9QWjVXmXvPwClNwQX4pB+IC8RmQ431Z9eZLKtAWRE85WRWP9kVVGF2kmp5/UfzkA5EWVQT82G e2ZppMWO0zbObmgveVSHonSZluwUvSfhwhknpWAhuunQFsyGHmPZCcR+5Ve04gnAN0kBTpkh+Gbi KXY/SBaGrly4z9njaaNBAfH82GR1BW+Y7zeoxmZnKQoWaeYOy7iNUpYQPcDyCc7pj1dcDc4YYIu7 c5g6lKe6K2kLcNoGiNo+6cQwbNGb6NuhKAmtK4QV+j1hd+4LNOXE7NrE8uG/TKEeNVS+IygbYjYH ztYSHriJA4rn7f3/nkkxplDuC7RVyXdYwNIrpqSVwETgv0fO3948Eg0G37SFLNtVkDvDPo4qdoZJ EqLkP3ElOuE4t0bDGYd3EwtWGC8wU0PzZ/4SPmLn8R8RLFALNG+34= X-QQ-XMRINFO: Mp0Kj//9VHAxr69bL5MkOOs= From: Jiale Yang <295107659@qq.com> To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Jiale Yang <295107659@qq.com> Subject: [PATCH] mm: Change type of cma_area_count to unsigned int. Date: Wed, 20 Nov 2024 11:01:35 +0000 X-OQ-MSGID: <20241120110135.1435-1-295107659@qq.com> X-Mailer: git-send-email 2.47.0 MIME-Version: 1.0 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 8C1E310000D X-Stat-Signature: 13as4qb56dwx4gh5nke3qsytkbf3dxb8 X-Rspam-User: X-HE-Tag: 1732071653-36409 X-HE-Meta: U2FsdGVkX18QLY1l0g93TspVVYbjTFY+5mS6Hv8t6TmVBrftqygT3ISPVs9Q/PPejdOuAtOYgqTj6nCWe8RaIsDRn6ACwSLwot6wDC2dDhboQoQGsEtSnnRzQhYVUHhtfi7Pa3eusKF1yt86LbffTAwfcbLMJ4PcvtJg5eCZPsqb61SxX4ljSGqb35adni855zfve/u6OptUWAzLV9lrhvO02Qkk4jkIKAslT81Pf9uzWTMSyfzHgrkUQn8VZ4yoZKSXHtMlhczdL+Y3jY15aA/jmugNWrNBZZPoH6U1+b4d0qoMe0xRLZTrQORzq5xuHz1u+Vb5hRykgdQr/bsvF67OuzHSpRCB8wf6pCwBoIH546TUVbDA56iVxQTgDkhKra1W8eoH9KxUovYlG1f/Mwi7Ycg+UAjO4F9ISnlEjdYBkf2aQg7YxYgR9eUY57HRrDrvXqQBm6zcIchiQXsxhXk9qglESDP7douer42vgqnTM58ergPCgsHs2wKXkE8Y0BDtuyh0F743n/FKz43AcEd/xBC1KurWlAULx1bq1ZTypA30c493ZveKANngnO3CFpGxywabv15IvLT8V5KFLFmZqmvdOCbAj7rKwFqoRKzwxxvBfZFOWO7rzBkdjegyaw3HZHizAQdvnfNPvnjjQYJin+evvG4vQuJpzGSCr7DKtLt///vx6/hKkuu8Y3+OxRwFMb2lO3mHW6MKesxrQcxdZrAxvcez9HTC/JLHygqriFPWIB2D99BjAf83CH35aFyYZiwXhF7XipkVuP+eHJ8JHS2FmmLtGM4fjJ2bS834mGdXykDoGGm5KhAB55LXBOTvaShj6JJklXCOfqDAV/cSkziPFNZ/MIQjDc/v2KcsMFO1XYRvlmOE8uxfjp8XFXpNT2NTOwsvTJHp4IQSYPLdNCsX9Nrqhgj0s0WO9tf5HS1J7sAiuSRmUkJt/31OyN+/b4PvsYv1Y2w0rlZ gJzrqZ2Q /BvEqRFI33vzg2FExxEYtN2UZfAe1LXJe+qgt20k//bv6jdZiPNHDzfjFWw4fn6k5MDCG5TG4GoIGoCFDuknDHW47SbcUDYq1dU5CP404U/QgkOv0KRaluOsgfdgSI2Re1scavtR3ycZbiKpGtt54UGM9hya01iJVGu7FlmPUoiHDDmrGr4QGpPXyf6TTa9RkJX9ZuIbgTgOghmUTpNd04rmphDjgBVepoz/RudedO56tpZLr5Hcni4RnQnjA12/1Fv4Th/aKocdObERZzsPwe7BQvVSDx8TQRWIUzyWI7T+uRPHbvNgW4CLWfQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.386925, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Prefer 'unsigned int' over plain 'unsigned'. Also make it consistent with mm/cma.c Signed-off-by: Jiale Yang <295107659@qq.com> --- mm/cma.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/cma.h b/mm/cma.h index ad61cc6dd..8485ef893 100644 --- a/mm/cma.h +++ b/mm/cma.h @@ -36,7 +36,7 @@ struct cma { }; extern struct cma cma_areas[MAX_CMA_AREAS]; -extern unsigned cma_area_count; +extern unsigned int cma_area_count; static inline unsigned long cma_bitmap_maxno(struct cma *cma) {