[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20210210080225.1209948-1-weiyongjun1@huawei.com>
Date: Wed, 10 Feb 2021 08:02:25 +0000
From: Wei Yongjun <weiyongjun1@...wei.com>
To: Hulk Robot <hulkci@...wei.com>,
Santosh Shilimkar <ssantosh@...nel.org>
CC: Wei Yongjun <weiyongjun1@...wei.com>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>
Subject: [PATCH -next] soc: ti: knav_qmss_queue: Make symbol 'knav_acc_firmwares' static
The sparse tool complains as follows:
drivers/soc/ti/knav_qmss_queue.c:70:12: warning:
symbol 'knav_acc_firmwares' was not declared. Should it be static?
This symbol is not used outside of knav_qmss_queue.c, so this
commit marks it 'static const char * const'.
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@...wei.com>
---
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 2ac3856b8d42..7985c4197cf7 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)
Powered by blists - more mailing lists