Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp690683rwi; Wed, 19 Oct 2022 01:25:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4thA8SkFXlkpaluYL/gvZhFhVxoEdcgrpiKk6ZNhrJap9ifMEQR9EYTxAu6d8Hpw8IvLxC X-Received: by 2002:a50:fe0a:0:b0:458:dce8:2b6b with SMTP id f10-20020a50fe0a000000b00458dce82b6bmr6259019edt.84.1666167911342; Wed, 19 Oct 2022 01:25:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666167911; cv=none; d=google.com; s=arc-20160816; b=siGqSCyuxlHa1ij701P4eDKhnpu5zpNR5DyHVuhrKGDmlsjoDmlWrHsNVlXmz/RHgq REETNuplIc0SH7R5qFatS06i0MQ9KjirizPgB4MRWYhdV28UtWLoxw+rELqroa/KZfTF x/R50Shfk2SJl1vzl5yPozR8spPR8yI76nA1Trua9epJ0iXRJfnpJAa9OApaBr2Ow+Bl 6tvn06nG6lj/4vLSCqf7cTYsO1YPzSkrZLwgLeJ7cXGROdp2Y1qWeFeWoF+b0e0Muvmq nyRiIV7f1C190RqNcE3++2WsRqzTWU9aA+RfYXoBLENaO47JTfPOgVqwz2M6UkAc/jQH GIhg== 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=71GabrVX18v6LNzI2lyzeA4XnjRM2HsuxKXucptHXpM=; b=uprOIPRUplitf+VaBfvtTC3y357P1mxvWk/SWgRYzBLGJkKka38w8uorbif9vzm8Fc 4xKqwLdUXzTFfJujXHU6EG7H17VPLNzlPjg5Gl5RqqeI7drOq2l9FighzahQdcWoZqNC RLSbIG5HnaY4SJ53cUKmK+VUGlXQcYFU2MXp2A6hNCiEqLKbALe1prABsDChtGuVLZiS Rd07Mpz+tHDN2mr+I9Wd+XNihHQluJfseVXLJmPbg2NjwbCYNtPRUDG6Fu5rZgOsvMcO zxI+X2lMMffXJaz/VNnLQAwBzZ1bK0C7chSOCm5t6lRVm332TwwtnmxPJaCBc5vXwQ03 mH9g== 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 dr8-20020a170907720800b0078b3edae43csi15458425ejc.37.2022.10.19.01.24.43; Wed, 19 Oct 2022 01:25:11 -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 S230009AbiJSHdE (ORCPT + 99 others); Wed, 19 Oct 2022 03:33:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229755AbiJSHdC (ORCPT ); Wed, 19 Oct 2022 03:33:02 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17A4961121 for ; Wed, 19 Oct 2022 00:33:00 -0700 (PDT) Received: from dggpemm500021.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MsjBC1rQ1zHv8G; Wed, 19 Oct 2022 15:32:51 +0800 (CST) Received: from dggpemm500016.china.huawei.com (7.185.36.25) by dggpemm500021.china.huawei.com (7.185.36.109) 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:32:33 +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; Wed, 19 Oct 2022 15:32:33 +0800 From: Chen Jiahao To: , , , , , Subject: [PATCH -next v2] drivers: soc: ti: mark knav_acc_firmwares as static Date: Wed, 19 Oct 2022 23:32:12 +0800 Message-ID: <20221019153212.72350-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: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500016.china.huawei.com (7.185.36.25) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_06_12, 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..16a6d530a0d4 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 * const knav_acc_firmwares[] = {"ks2_qmss_pdsp_acc48.bin"}; static bool device_ready; bool knav_qmss_device_ready(void) -- 2.31.1