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

* Re: [PATCH] wimax/i2400m: Remove VLAIS
  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 21:01   ` Arnd Bergmann
  0 siblings, 2 replies; 8+ messages in thread
From: Matthias Kaehlcke @ 2017-10-24 19:46 UTC (permalink / raw)
  To: Inaky Perez-Gonzalez
  Cc: linux-wimax, netdev, linux-kernel, Behan Webster, Mark Charlebois,
	Arnd Bergmann, Guenter Roeck

El Mon, Oct 09, 2017 at 12:41:53PM -0700 Matthias Kaehlcke ha dit:

> 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;

ping

any comments on this?

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

* RE: [PATCH] wimax/i2400m: Remove VLAIS
  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 21:01   ` Arnd Bergmann
  1 sibling, 1 reply; 8+ messages in thread
From: Perez-Gonzalez, Inaky @ 2017-10-24 21:00 UTC (permalink / raw)
  To: Matthias Kaehlcke
  Cc: linux-wimax, netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	Behan Webster, Mark Charlebois, Arnd Bergmann, Guenter Roeck

> ping
> any comments on this?

None from me; I don't have access to this HW anymore, so I can't validate
if the change would work or not.

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

* Re: [PATCH] wimax/i2400m: Remove VLAIS
  2017-10-24 21:00   ` Perez-Gonzalez, Inaky
@ 2017-10-25 15:57     ` Dan Williams
  2017-10-25 17:12       ` Perez-Gonzalez, Inaky
  0 siblings, 1 reply; 8+ messages in thread
From: Dan Williams @ 2017-10-25 15:57 UTC (permalink / raw)
  To: Perez-Gonzalez, Inaky, Matthias Kaehlcke
  Cc: linux-wimax, netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	Behan Webster, Mark Charlebois, Arnd Bergmann, Guenter Roeck

On Tue, 2017-10-24 at 21:00 +0000, Perez-Gonzalez, Inaky wrote:
> > ping
> > any comments on this?
> 
> None from me; I don't have access to this HW anymore, so I can't
> validate
> if the change would work or not.

I still have a 5350 around somewhere, I can make sure firmware loads if
you like.

Dan

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

* RE: [PATCH] wimax/i2400m: Remove VLAIS
  2017-10-25 15:57     ` Dan Williams
@ 2017-10-25 17:12       ` Perez-Gonzalez, Inaky
  2017-10-25 17:39         ` Dan Williams
  0 siblings, 1 reply; 8+ messages in thread
From: Perez-Gonzalez, Inaky @ 2017-10-25 17:12 UTC (permalink / raw)
  To: Dan Williams, Matthias Kaehlcke
  Cc: linux-wimax, netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	Behan Webster, Mark Charlebois, Arnd Bergmann, Guenter Roeck

>On Tue, 2017-10-24 at 21:00 +0000, Perez-Gonzalez, Inaky wrote:
>> > ping any comments on this?
>>
>> None from me; I don't have access to this HW anymore, so I can't
>> validate if the change would work or not.

> I still have a 5350 around somewhere, I can make sure firmware loads if
> you like.

That'd be swell Dan, thx

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

* Re: [PATCH] wimax/i2400m: Remove VLAIS
  2017-10-25 17:12       ` Perez-Gonzalez, Inaky
@ 2017-10-25 17:39         ` Dan Williams
  2017-10-25 21:06           ` Perez-Gonzalez, Inaky
  0 siblings, 1 reply; 8+ messages in thread
From: Dan Williams @ 2017-10-25 17:39 UTC (permalink / raw)
  To: Perez-Gonzalez, Inaky, Matthias Kaehlcke
  Cc: linux-wimax, netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	Behan Webster, Mark Charlebois, Arnd Bergmann, Guenter Roeck

On Wed, 2017-10-25 at 17:12 +0000, Perez-Gonzalez, Inaky wrote:
> > On Tue, 2017-10-24 at 21:00 +0000, Perez-Gonzalez, Inaky wrote:
> > > > ping any comments on this?
> > > 
> > > None from me; I don't have access to this HW anymore, so I can't
> > > validate if the change would work or not.
> > I still have a 5350 around somewhere, I can make sure firmware
> > loads if
> > you like.
> 
> That'd be swell Dan, thx

Seems to load firmware, read the MAC, and reboot the card.  Couldn't
get userspace tools working in a 5m try but the kernel module debug
traces indicate the card TX/RX-es commands and we can pull out the card
state and rfkill status and things like that.

Inaky, is that enough to verify the patch is OK?

Dan

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

* Re: [PATCH] wimax/i2400m: Remove VLAIS
  2017-10-24 19:46 ` Matthias Kaehlcke
  2017-10-24 21:00   ` Perez-Gonzalez, Inaky
@ 2017-10-25 21:01   ` Arnd Bergmann
  1 sibling, 0 replies; 8+ messages in thread
From: Arnd Bergmann @ 2017-10-25 21:01 UTC (permalink / raw)
  To: Matthias Kaehlcke
  Cc: Inaky Perez-Gonzalez, linux-wimax, Networking,
	Linux Kernel Mailing List, Behan Webster, Mark Charlebois,
	Guenter Roeck

On Tue, Oct 24, 2017 at 9:46 PM, Matthias Kaehlcke <mka@chromium.org> wrote:
> El Mon, Oct 09, 2017 at 12:41:53PM -0700 Matthias Kaehlcke ha dit:

>> +             u8 cmd_payload[];
>>       } __packed *buf;
>>       struct i2400m_bootrom_header ack;
>
> ping
>
> any comments on this?

What for? The patch is clearly correct and Davem already merged it in
4.14, right?

       Arnd

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

* Re: [PATCH] wimax/i2400m: Remove VLAIS
  2017-10-25 17:39         ` Dan Williams
@ 2017-10-25 21:06           ` Perez-Gonzalez, Inaky
  0 siblings, 0 replies; 8+ messages in thread
From: Perez-Gonzalez, Inaky @ 2017-10-25 21:06 UTC (permalink / raw)
  To: Dan Williams
  Cc: Matthias Kaehlcke, linux-wimax, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, Behan Webster, Mark Charlebois,
	Arnd Bergmann, Guenter Roeck



> On Oct 25, 2017, at 10:39, Dan Williams <dcbw@redhat.com> wrote:
> 
> On Wed, 2017-10-25 at 17:12 +0000, Perez-Gonzalez, Inaky wrote:
>>> On Tue, 2017-10-24 at 21:00 +0000, Perez-Gonzalez, Inaky wrote:
>>>>> ping any comments on this?
>>>> 
>>>> None from me; I don't have access to this HW anymore, so I can't
>>>> validate if the change would work or not.
>>> I still have a 5350 around somewhere, I can make sure firmware
>>> loads if
>>> you like.
>> 
>> That'd be swell Dan, thx
> 
> Seems to load firmware, read the MAC, and reboot the card.  Couldn't
> get userspace tools working in a 5m try but the kernel module debug
> traces indicate the card TX/RX-es commands and we can pull out the card
> state and rfkill status and things like that.
> 
> Inaky, is that enough to verify the patch is OK?

It is, thanks Dan

Acked-by: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>

^ permalink raw reply	[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).