From patchwork Sun Jul 9 12:05:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: xuanzhenggang001@208suo.com X-Patchwork-Id: 13305816 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BB030EB64DC for ; Sun, 9 Jul 2023 12:06:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:References:In-Reply-To:Subject:Cc:To:From :Date:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=RRpb+IJ8eZ9mOLsJFclpJZPSYZayhYbuffj2ej3buBI=; b=Trw7kGbnVeiUMHxmHXeVQrr4qK fhHhBpS9/tH7DC0d39A/LfhfdR3vMQI7Ws/10GyCB3YPPPKSSh1Nj0/TI/KMLbhmw+6Ux7/LwlwOU zz+994Yfven7e41ctDAgRirGJxke85C45ihJYaXxCC2Qq3+FU+pxRVk51IfFfgMzmRJ5PJ08UAOxx 6UFmv04HRCTPAH1/ob+7cXrGrGxdzdh/utoDpZfYgJSk0181hUesKvffUy2snRdsrO5T1pUHUcGY/ J/ygpVdjN5cTVS2UNoXge/1EOijRyQs0qNChnTQD2Q63dpSWPKUNYm1BVfKWe3YoPGCQFeftyo8vd hGS+T10g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qITAW-0094bJ-12; Sun, 09 Jul 2023 12:05:36 +0000 Received: from [183.242.55.162] (helo=mail.208.org) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qITAS-0094ai-2w for linux-arm-kernel@lists.infradead.org; Sun, 09 Jul 2023 12:05:34 +0000 Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4QzQnH2y6TzBJBgF for ; Sun, 9 Jul 2023 20:05:23 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1688904321; x=1691496322; bh=IM2g/7x/N3YXNCzwR3vmRZ6heJr nmiAxObbvD/+LyA4=; b=dvln0uEcEs/2bF8Mmn+mC4ejQUMsrQ7FziKRITIdMb3 5crpMifjrphhuqnfniexP0KOMOsK1ySKsZIs7lPdTj8ZoxdQ2VMQRFKVvZ+Tx6IC qrlGHiXeV+LMP5auhfvNvRLPChWjme+Ohc/+hWps+qV4kegvA2ONb8TgOgFJILiQ Y8yq3ydCd/JmBXRdgSmKcAWIVcLM075DNAidaCZ8sq3ctITbYwY41Hakda/l55Zp LjQE04VfSUrQyCJGSsYcGb+pTRlqe1agb7NWtVMMThp1xxvDrNBfA2hqOJMqRqm7 fOiTAI71Ts99CR5Vzn6nDC1QYFpZxhi5JlSOG4zs8yQ== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Wck9WkUhyuGR for ; Sun, 9 Jul 2023 20:05:21 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4QzQnF34JFzBHBQ3; Sun, 9 Jul 2023 20:05:21 +0800 (CST) MIME-Version: 1.0 Date: Sun, 09 Jul 2023 20:05:21 +0800 From: xuanzhenggang001@208suo.com To: catalin.marinas@arm.com, will@kernel.org Cc: mark.rutland@arm.com, ryan.roberts@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: mm: prefer 'unsigned int' to bare use of 'unsigned' In-Reply-To: <20230709115215.52448-1-denghuilong@cdjrlc.com> References: <20230709115215.52448-1-denghuilong@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: <7b527a83b74ebb9eca3026e4b85eb9d8@208suo.com> X-Sender: xuanzhenggang001@208suo.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230709_050533_268475_024ABBFF X-CRM114-Status: GOOD ( 12.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fix the following warnings reported by checkpatch: arch/arm64/mm/ptdump.c:207: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' arch/arm64/mm/ptdump.c:334: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: Zhenggang Xuan --- arch/arm64/mm/ptdump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) const char *s; @@ -331,7 +331,7 @@ void ptdump_walk(struct seq_file *s, struct ptdump_info *info) static void __init ptdump_initialize(void) { - unsigned i, j; + unsigned int i, j; for (i = 0; i < ARRAY_SIZE(pg_level); i++) if (pg_level[i].bits) diff --git a/arch/arm64/mm/ptdump.c b/arch/arm64/mm/ptdump.c index e305b6593c4e..0a755fddbcf2 100644 --- a/arch/arm64/mm/ptdump.c +++ b/arch/arm64/mm/ptdump.c @@ -204,7 +204,7 @@ static struct pg_level pg_level[] = { static void dump_prot(struct pg_state *st, const struct prot_bits *bits, size_t num) { - unsigned i; + unsigned int i; for (i = 0; i < num; i++, bits++) {