Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp647139rwi; Wed, 19 Oct 2022 00:41:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM75U+F1kYANy/saIW6+tevUr0cEziMvMS2VPfE5/sbCbpMPA7BKxjn8z/AVjEFB8unKCJMs X-Received: by 2002:aa7:cd4f:0:b0:458:6077:c3ac with SMTP id v15-20020aa7cd4f000000b004586077c3acmr6222269edw.32.1666165286543; Wed, 19 Oct 2022 00:41:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666165286; cv=none; d=google.com; s=arc-20160816; b=dIs9JAo6CDazfGWNSyeDjOUEvNq2KobXpja5GkfGAI8tVimBYdjy78rUlpD8yDz6qi oaG8FsfSjF0UG5CZTYH20Os5BUFYF+Vsl6Sg2jp6x/hWGHCU9GNGpxtJG34P0P0Pi5Ju vb5jx/cw625VhRGh5miprLv1rPu/CqN1p1CaGd50KyCnY3qG7Nf0RjQSOD/xj4d4E8yJ e/RvtlhEqH3UStP6a6lO7JYWumQ+L5Jv4QFafjRVbs3aXhV4LQyXEDKbrL+Gv6HQxz62 8YgxN9M3aCG0h4poA2XUo/qAi8sj2XnOtWrp4qJSCpAsPfNG8JkLXeQndkz3GbQyLA03 qWmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=4uNPmx3jjLyt2RCOKBOd0Iyu/aULezOBbHBb+Nnq5fk=; b=a2yN/L/8x6R/dM5SJgP23FtKahY7xG2lp2fRofn41sqAdbGG9tQofWpSeASh9Q8mqi fBHcsUuRfus8io+AskSpNzdNvYvGoUNnCUxunW4ln6DlDkejdpLoFBFetlS/fQnSWxOU iK166ju0ZzzrUH5SAswBoX/gsG+uQd5vkwjObunQUeph/hIvW8F16WGaa7SFWPaYOTkr VeRCzm8n6y9bHv8PRv9AFTo4yEbHeJSxyqDLEROIC+eZuyLr6/qGpVo+/PqHEedG59Mj 4b/DRoFR+dX7orAsBqS+q76DCBcVfMNIZWBMm+E2KduE8XgkZV+mBkfGt5Chy/ySHhGF T/zw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc4-20020a1709071c0400b0078d810e16a4si14943325ejc.486.2022.10.19.00.40.59; Wed, 19 Oct 2022 00:41:26 -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; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229945AbiJSHZT (ORCPT + 99 others); Wed, 19 Oct 2022 03:25:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229833AbiJSHZR (ORCPT ); Wed, 19 Oct 2022 03:25:17 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 023963ECD2 for ; Wed, 19 Oct 2022 00:25:16 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Mshw52NV0zVhvr; Wed, 19 Oct 2022 15:20:37 +0800 (CST) Received: from dggpemm500016.china.huawei.com (7.185.36.25) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 19 Oct 2022 15:24:46 +0800 Received: from [10.67.108.26] (10.67.108.26) by dggpemm500016.china.huawei.com (7.185.36.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 19 Oct 2022 15:24:46 +0800 Message-ID: Date: Wed, 19 Oct 2022 15:24:46 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.1.0 Subject: Re: [PATCH -next] drivers: soc: ti: mark knav_acc_firmwares as static To: Nishanth Menon CC: , , , , References: <20220927061951.103450-1-chenjiahao16@huawei.com> <20221017221909.ds24hrbivwap5cek@countable> From: "chenjiahao (C)" In-Reply-To: <20221017221909.ds24hrbivwap5cek@countable> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.108.26] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500016.china.huawei.com (7.185.36.25) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 在 2022/10/18 6:19, Nishanth Menon 写道: > On 14:19-20220927, Chen Jiahao wrote: >> There is a sparse warning shown below: >> >> drivers/soc/ti/knav_qmss_queue.c:70:12: warning: symbol >> 'knav_acc_firmwares' was not declared. Should it be static? >> >> Since 'knav_acc_firmwares' is only called within knav_qmss_queue.c, >> mark it as static to fix the warning. >> >> Fixes: 96ee19becc3b ("soc: ti: add firmware file name as part of the driver") >> Signed-off-by: Chen Jiahao >> --- >> drivers/soc/ti/knav_qmss_queue.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/soc/ti/knav_qmss_queue.c b/drivers/soc/ti/knav_qmss_queue.c >> index 92af7d1b6f5b..c466b98a0293 100644 >> --- a/drivers/soc/ti/knav_qmss_queue.c >> +++ b/drivers/soc/ti/knav_qmss_queue.c >> @@ -67,7 +67,7 @@ static DEFINE_MUTEX(knav_dev_lock); >> * Newest followed by older ones. Search is done from start of the array >> * until a firmware file is found. >> */ >> -const char *knav_acc_firmwares[] = {"ks2_qmss_pdsp_acc48.bin"}; >> +static const char *knav_acc_firmwares[] = {"ks2_qmss_pdsp_acc48.bin"}; > next-20221017 checkpatch suggests: > > static const char * array should probably be static const char * const > > Could you check to ensure we are clear here? Sure, it is safe to mark 'knav_acc_firmwares' as static const char * const. Thanks for your reminder >> >> static bool device_ready; >> bool knav_qmss_device_ready(void) >> -- >> 2.31.1 >>