[PATCH] staging: wlan-ng: Fix sparse warning: cast to restricted __le16.

2017-08-09 Thread AbdAllah-MEZITI
-off-by: AbdAllah MEZITI --- drivers/staging/wlan-ng/prism2sta.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/wlan-ng/prism2sta.c b/drivers/staging/wlan-ng/prism2sta.c index 8c34712..c9df450 100644 --- a/drivers/staging/wlan-ng/prism2sta.c +++ b

[PATCH v2] staging: sm750fb: always take the lock

2017-06-26 Thread AbdAllah-MEZITI
vers/staging/sm750fb/sm750.c:235:13: warning: context imbalance in 'lynxfb_ops_imageblit' - different lock contexts for basic block Signed-off-by: AbdAllah MEZITI v2: - add and fix the changelog text. --- drivers/staging/sm750fb/sm750.c | 18 ++ 1 file changed,

[PATCH] staging: sm750fb: always take the lock

2017-06-25 Thread AbdAllah-MEZITI
fb_ops_copyarea' - different lock contexts for basic block drivers/staging/sm750fb/sm750.c:235:13: warning: context imbalance in 'lynxfb_ops_imageblit' - different lock contexts for basic block Signed-off-by: AbdAllah MEZITI --- drivers/staging/sm750fb/sm750.c | 18 ++

[PATCH] staging: sm750fb: always take the lock

2017-06-25 Thread AbdAllah-MEZITI
Signed-off-by: AbdAllah MEZITI --- drivers/staging/sm750fb/sm750.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index 386d4ad..4a22190 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b

[PATCH] staging: sm750fb: fix sparce warning.

2017-06-25 Thread AbdAllah-MEZITI
balance in 'lynxfb_ops_copyarea' - different lock contexts for basic block drivers/staging/sm750fb//sm750.c:235:13: warning: context imbalance in 'lynxfb_ops_imageblit' - different lock contexts for basic block Signed-off-by: AbdAllah-MEZITI --- driver

[PATCH] staging: wlan-ng: Fix sparse warning: incorrect type in assignment This patch fixes the following sparse warning

2017-06-22 Thread AbdAllah-MEZITI
[usertype] Signed-off-by: AbdAllah-MEZITI --- drivers/staging/wlan-ng/hfa384x.h| 6 +++--- drivers/staging/wlan-ng/prism2mgmt.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wlan-ng/hfa384x.h index 60110b4..1dc6ed8

[PATCH] staging: fbtft: fbtft-io.c: Fix sparse warning

2017-04-28 Thread AbdAllah-MEZITI
] [long] [long long] [usertype] drivers/staging/fbtft/fbtft-io.c:74:29:got restricted __be64 [usertype] Signed-off-by: AbdAllah-MEZITI --- drivers/staging/fbtft/fbtft-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fbtft/fbtft-io.c b/drivers/staging

[PATCH v2] staging: bcm2835-audio: fix trailing statements

2017-02-10 Thread AbdAllah-MEZITI
Trailing statements should be on next line. Signed-off-by: AbdAllah-MEZITI v2:braces {} should be used on all arms of this statement --- drivers/staging/bcm2835-audio/bcm2835-vchiq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/bcm2835-audio/bcm2835

[PATCH v2] staging: bcm2835-audio: fix trailing statements

2017-02-10 Thread AbdAllah-MEZITI
Trailing statements should be on next line. Signed-off-by: AbdAllah-MEZITI v2:braces {} should be used on all arms of this statement --- drivers/staging/bcm2835-audio/bcm2835-vchiq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/bcm2835-audio/bcm2835

[PATCH] staging: bcm2835-audio: fix trailing statements

2017-02-10 Thread AbdAllah-MEZITI
Trailing statements should be on next line. Signed-off-by: AbdAllah-MEZITI --- drivers/staging/bcm2835-audio/bcm2835-vchiq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/bcm2835-audio/bcm2835-vchiq.c b/drivers/staging/bcm2835-audio/bcm2835-vchiq.c index

[PATCH v3] staging: bcm2835-audio: Remove the initialization of static pointers.

2017-02-07 Thread AbdAllah-MEZITI
In C a static pointer will be initialized to NULL. The §6.7.8 of the ISO/IEC 9899:1999 (E) document says that: If an object that has static storage duration is not initialized explicitly, then: __ if it has pointer type, it is initialized to a null pointer. Signed-off-by: AbdAllah-MEZITI v2

[PATCH v2] somedriver: remove the initialization of static pointers.

2017-02-07 Thread AbdAllah-MEZITI
In C a static pointer will be initialized to NULL. The §6.7.8 of the ISO/IEC 9899:1999 (E) document says that: If an object that has static storage duration is not initialized explicitly, then: __ if it has pointer type, it is initialized to a null pointer. Signed-off-by: AbdAllah-MEZITI v2

Re: [PATCH] somedriver: remove the initialization of static pointers.

2017-02-04 Thread AbdAllah MEZITI
On Sun, 5 Feb 2017 01:29:43 +0100 Greg Kroah-Hartman wrote: > On Sat, Feb 04, 2017 at 08:39:21PM +0100, AbdAllah-MEZITI wrote: > > In C a static pointer will be initialized to NULL (e.g: draft C99 > > standard $6.7.8): "If an object that has static storage duration is

[PATCH] somedriver: remove the initialization of static pointers.

2017-02-04 Thread AbdAllah-MEZITI
In C a static pointer will be initialized to NULL (e.g: draft C99 standard $6.7.8): "If an object that has static storage duration is not initialized explicitly, then: __ if it has pointer type, it is initialized to a null pointer;" Signed-off-by: AbdAllah-MEZITI --- drivers/stagi