netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] wimax/i2400m: Remove VLAIS
@ 2017-10-09 19:41 Matthias Kaehlcke
  2017-10-24 19:46 ` Matthias Kaehlcke
  0 siblings, 1 reply; 8+ messages in thread
From: Matthias Kaehlcke @ 2017-10-09 19:41 UTC (permalink / raw)
  To: Inaky Perez-Gonzalez
  Cc: linux-wimax, netdev, linux-kernel, Behan Webster, Mark Charlebois,
	Arnd Bergmann, Guenter Roeck, Matthias Kaehlcke

From: Behan Webster <behanw@converseincode.com>

Convert Variable Length Array in Struct (VLAIS) to valid C by converting
local struct definition to use a flexible array. The structure is only
used to define a cast of a buffer so the size of the struct is not used
to allocate storage.

Signed-off-by: Behan Webster <behanw@converseincode.com>
Signed-off-by: Mark Charebois <charlebm@gmail.com>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
---
 drivers/net/wimax/i2400m/fw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wimax/i2400m/fw.c b/drivers/net/wimax/i2400m/fw.c
index c9c711dcd0e6..a89b5685e68b 100644
--- a/drivers/net/wimax/i2400m/fw.c
+++ b/drivers/net/wimax/i2400m/fw.c
@@ -652,7 +652,7 @@ static int i2400m_download_chunk(struct i2400m *i2400m, const void *chunk,
 	struct device *dev = i2400m_dev(i2400m);
 	struct {
 		struct i2400m_bootrom_header cmd;
-		u8 cmd_payload[chunk_len];
+		u8 cmd_payload[];
 	} __packed *buf;
 	struct i2400m_bootrom_header ack;
 
-- 
2.14.2.920.gcf0c67979c-goog

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

end of thread, other threads:[~2017-10-25 21:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-09 19:41 [PATCH] wimax/i2400m: Remove VLAIS Matthias Kaehlcke
2017-10-24 19:46 ` Matthias Kaehlcke
2017-10-24 21:00   ` Perez-Gonzalez, Inaky
2017-10-25 15:57     ` Dan Williams
2017-10-25 17:12       ` Perez-Gonzalez, Inaky
2017-10-25 17:39         ` Dan Williams
2017-10-25 21:06           ` Perez-Gonzalez, Inaky
2017-10-25 21:01   ` Arnd Bergmann

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