From patchwork Sun Jul 9 13:17:23 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: 13305821 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 A936DEB64DC for ; Sun, 9 Jul 2023 13:18:17 +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=QU82J3olPTF4U6ceZvyNLT/zNH8hXgel1CMfI5UnCho=; b=b0bS2DhV8fLhE1jKnRwiSmInDT SHhQVvzu0MCMtdkuKmvSJg8XhTbEk+gdjB1MP8xtSKISv/HonOBxFLq21y/e/JbguPi8JcISCSlHg Y0qyv8EJtCQvUMRkBixFC4gdDGAvz0+qAT5XkR15JmEpEyRgbK3WjcaewJcDnfIhdRMj/PgCQ8v2N ctU+xgAb1dWOq+XRtvj2EQh6HNuNUCZVTVp2opKKn2wkKa3OJM7A73R4DEy4JbBOHfQRwWuJBzRp0 cECZxrsg2ZTZ86GVXgPYWYnF+NvMdOLdaVo/Dq8TcDhl1ZF0G1kY9ij4I0SJ2Mlb6FVXpjl5v1jR+ l4xsQjkg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qIUIF-0099HH-1l; Sun, 09 Jul 2023 13:17:39 +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 1qIUI9-0099G9-15 for linux-arm-kernel@lists.infradead.org; Sun, 09 Jul 2023 13:17:36 +0000 Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4QzSNM6gZbzBJBg9 for ; Sun, 9 Jul 2023 21:17: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=1688908643; x=1691500644; bh=bKpoJT/x7DcDz5XcdrZhGxjcAb1 5Ro/oW6evMBC3vg4=; b=LIbrsSzeATHX4H5qmwTYhZH9t+D22G6c4RrAy7aqPd0 hY/xhMqJNvQ0709h8wm2m0Cv4xUY/KYOxLetsQzfZwMNis69hwouu+vROi8og6bV xHaqIJ1VEx2QKmoVhV90LCmSBZ/NcU9ifK+4SvS08bzcLfnAwWfy25FQLR3t3T2B OGOMrfKalGezFNiqfDZKRFg8Ry1JrG/lMz+QqcW+NOR3Nav31whXfeb+iAxrqPce 4LgcvhJGtDoBAisoW5r1289GVpuSM0GbuHUGl5F+XhWj2HsEHH9n745eFVJ7pFdx C032C/dDrS87a7aTpuu23A80Kk2DY/tVg5B3kjF2JEw== 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 W57Lz7Qy0B5r for ; Sun, 9 Jul 2023 21:17:23 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4QzSNM4Dd5zBHXkb; Sun, 9 Jul 2023 21:17:23 +0800 (CST) MIME-Version: 1.0 Date: Sun, 09 Jul 2023 21:17:23 +0800 From: xuanzhenggang001@208suo.com To: linux@armlinux.org.uk Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: MCPM: prefer 'unsigned int' to bare use of 'unsigned' In-Reply-To: <20230709131439.14552-1-denghuilong@cdjrlc.com> References: <20230709131439.14552-1-denghuilong@cdjrlc.com> User-Agent: Roundcube Webmail Message-ID: X-Sender: xuanzhenggang001@208suo.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230709_061733_772425_60685009 X-CRM114-Status: GOOD ( 11.24 ) 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/arm/common/mcpm_entry.c:143: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' arch/arm/common/mcpm_entry.c:143: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' arch/arm/common/mcpm_entry.c:152: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' arch/arm/common/mcpm_entry.c:152: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: Zhenggang Xuan --- arch/arm/common/mcpm_entry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) { unsigned long val = ptr ? __pa_symbol(ptr) : 0; mcpm_entry_vectors[cluster][cpu] = val; @@ -149,7 +149,7 @@ void mcpm_set_entry_vector(unsigned cpu, unsigned cluster, void *ptr) extern unsigned long mcpm_entry_early_pokes[MAX_NR_CLUSTERS][MAX_CPUS_PER_CLUSTER][2]; -void mcpm_set_early_poke(unsigned cpu, unsigned cluster, +void mcpm_set_early_poke(unsigned int cpu, unsigned int cluster, unsigned long poke_phys_addr, unsigned long poke_val) { unsigned long *poke = &mcpm_entry_early_pokes[cluster][cpu][0]; diff --git a/arch/arm/common/mcpm_entry.c b/arch/arm/common/mcpm_entry.c index 8a9aeeb504dd..97f8e7947807 100644 --- a/arch/arm/common/mcpm_entry.c +++ b/arch/arm/common/mcpm_entry.c @@ -140,7 +140,7 @@ static int __mcpm_cluster_state(unsigned int cluster) extern unsigned long mcpm_entry_vectors[MAX_NR_CLUSTERS][MAX_CPUS_PER_CLUSTER]; -void mcpm_set_entry_vector(unsigned cpu, unsigned cluster, void *ptr) +void mcpm_set_entry_vector(unsigned int cpu, unsigned int cluster, void *ptr)