[PATCH v2 1/2] staging: rtl8712: make unsigned length for rtl8717_get{_wpa_, _wpa2_, _}ie

2018-02-18 Thread Stefano Manni
: Stefano Manni --- drivers/staging/rtl8712/ieee80211.c| 8 drivers/staging/rtl8712/ieee80211.h| 6 +++--- drivers/staging/rtl8712/rtl871x_mlme.c | 3 ++- drivers/staging/rtl8712/rtl871x_xmit.c | 2 +- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/staging

[PATCH v2 2/2] staging: rtl8712: fix signedness of length to rtl8717_set_ie

2018-02-18 Thread Stefano Manni
/ieee80211.c:209:75:expected unsigned int [usertype] *frlen drivers/staging/rtl8712/ieee80211.c:209:75:got int * Signed-off-by: Stefano Manni --- drivers/staging/rtl8712/ieee80211.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/rtl8712/ieee80211.c b

Re: [PATCH 1/2] staging: rtl8712: make unsigned length for rtl8717_get{_wpa_,_wpa2_,_}ie

2018-02-18 Thread Stefano Manni
On Fri, 2018-02-16 at 15:48 +0100, Greg KH wrote: > Can you rebase both of these patches on the staging-testing branch of > the staging.git tree so that I can apply them?  Right now they have > too > many conflicts. Rebased on staging-testing d92a1fa. v2 to come.

[PATCH 2/2] staging: rtl8712: fix signedness of length to rtl8717_set_ie

2018-02-01 Thread Stefano Manni
/ieee80211.c:209:75:expected unsigned int [usertype] *frlen drivers/staging/rtl8712/ieee80211.c:209:75:got int * Signed-off-by: Stefano Manni --- drivers/staging/rtl8712/ieee80211.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/rtl8712/ieee80211.c b

[PATCH 1/2] staging: rtl8712: make unsigned length for rtl8717_get{_wpa_, _wpa2_, _}ie

2018-02-01 Thread Stefano Manni
: Stefano Manni --- drivers/staging/rtl8712/ieee80211.c| 8 drivers/staging/rtl8712/ieee80211.h| 6 +++--- drivers/staging/rtl8712/rtl871x_mlme.c | 3 ++- drivers/staging/rtl8712/rtl871x_xmit.c | 2 +- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/staging

Re: [PATCH 1/4] staging: lustre: fixed signedness of some socklnd params

2017-11-23 Thread Stefano Manni
On Thu, 2017-11-23 at 15:13 +0300, Dan Carpenter wrote: > I've looked through this series and I feel like none of these are > real > bugs.  It's just about type safety and being consistent.  Which are > good > things.  I'm not sure that I like the parts where we make the > variables > signed. > >

Re: [PATCH 0/4] staging: lustre: fixed some signedness warns from sparse

2017-11-23 Thread Stefano Manni
On Fri, 2017-11-24 at 09:20 +1100, Tobin C. Harding wrote: > On Thu, Nov 23, 2017 at 02:51:38PM +0300, Dan Carpenter wrote: > > On Thu, Nov 23, 2017 at 03:59:26PM +1100, Tobin C. Harding wrote: > > > On Wed, Nov 22, 2017 at 08:38:27PM +0100, Stefano Manni wrote: > > &

[PATCH 4/4] staging: lustre: fixed signedness of obdclass

2017-11-22 Thread Stefano Manni
sparse warning on obd_mount.c: warning: incorrect type in argument 5 (different signedness) expected unsigned int [usertype] *vallen got int * Signed-off-by: Stefano Manni --- drivers/staging/lustre/lustre/obdclass/obd_mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH 0/4] staging: lustre: fixed some signedness warns from sparse

2017-11-22 Thread Stefano Manni
Fixed some signedness warnings from sparse on lustre. Stefano Manni (4): staging: lustre: fixed signedness of some socklnd params staging: lustre: fixed signedness of llite staging: lustre: fixed signedness of lov staging: lustre: fixed signedness of obdclass drivers/staging/lustre/lnet

[PATCH 1/4] staging: lustre: fixed signedness of some socklnd params

2017-11-22 Thread Stefano Manni
] ksnd_zc_recv got unsigned int static [toplevel] * warning: incorrect type in assignment (different signedness) expected int *[addressable] [toplevel] [assigned] ksnd_zc_recv_min_nfrags got unsigned int static [toplevel] * Signed-off-by: Stefano Manni --- drivers/staging/lustre/lnet/klnds/socklnd/socklnd.h

[PATCH 2/4] staging: lustre: fixed signedness of llite

2017-11-22 Thread Stefano Manni
) expected int *off_count got unsigned int * warning: incorrect type in initializer (different signedness) expected int *process_count got unsigned int * Signed-off-by: Stefano Manni --- drivers/staging/lustre/lustre/llite/dir.c | 3 ++- drivers/staging/lustre/lustre/llite/llite_lib.c | 9

[PATCH 3/4] staging: lustre: fixed signedness of lov

2017-11-22 Thread Stefano Manni
-off-by: Stefano Manni --- drivers/staging/lustre/lustre/lov/lov_obd.c| 2 +- drivers/staging/lustre/lustre/lov/lov_offset.c | 11 +++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/staging/lustre/lustre/lov/lov_obd.c b/drivers/staging/lustre/lustre/lov

[PATCH] staging: pi433: fixed signedness of 4th argument to kfifo_from_user

2017-11-16 Thread Stefano Manni
sparse warning: incorrect type in initializer (different signedness) expected unsigned int *__copied, got int * Signed-off-by: Stefano Manni --- drivers/staging/pi433/pi433_if.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers

[PATCH] staging: fbtft: replace decimal with 4-digit octal permissions

2017-01-17 Thread Stefano Manni
Following error detected by checkpatch.pl: ERROR: Use 4 digit octal (0777) not decimal permissions Signed-off-by: Stefano Manni --- drivers/staging/fbtft/flexfb.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/fbtft/flexfb.c b/drivers