* [PATCH] crda: Fix error: `keys’ defined but not used
@ 2017-12-04 20:52 Jelle van der Waa
2018-01-05 19:13 ` Luis R. Rodriguez
0 siblings, 1 reply; 2+ messages in thread
From: Jelle van der Waa @ 2017-12-04 20:52 UTC (permalink / raw)
To: Luis R . Rodriguez; +Cc: linux-wireless, Jelle van der Waa
Fix error: ‘keys’ defined but not used [-Werror=unused-const-variable=]
by informing GCC keys is unused.
Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
---
utils/key2pub.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/utils/key2pub.py b/utils/key2pub.py
index 3e84cd2..9bb04cd 100755
--- a/utils/key2pub.py
+++ b/utils/key2pub.py
@@ -115,7 +115,7 @@ struct key_params {
.n = _n, .len_n = sizeof(_n), \
}
-static const struct key_params keys[] = {
+static const struct key_params __attribute__ ((unused)) keys[] = {
''')
for n in xrange(n + 1):
output.write(' KEYS(e_%d, n_%d),\n' % (n, n))
--
2.15.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] crda: Fix error: `keys’ defined but not used
2017-12-04 20:52 [PATCH] crda: Fix error: `keys’ defined but not used Jelle van der Waa
@ 2018-01-05 19:13 ` Luis R. Rodriguez
0 siblings, 0 replies; 2+ messages in thread
From: Luis R. Rodriguez @ 2018-01-05 19:13 UTC (permalink / raw)
To: Jelle van der Waa; +Cc: Luis R . Rodriguez, linux-wireless
On Mon, Dec 04, 2017 at 09:52:39PM +0100, Jelle van der Waa wrote:
> Fix error: ‘keys’ defined but not used [-Werror=unused-const-variable=]
> by informing GCC keys is unused.
>
> Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
Thanks, applied and pushed! Although this just fixes a compilation
warning, but since we do use -Werror and thus force any error to
fail compilation I've pushed out a new release with this fix
merged as v4.14.
If a new tarball is not kicked off soon [0] automatically I'll poke and see to
it. Note that as of kernel v4.15 (as of commit 007f6c5e6eb45 ("cfg80211:
support loading regulatory database as firmware file" we have the ability
now for the kernel to do this file lookup for us first, and only if
that fails will CRDA kick in.
[0] https://www.kernel.org/pub/software/network/crda/
Luis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-05 19:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-04 20:52 [PATCH] crda: Fix error: `keys’ defined but not used Jelle van der Waa
2018-01-05 19:13 ` Luis R. Rodriguez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).