Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34163617rwd; Sun, 9 Jul 2023 06:26:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlHrSi4ox3HVZxTSG/guvLvjEgy8ifEUyeIqc/LZ6aOxWdjjJA2VC+iRKYLehHEVbssulMjo X-Received: by 2002:a17:90a:f181:b0:262:e33e:38c7 with SMTP id bv1-20020a17090af18100b00262e33e38c7mr7009756pjb.49.1688909173774; Sun, 09 Jul 2023 06:26:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688909173; cv=none; d=google.com; s=arc-20160816; b=oupflaNcyySwus0UJ8gi383YXfwJ/VunK//im8CBKHie81xKbqWE9DueiIEAw20Aei be48z213G7SXGpfpQpm6+swX6XwWtkgklIacyY8iSd75JVUBeIiRKHQ10a213tLOr9vb RZsfn0HNhzb4lQqgwR06iQG74tQi6E3WX3bEXo1TuYSdhOFatJC/aEoijyRG0VhN+BM6 U+HQv9jogE6gGImxI9iKVmpvY7l1Sy2KBfuacHduJb4uv1NPdbXzlC9w4sBNZ9HlahRu +Lf9R9eNDin/0Ny+RiEmKQWF85OVBFBtAWLWzDi3uTQMNgjG454FL+TTRDWg8PDNpu4J K5GQ== 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=75isIKESBaHBza+txMtEsAZ7WKM7p9IurTA86xQRans=; fh=A5Yu/+ps0CMGodMY7X2YjUx9WjMTPky8BdivxNkVvt8=; b=HO6aj+jaH7gpC/IbQirCmaUxxev8EQXKFwvQB878b5fsL/aTLGqOZtygWeHdzWpkZs L21e1I9tSFpbIRQOcV5ME0t1CRbh0yUpYZqFJMCEJnD/6urFLWU5aWRTbhXXEY2LkGA2 CJTJKkCDbtFqw/7AqxoR0Q4zDSXnQvNVsjM1+Ghy8lAn3DwVctLLuHLR8aEH8QRQH8SE 1Xua0ZsyP9OBveEGbj21wM+xPq7FOZ7FPhb3UmtAF5bRw6AISKSW1iOpGyMI7ckGCYBv qZ6G4dlP5EoMcW/j2LoeAi+wz4BVAb2O87d+SueNgvAZfk9iEnRBlph6OJUELHAaEdcs zTEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=LIbrsSze; 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 g9-20020a17090a290900b00263eb5054fdsi5600994pjd.32.2023.07.09.06.26.02; Sun, 09 Jul 2023 06:26:13 -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=LIbrsSze; 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 S229751AbjGINRb (ORCPT + 99 others); Sun, 9 Jul 2023 09:17:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbjGINRa (ORCPT ); Sun, 9 Jul 2023 09:17:30 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6135BCE for ; Sun, 9 Jul 2023 06:17:28 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4QzSNM6m4bzBJBgF 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 Rwf7JZGBLf5P 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 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/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(-) 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) { 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];