* [PATCH] staging wlan-ng: mark PDA buf as __le16
@ 2017-04-07 12:47 Maciek Borzecki
2017-04-08 11:01 ` Greg Kroah-Hartman
0 siblings, 1 reply; 4+ messages in thread
From: Maciek Borzecki @ 2017-04-07 12:47 UTC (permalink / raw)
To: Greg Kroah-Hartman, devel, linux-kernel
Cc: Sergio Paracuellos, Maciek Borzecki
PDA buffer contains little-endian data, clearly mark it as such.
Fixes sparse warnings:
drivers/staging/wlan-ng/hfa384x_usb.c:2359:34: warning: cast to restricted __le16
drivers/staging/wlan-ng/hfa384x_usb.c:2360:35: warning: cast to restricted __le16
drivers/staging/wlan-ng/hfa384x_usb.c:2382:44: warning: cast to restricted __le16
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
---
drivers/staging/wlan-ng/hfa384x_usb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/hfa384x_usb.c
index 6134eba5cad4693997faf8d2d77947ff7e8b0713..64848778834cae1d341c59ecce756d11b218b4c8 100644
--- a/drivers/staging/wlan-ng/hfa384x_usb.c
+++ b/drivers/staging/wlan-ng/hfa384x_usb.c
@@ -2316,7 +2316,7 @@ int hfa384x_drvr_ramdl_write(struct hfa384x *hw, u32 daddr, void *buf, u32 len)
int hfa384x_drvr_readpda(struct hfa384x *hw, void *buf, unsigned int len)
{
int result = 0;
- u16 *pda = buf;
+ __le16 *pda = buf;
int pdaok = 0;
int morepdrs = 1;
int currpdr = 0; /* word offset of the current pdr */
--
2.9.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] staging wlan-ng: mark PDA buf as __le16
2017-04-07 12:47 [PATCH] staging wlan-ng: mark PDA buf as __le16 Maciek Borzecki
@ 2017-04-08 11:01 ` Greg Kroah-Hartman
2017-04-08 13:18 ` Maciek Borzecki
0 siblings, 1 reply; 4+ messages in thread
From: Greg Kroah-Hartman @ 2017-04-08 11:01 UTC (permalink / raw)
To: Maciek Borzecki; +Cc: devel, linux-kernel, Sergio Paracuellos
On Fri, Apr 07, 2017 at 02:47:55PM +0200, Maciek Borzecki wrote:
> PDA buffer contains little-endian data, clearly mark it as such.
>
> Fixes sparse warnings:
> drivers/staging/wlan-ng/hfa384x_usb.c:2359:34: warning: cast to restricted __le16
> drivers/staging/wlan-ng/hfa384x_usb.c:2360:35: warning: cast to restricted __le16
> drivers/staging/wlan-ng/hfa384x_usb.c:2382:44: warning: cast to restricted __le16
>
> Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
> ---
> drivers/staging/wlan-ng/hfa384x_usb.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
This patch does not apply to my tree at all, what did you make it
against?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] staging wlan-ng: mark PDA buf as __le16
2017-04-08 11:01 ` Greg Kroah-Hartman
@ 2017-04-08 13:18 ` Maciek Borzecki
2017-04-08 13:22 ` Maciek Borzecki
0 siblings, 1 reply; 4+ messages in thread
From: Maciek Borzecki @ 2017-04-08 13:18 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: devel, linux-kernel, Sergio Paracuellos
On Sat, Apr 8, 2017 at 1:01 PM, Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
> On Fri, Apr 07, 2017 at 02:47:55PM +0200, Maciek Borzecki wrote:
>> PDA buffer contains little-endian data, clearly mark it as such.
>>
>> Fixes sparse warnings:
>> drivers/staging/wlan-ng/hfa384x_usb.c:2359:34: warning: cast to restricted __le16
>> drivers/staging/wlan-ng/hfa384x_usb.c:2360:35: warning: cast to restricted __le16
>> drivers/staging/wlan-ng/hfa384x_usb.c:2382:44: warning: cast to restricted __le16
>>
>> Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
>> ---
>> drivers/staging/wlan-ng/hfa384x_usb.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> This patch does not apply to my tree at all, what did you make it
> against?
>
It was made on top of:
commit c02ed2e75ef4c74e41e421acb4ef1494671585e8
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Sun Mar 26 14:15:16 2017 -0700
Linux 4.11-rc4
Let me rebase on top of staging-next and resend.
--
Maciek Borzecki
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] staging wlan-ng: mark PDA buf as __le16
2017-04-08 13:18 ` Maciek Borzecki
@ 2017-04-08 13:22 ` Maciek Borzecki
0 siblings, 0 replies; 4+ messages in thread
From: Maciek Borzecki @ 2017-04-08 13:22 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: devel, linux-kernel, Sergio Paracuellos
On Sat, Apr 8, 2017 at 3:18 PM, Maciek Borzecki
<maciek.borzecki@gmail.com> wrote:
> On Sat, Apr 8, 2017 at 1:01 PM, Greg Kroah-Hartman
> <gregkh@linuxfoundation.org> wrote:
>> On Fri, Apr 07, 2017 at 02:47:55PM +0200, Maciek Borzecki wrote:
>>> PDA buffer contains little-endian data, clearly mark it as such.
>>>
>>> Fixes sparse warnings:
>>> drivers/staging/wlan-ng/hfa384x_usb.c:2359:34: warning: cast to restricted __le16
>>> drivers/staging/wlan-ng/hfa384x_usb.c:2360:35: warning: cast to restricted __le16
>>> drivers/staging/wlan-ng/hfa384x_usb.c:2382:44: warning: cast to restricted __le16
>>>
>>> Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
>>> ---
>>> drivers/staging/wlan-ng/hfa384x_usb.c | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> This patch does not apply to my tree at all, what did you make it
>> against?
>>
>
> It was made on top of:
>
> commit c02ed2e75ef4c74e41e421acb4ef1494671585e8
> Author: Linus Torvalds <torvalds@linux-foundation.org>
> Date: Sun Mar 26 14:15:16 2017 -0700
>
> Linux 4.11-rc4
>
> Let me rebase on top of staging-next and resend.
Please ignore this patch. Turns out there's a similar patch already
applied in staging-next.
Cheers,
--
Maciek Borzecki
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-04-08 13:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-07 12:47 [PATCH] staging wlan-ng: mark PDA buf as __le16 Maciek Borzecki
2017-04-08 11:01 ` Greg Kroah-Hartman
2017-04-08 13:18 ` Maciek Borzecki
2017-04-08 13:22 ` Maciek Borzecki
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).