Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1633758 > unrolled thread

Fix kbuild warnings

Started byTuomo Rinne <tuomo.rinne@gmail.com>
First post2017-05-01 19:20 +0200
Last post2017-05-02 01:00 +0200
Articles 4 — 3 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Fix kbuild warnings  Tuomo Rinne <tuomo.rinne@gmail.com> - 2017-05-01 19:20 +0200
    [PATCH 1/1] staging: rtl8192u: Convert u4bAcParam back to little-endian after construction Tuomo Rinne <tuomo.rinne@gmail.com> - 2017-05-01 19:20 +0200
      Re: [PATCH 1/1] staging: rtl8192u: Convert u4bAcParam back to  little-endian after construction Greg KH <gregkh@linuxfoundation.org> - 2017-05-01 23:40 +0200
        Re: [PATCH 1/1] staging: rtl8192u: Convert u4bAcParam back to  little-endian after construction Tuomo <tuomo.rinne@gmail.com> - 2017-05-02 01:00 +0200

#1633758 — Fix kbuild warnings

FromTuomo Rinne <tuomo.rinne@gmail.com>
Date2017-05-01 19:20 +0200
SubjectFix kbuild warnings
Message-ID<tCn9n-3uH-11@gated-at.bofh.it>
Fix kbuild warnings by passing in variable using address rather than making a copy.

Tuomo Rinne (1):
  staging: rtl8192u: Convert u4bAcParam back to little-endian after    
    construction

 drivers/staging/rtl8192u/r8192U_dm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.1.4

[toc] | [next] | [standalone]


#1633759 — [PATCH 1/1] staging: rtl8192u: Convert u4bAcParam back to little-endian after construction

FromTuomo Rinne <tuomo.rinne@gmail.com>
Date2017-05-01 19:20 +0200
Subject[PATCH 1/1] staging: rtl8192u: Convert u4bAcParam back to little-endian after construction
Message-ID<tCn9o-3uH-15@gated-at.bofh.it>
In reply to#1633758
The commit 9304b5b0d4fe ("staging: rtl8192u: Fix sparse warnings in r8192U_dm.c")
adds casting of le16 from cpu endianness.
This patch converts the u4bAcParam parameter back to little-endian after
it has been constructed.

Signed-off-by: Tuomo Rinne <tuomo.rinne@gmail.com>
---
 drivers/staging/rtl8192u/r8192U_dm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8192u/r8192U_dm.c b/drivers/staging/rtl8192u/r8192U_dm.c
index 283dda4..fd8225c 100644
--- a/drivers/staging/rtl8192u/r8192U_dm.c
+++ b/drivers/staging/rtl8192u/r8192U_dm.c
@@ -2321,10 +2321,10 @@ static void dm_check_edca_turbo(
 			u1bAIFS  <<= AC_PARAM_AIFS_OFFSET;
 
 			u4bAcParam = op_limit | cw_max | cw_min | u1bAIFS;
+			cpu_to_le32s(u4bAcParam);
 
 			write_nic_dword(dev, EDCAPARA_BE, u4bAcParam);
 
-
 			/*
 			 * Check ACM bit.
 			 * If it is set, immediately set ACM control bit to downgrading AC for passing WMM testplan. Annie, 2005-12-13.
-- 
2.1.4

[toc] | [prev] | [next] | [standalone]


#1633905 — Re: [PATCH 1/1] staging: rtl8192u: Convert u4bAcParam back to little-endian after construction

FromGreg KH <gregkh@linuxfoundation.org>
Date2017-05-01 23:40 +0200
SubjectRe: [PATCH 1/1] staging: rtl8192u: Convert u4bAcParam back to little-endian after construction
Message-ID<tCrd1-5UI-57@gated-at.bofh.it>
In reply to#1633759
On Mon, May 01, 2017 at 06:11:58PM +0100, Tuomo Rinne wrote:
> 
> The commit 9304b5b0d4fe ("staging: rtl8192u: Fix sparse warnings in r8192U_dm.c")
> adds casting of le16 from cpu endianness.
> This patch converts the u4bAcParam parameter back to little-endian after
> it has been constructed.
> 
> Signed-off-by: Tuomo Rinne <tuomo.rinne@gmail.com>
> ---
>  drivers/staging/rtl8192u/r8192U_dm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/rtl8192u/r8192U_dm.c b/drivers/staging/rtl8192u/r8192U_dm.c
> index 283dda4..fd8225c 100644
> --- a/drivers/staging/rtl8192u/r8192U_dm.c
> +++ b/drivers/staging/rtl8192u/r8192U_dm.c
> @@ -2321,10 +2321,10 @@ static void dm_check_edca_turbo(
>  			u1bAIFS  <<= AC_PARAM_AIFS_OFFSET;
>  
>  			u4bAcParam = op_limit | cw_max | cw_min | u1bAIFS;
> +			cpu_to_le32s(u4bAcParam);
>  
>  			write_nic_dword(dev, EDCAPARA_BE, u4bAcParam);
>  
> -

Why is this line removed?

thanks,

greg k-h

[toc] | [prev] | [next] | [standalone]


#1634044 — Re: [PATCH 1/1] staging: rtl8192u: Convert u4bAcParam back to little-endian after construction

FromTuomo <tuomo.rinne@gmail.com>
Date2017-05-02 01:00 +0200
SubjectRe: [PATCH 1/1] staging: rtl8192u: Convert u4bAcParam back to little-endian after construction
Message-ID<tCssp-6zV-7@gated-at.bofh.it>
In reply to#1633905
On Mon, May 01, 2017 at 02:34:36PM -0700, Greg KH wrote:
> On Mon, May 01, 2017 at 06:11:58PM +0100, Tuomo Rinne wrote:
> > 
> > The commit 9304b5b0d4fe ("staging: rtl8192u: Fix sparse warnings in r8192U_dm.c")
> > adds casting of le16 from cpu endianness.
> > This patch converts the u4bAcParam parameter back to little-endian after
> > it has been constructed.
> > 
> > Signed-off-by: Tuomo Rinne <tuomo.rinne@gmail.com>
> > ---
> >  drivers/staging/rtl8192u/r8192U_dm.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/staging/rtl8192u/r8192U_dm.c b/drivers/staging/rtl8192u/r8192U_dm.c
> > index 283dda4..fd8225c 100644
> > --- a/drivers/staging/rtl8192u/r8192U_dm.c
> > +++ b/drivers/staging/rtl8192u/r8192U_dm.c
> > @@ -2321,10 +2321,10 @@ static void dm_check_edca_turbo(
> >  			u1bAIFS  <<= AC_PARAM_AIFS_OFFSET;
> >  
> >  			u4bAcParam = op_limit | cw_max | cw_min | u1bAIFS;
> > +			cpu_to_le32s(u4bAcParam);
> >  
> >  			write_nic_dword(dev, EDCAPARA_BE, u4bAcParam);
> >  
> > -
> 
> Why is this line removed?
> 
> thanks,
> 
> greg k-h

Hi,

I cleaned up the commit and resubmitted the patchset.

Thanks,
Tuomo

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web