[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

[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] rtc: mcp795: remove VLA usage

2018-03-12 Thread Stefano Manni
a maximum data length of 32 bytes before wrap up. This was prompted by https://lkml.org/lkml/2018/3/7/621 Signed-off-by: Stefano Manni --- drivers/rtc/rtc-mcp795.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-mcp795.c b/drivers/rtc/rtc-mcp795.c

Re: [PATCH] rtc: mcp795: remove VLA usage

2018-03-13 Thread Stefano Manni
Hi, 2018-03-13 0:31 GMT+01:00 Alexandre Belloni : > Hi, > > On 13/03/2018 at 00:13:38 +0100, Stefano Manni wrote: >> In preparation to enabling -Wvla, remove VLAs and replace them with >> fixed-length arrays instead. >> >> rtc-mcp795.c uses a variable-length ar

[PATCH 1/2] Input: atmel_mxt_ts - add wakeup support

2019-05-17 Thread Stefano Manni
Add wakeup support to the maxtouch driver. The device can wake up the system from suspend, mark the IRQ as wakeup capable, so that device irq is not disabled during system suspend. Signed-off-by: Stefano Manni --- drivers/input/touchscreen/atmel_mxt_ts.c | 13 + 1 file changed, 13

[PATCH 2/2] dt-bindings: input: Add wakeup-source for atmel,maxtouch

2019-05-17 Thread Stefano Manni
Add wakeup support to the maxtouch driver. Signed-off-by: Stefano Manni --- Documentation/devicetree/bindings/input/atmel,maxtouch.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt b/Documentation/devicetree/bindings/input

Re: [PATCH 1/2] Input: atmel_mxt_ts - add wakeup support

2019-05-18 Thread stefano . manni
Hi Dmitry, On Fri, 2019-05-17 at 14:30 -0700, Dmitry Torokhov wrote: > Hi Sefano, > > On Fri, May 17, 2019 at 11:17:40PM +0200, Stefano Manni wrote: > > Add wakeup support to the maxtouch driver. > > The device can wake up the system from suspend, > > mark the IRQ

[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

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

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

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: > > &

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