Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp481802rwb; Mon, 26 Sep 2022 23:29:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM57qPRCcEPva7P0E5YwDDbxS3l5scJYdUbOoLxQtOMU55fKlV/9x/gyzISdrwY403OOq04A X-Received: by 2002:a17:907:b03:b0:770:872d:d7e9 with SMTP id h3-20020a1709070b0300b00770872dd7e9mr21230468ejl.272.1664260171853; Mon, 26 Sep 2022 23:29:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664260171; cv=none; d=google.com; s=arc-20160816; b=UZAKzh/6k5jT24H2mf8ahbj1tj8IGO8mzFTL1xl43dizT0gDI5oZxWNTDs75d8jrHy 7wb++lImUkb4FgfX8Bkq2FddSOutzZ0WMuK5U0DfLr/DAo5ZFUkskk4tQr2mfp7km5Hd U2obHAAXVMJL1GNry0l92Vc33NnwzHJED/o83EqmNhY4QuhWWK3yo4UBOjtrYgBNqQdf R0aFS3TcoaLgGljf6Phg3koRAtEivSuWpMIldiPgAUVmXOvctWnI7n4VASlKrOkl7Mh0 6fw3uBzoRDPfrm5vzvqwAXj4FTImMo2GcsIryo0CNYHvWlOmYicJIJWeCsk2TYrjGF/K M6WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from; bh=e/9AbadHoF7Tgx2EJ/b6ERHzfL8FITuEvXiXZt3i/Sg=; b=hIsdpLwClQOY8yVhzN/Zi1rUd95xvXXGhGVyrjiYaREH7mdMDFTqxij+za6cr1f+fe GcqJbCLeuqeB3dvsyshu789oSfoskqoWpQgMM1dlMGfEz1WT07cknTw7j5C973nQRi79 ingvXkVkUAhVAfCgxXA8JxkvoGcvMUMvidHeR3n3No2DlmRoB9NmmfPyxo1X4mKZ1sY8 WqkW5FrBfHyZ8vA4x9BUHsXwTvtX2e32/fV4aWhiVm8WIQ8TQ5oxq5lrWcg4OtypMYle mJmQUntGJjqd3bPeSzCeJmHtZjmCg6On6+/ywVgyAqTfhoGTgU69M+wGix9zwq5azysN naWw== 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 hb14-20020a170907160e00b007802170e0a0si612616ejc.32.2022.09.26.23.29.06; Mon, 26 Sep 2022 23:29:31 -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 S229472AbiI0GXm (ORCPT + 99 others); Tue, 27 Sep 2022 02:23:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbiI0GXi (ORCPT ); Tue, 27 Sep 2022 02:23:38 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82DA681B17 for ; Mon, 26 Sep 2022 23:23:37 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Mc8Zx0Cy5zHtj0; Tue, 27 Sep 2022 14:18:49 +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; Tue, 27 Sep 2022 14:23:35 +0800 Received: from huawei.com (10.67.174.205) 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; Tue, 27 Sep 2022 14:23:35 +0800 From: Chen Jiahao To: , , , , , Subject: [PATCH -next] drivers: soc: ti: mark knav_acc_firmwares as static Date: Tue, 27 Sep 2022 14:19:51 +0800 Message-ID: <20220927061951.103450-1-chenjiahao16@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.174.205] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) 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,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 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"}; static bool device_ready; bool knav_qmss_device_ready(void) -- 2.31.1