linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Variable-length arrays considered bad
@ 2018-03-08  8:40 Kalle Valo
  2018-03-09  7:28 ` Amitkumar Karwar
  0 siblings, 1 reply; 3+ messages in thread
From: Kalle Valo @ 2018-03-08  8:40 UTC (permalink / raw)
  To: linux-wireless

Hi,

in an lkml discussion[1] it was mentioned that variable-length arrays
should not be used. Few warnings were found[2] from wireless:

drivers/net/wireless/ath/ath9k/dfs.c:104:2: warning: ISO C90 forbids variable length array 'max_bin' [-Wvla]
drivers/net/wireless/rsi/rsi_91x_sdio.c:570:2: warning: ISO C90 forbids variable length array 'temp_buf' [-Wvla]

Patches welcome.

[1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com

[2] http://paste.ubuntu.com/p/srQxwPQS9s/

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-03-09 10:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-08  8:40 Variable-length arrays considered bad Kalle Valo
2018-03-09  7:28 ` Amitkumar Karwar
2018-03-09 10:38   ` Kalle Valo

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).