diff options
author | Chen Jiahao <chenjiahao16@huawei.com> | 2022-10-19 17:32:12 +0200 |
---|---|---|
committer | Nishanth Menon <nm@ti.com> | 2022-10-28 15:19:54 +0200 |
commit | adf85adc2a7199b41e7a4da083bd17274a3d6969 (patch) | |
tree | d3b1c0586700d5fb77f1329ed7924cfeeab28fda /drivers/soc | |
parent | Linux 6.1-rc1 (diff) | |
download | linux-adf85adc2a7199b41e7a4da083bd17274a3d6969.tar.xz linux-adf85adc2a7199b41e7a4da083bd17274a3d6969.zip |
drivers: soc: ti: knav_qmss_queue: Mark knav_acc_firmwares as static
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 <chenjiahao16@huawei.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Link: https://lore.kernel.org/r/20221019153212.72350-1-chenjiahao16@huawei.com
Diffstat (limited to 'drivers/soc')
-rw-r--r-- | drivers/soc/ti/knav_qmss_queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |