Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34100054rwd; Sun, 9 Jul 2023 05:15:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlEKLLFjGJARRSbaB3CWNv+Ko2smtDHsRcKJuQyQVlCG1KExqnEIMeFANNDJZjivLuy7gCt5 X-Received: by 2002:a05:6a00:10c4:b0:66f:7076:a5b4 with SMTP id d4-20020a056a0010c400b0066f7076a5b4mr13923845pfu.7.1688904951628; Sun, 09 Jul 2023 05:15:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688904951; cv=none; d=google.com; s=arc-20160816; b=sBEI5ofhi32LKWR3E5dwySfSI26ZdXrjDSmNdZk0FbrMmVYUhOwHIzzJG2sydkeKW2 +WK4PCGwYANmKDR2IHs7KeLSivM8Xh+qNQryDyOp/jOTk6+xvOsxtCL85UlX9nM6YwVW mLMo5Pv0nRt+uk0vt3UV85CtS04QGiX01lQwEWgBo7bdyGoAfaC60TN/3XhUBLANPvof TMtd7dcZE66M7lvL1XNWbVPqMS8DBvwRm5l89rgPS4Syn6CM1VGY6dqG8TuHnAcX1dpG rdt9L+7L9X7iuOfou3VyR1Cnu62X5LLGsPwycEVd5fNPATKGdpB/tZU6uiLbDiyz2iH4 G3sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=Mm52HWHwMer/XL25Ew8FiEQ5U/pGcdqdbDv8cpKg9A0=; fh=kq52HlIThobtxaqBS0UBIHfyn448t5lRyiAeY+SBB1Q=; b=CaAW2mnCk+dvPNLhr3UTeK3p4xwQAuI2JuUy+8uYJbiO3zMWh2QwI0jeXQZfo0uqP/ xR5oEwmyU+ycroHFCmVPDwUDVH7X6Zy4rZgZm5z7+5aOT+8On7WELQyISQbE/FxNSPHD 4XjJhX4fDSBnxBzLFDau48pSoTVk5OqNfgtMj4XUMWBE+yaPcJBLWtrqv5GecYi/TnI9 Px3aYbB+DNoOPi+W21uEh+g4be3nnvUS7qsJ5tDYqSev6st1LDHu8XuxSa4GPn7w+HoZ mHDChHPLp/76LNU4iRc9UAVsfMK9fEC0fruxhjUj7mNn2qSt9nWc+SFl/8K7jJxsKV21 HsFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=dvln0uEc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k32-20020a635620000000b0055bef93b8fbsi1359973pgb.75.2023.07.09.05.15.32; Sun, 09 Jul 2023 05:15:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=dvln0uEc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229958AbjGIMFc (ORCPT + 99 others); Sun, 9 Jul 2023 08:05:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbjGIMFb (ORCPT ); Sun, 9 Jul 2023 08:05:31 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA8C7F9 for ; Sun, 9 Jul 2023 05:05:27 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4QzQnH3DdfzBJBgH 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 mOL_cfesmdFN 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 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_BLOCKED,RDNS_NONE,SPF_HELO_FAIL,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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(-) 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++) { 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)