lkml.org 
[lkml]   [2020]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] mwifiex: wmm: Fix -Wunused-const-variable warnings
From
Date
YueHaibing <yuehaibing@huawei.com> wrote:

> In file included from drivers/net/wireless/marvell/mwifiex//cmdevt.c:26:0:
> drivers/net/wireless/marvell/mwifiex//wmm.h:41:17: warning: ‘tos_to_tid_inv’ defined but not used [-Wunused-const-variable=]
> static const u8 tos_to_tid_inv[] = {
> ^~~~~~~~~~~~~~
> drivers/net/wireless/marvell/mwifiex//wmm.h:34:18: warning: ‘mwifiex_1d_to_wmm_queue’ defined but not used [-Wunused-const-variable=]
> static const u16 mwifiex_1d_to_wmm_queue[8] = { 1, 0, 0, 1, 2, 2, 3, 3 };
> ^~~~~~~~~~~~~~~~~~~~~~~
>
> move the variables definition to .c file, and leave declarations
> in the header file to fix these warnings.
>
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>

Patch applied to wireless-drivers-next.git, thanks.

d56ee19a148e mwifiex: wmm: Fix -Wunused-const-variable warnings

--
https://patchwork.kernel.org/patch/11750655/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

\
 
 \ /
  Last update: 2020-09-07 10:33    [W:0.039 / U:0.864 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site