[PATCH] staging/atomisp: make six local functions static to appease sparse

2017-09-23 Thread Muhammad Falak R Wani
; was not declared. Should it be static? warning: symbol '__bo_break_up' was not declared. Should it be static? warning: symbol '__bo_merge' was not declared. Should it be static? Signed-off-by: Muhammad Falak R Wani --- drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm_bo.c | 14

[PATCH] staging: rtl8712: Remove explicit NULL comparison

2017-07-07 Thread Muhammad Falak R Wani
Replace the explicit "if (val != NULL)" with if (val). Signed-off-by: Muhammad Falak R Wani --- drivers/staging/rtl8712/rtl8712_xmit.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8712/rtl8712_xmit.c b/drivers/staging/rtl8712/rtl8

[PATCH] staging: lustre: use setup_timer().

2016-05-11 Thread Muhammad Falak R Wani
Use setup_timer() for initializing the timer, instead of structure assignments. This is the preferred/standard way. Signed-off-by: Muhammad Falak R Wani --- drivers/staging/lustre/lnet/lnet/net_fault.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/lustre

[PATCH 3/3] staging: i4l: pcbit: layer2: use setup_timer() and mod_timer().

2016-05-11 Thread Muhammad Falak R Wani
mer and mod_timer to setup and arm a timer, to make the code cleaner and easier to read. Signed-off-by: Muhammad Falak R Wani --- drivers/staging/i4l/pcbit/layer2.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/staging/i4l/pcbit/layer2.c b/drivers/staging/

[PATCH 1/3] staging: i4l: pcbit: drv: use setup_timer() and mod_timer().

2016-05-11 Thread Muhammad Falak R Wani
mer and mod_timer to setup and arm a timer, to make the code cleaner and easier to read. Signed-off-by: Muhammad Falak R Wani --- drivers/staging/i4l/pcbit/drv.c | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers/staging/i4l/pcbit/drv.c b/drivers/staging/

[PATCH 2/3] staging: i4l: pcbit: edss1: use setup_timer() and mod_timer().

2016-05-11 Thread Muhammad Falak R Wani
mer and mod_timer to setup and arm a timer, to make the code cleaner and easier to read. Signed-off-by: Muhammad Falak R Wani --- drivers/staging/i4l/pcbit/edss1.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/staging/i4l/pcbit/edss1.c b/drivers/staging/i4l/pc

[PATCH] staging: i4l: icn: use setup_timer() and mod_timer().

2016-05-11 Thread Muhammad Falak R Wani
mer and mod_timer to setup and arm a timer, to make the code cleaner and easier to read. Signed-off-by: Muhammad Falak R Wani --- drivers/staging/i4l/icn/icn.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/staging/i4l/icn/icn.c b/drivers/staging/

[PATCH] staging/rdma/hfi1: use RCU_INIT_POINTER() when NULLing.

2016-05-01 Thread Muhammad Falak R Wani
It is safe to use RCU_INIT_POINTER() to NULL a pointer, instead of rcu_assign_pointer(). This results in slightly smaller/faster code. Signed-off-by: Muhammad Falak R Wani --- drivers/staging/rdma/hfi1/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging

[PATCH] staging: rdma: ipath: Remove unneeded vairable.

2015-10-28 Thread Muhammad Falak R Wani
Remove unneeded variable ret, directly return 0. Signed-off-by: Muhammad Falak R Wani --- drivers/staging/rdma/ipath/ipath_file_ops.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rdma/ipath/ipath_file_ops.c b/drivers/staging/rdma/ipath/ipath_file_ops.c

Re: [PATCH 1/4 v2] staging: ipath: ipath_driver: Use setup_timer

2015-10-27 Thread Muhammad Falak R Wani
>> On Sun, Oct 25, 2015 at 12:17 PM, Muhammad Falak R Wani >> >> wrote: >> >> Please follow standard naming convention for the patches. >> >> It should be [PATCH v2 1/4] and not [PATCH 1/4 v2]. >> > >> > Does this matter? It's in a t

[PATCH 3/3] staging: hfi1: sdma: Use setup_timer

2015-10-25 Thread Muhammad Falak R Wani
Use the timer API function setup_timer instead of init_timer, removing the structure field assignments. Signed-off-by: Muhammad Falak R Wani --- v2 changes ->make subject line more specific drivers/staging/rdma/hfi1/sdma.c | 6 ++ 1 file changed, 2 insertions(+), 4 deleti

[PATCH 2/3] staging: hfi1: driver: Use setup_timer

2015-10-25 Thread Muhammad Falak R Wani
Use the timer API function setup_timer instead of init_timer, removing the structure field assignments. @timer@ expression e1,e2,e3,fn_ptr; @@ -init_timer(&e1); +setup_timer(&e1, fn_ptr, e2); ... when != fn_ptr = e3 -e1.function = fn_ptr; -e1.data = e2; Signed-off-by: Muhammad Fala

[PATCH 1/3] staging: rdma: hfi1: chip: Use setup_timer

2015-10-25 Thread Muhammad Falak R Wani
Use the timer API function setup_timer instead of init_timer, removing the structure field assignments. @timer@ expression e1,e2,e3,fn_ptr; @@ -init_timer(&e1); +setup_timer(&e1, fn_ptr, e2); ... when != fn_ptr = e3 -e1.function = fn_ptr; -e1.data = e2; Signed-off-by: Muhammad Fala

[PATCH 1/4 v2] staging: ipath: ipath_driver: Use setup_timer

2015-10-25 Thread Muhammad Falak R Wani
ata = e2; Signed-off-by: Muhammad Falak R Wani --- v2 changes: -> Change the subject line to a be more specific -> Add details about coccinelle in the commit log mfrw drivers/staging/rdma/ipath/ipath_driver.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-)

[PATCH 2/4 v2] staging: ipath: ipath_init_chip: Use setup_timer

2015-10-25 Thread Muhammad Falak R Wani
ptr = e3 -e1.function = fn_ptr; -e1.data = e2; Signed-off-by: Muhammad Falak R Wani --- v2 changes: -> Change the subject line to a be more specific mfrw drivers/staging/rdma/ipath/ipath_init_chip.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --gi

[PATCH 3/4 v2] staging: ipath: ipath_sdma: Use setup_timer

2015-10-25 Thread Muhammad Falak R Wani
Use the timer API function setup_timer instead of init_timer, removing the structure field assignments. Signed-off-by: Muhammad Falak R Wani --- v2 changes: -> Change the subject line to a be more specific mfrw drivers/staging/rdma/ipath/ipath_sdma.c | 6 +++--- 1 file changed

[PATCH 4/4 v2] staging: ipath: ipath_verbs: Use setup_timer

2015-10-25 Thread Muhammad Falak R Wani
Use the timer API function setup_timer instead of init_timer, removing the structure field assignments. Signed-off-by: Muhammad Falak R Wani --- v2 changes: -> Change the subject line to a be more specific mfrw drivers/staging/rdma/ipath/ipath_verbs.c | 5 ++--- 1 file changed

[PATCH 3/3] staging: rdma: hfi1: Use setup_timer

2015-10-23 Thread Muhammad Falak R Wani
Use the timer API function setup_timer instead of init_timer, removing the structure field assignments. @timer@ expression e1,e2,e3,fn_ptr; @@ -init_timer(&e1); +setup_timer(&e1, fn_ptr, e2); ... when != fn_ptr = e3 -e1.function = fn_ptr; -e1.data = e2; Signed-off-by: Muhammad Fala

[PATCH 2/3] staging: rdma: hfi1: Use setup_timer

2015-10-23 Thread Muhammad Falak R Wani
Use the timer API function setup_timer instead of init_timer, removing the structure field assignments. @timer@ expression e1,e2,e3,fn_ptr; @@ -init_timer(&e1); +setup_timer(&e1, fn_ptr, e2); ... when != fn_ptr = e3 -e1.function = fn_ptr; -e1.data = e2; Signed-off-by: Muhammad Fala

[PATCH 1/3] staging: rdma: hfi1: Use setup_timer

2015-10-23 Thread Muhammad Falak R Wani
Use the timer API function setup_timer instead of init_timer, removing the structure field assignments. @timer@ expression e1,e2,e3,fn_ptr; @@ -init_timer(&e1); +setup_timer(&e1, fn_ptr, e2); ... when != fn_ptr = e3 -e1.function = fn_ptr; -e1.data = e2; Signed-off-by: Muhammad Fala

[PATCH 4/4] staging: rdma: ipath: Use setup_timer

2015-10-23 Thread Muhammad Falak R Wani
Use the timer API function setup_timer instead of init_timer, removing the structure field assignments. Signed-off-by: Muhammad Falak R Wani --- drivers/staging/rdma/ipath/ipath_verbs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rdma/ipath

[PATCH 3/4] staging: rdma: ipath: Use setup_timer

2015-10-23 Thread Muhammad Falak R Wani
Use the timer API function setup_timer instead of init_timer, removing the structure field assignments. Signed-off-by: Muhammad Falak R Wani --- drivers/staging/rdma/ipath/ipath_sdma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rdma/ipath

[PATCH 2/4] staging: rdma: ipath: Use setup_timer

2015-10-23 Thread Muhammad Falak R Wani
Use the timer API function setup_timer instead of init_timer, removing the structure field assignments. @timer@ expression e1,e2,e3,fn_ptr; @@ -init_timer(&e1); +setup_timer(&e1, fn_ptr, e2); ... when != fn_ptr = e3 -e1.function = fn_ptr; -e1.data = e2; Signed-off-by: Muhammad Fala

[PATCH 1/4] staging: rdma: ipath: Use setup_timer

2015-10-23 Thread Muhammad Falak R Wani
Use the timer API function setup_timer instead of init_timer, removing the structure field assignments. @timer@ expression e1,e2,e3,fn_ptr; @@ -init_timer(&e1); +setup_timer(&e1, fn_ptr, e2); ... when != fn_ptr = e3 -e1.function = fn_ptr; -e1.data = e2; Signed-off-by: Muhammad Fala

[PATCH] staging: most: hdm-usb: Use setup_timer

2015-10-23 Thread Muhammad Falak R Wani
Use the timer API function setup_timer instead of init_timer, removing the structure field assignments. @timer@ expression e1,e2,e3,fn_ptr; @@ -init_timer(&e1); +setup_timer(&e1, fn_ptr, e2); ... when != fn_ptr = e3 -e1.function = fn_ptr; -e1.data = e2; Signed-off-by: Muhammad Fala

[PATCH 2/2] staging: octeon: Remove explicit NULL comparison

2015-10-19 Thread Muhammad Falak R Wani
Remove the explicit NULL comparison and rewrite in a compact form. Signed-off-by: Muhammad Falak R Wani --- drivers/staging/octeon/ethernet-tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/octeon/ethernet-tx.c b/drivers/staging/octeon/ethernet-tx.c index

[PATCH 1/2] staging: octeon: Remove explicit NULL comparison

2015-10-19 Thread Muhammad Falak R Wani
Remove the explicit NULL comparison and rewrite in a compact form. Signed-off-by: Muhammad Falak R Wani --- drivers/staging/octeon/ethernet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/octeon/ethernet.c b/drivers/staging/octeon/ethernet.c index fbbe866

[PATCH] staging: dgnc: Remove explicit NULL comparison

2015-10-19 Thread Muhammad Falak R Wani
Rewrite explicit NULL comparison in its simpler form. @NULL_REPLACE@ expression e; @@ -e == NULL + !e Signed-off-by: Muhammad Falak R Wani --- drivers/staging/dgnc/dgnc_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging

[PATCH] staging: ion: Remove explicit NULL comparison

2015-10-19 Thread Muhammad Falak R Wani
Rewrite explicit NULL comparison in its simpler form. @NULL_REPLACE@ expression e; @@ -e == NULL + !e Signed-off-by: Muhammad Falak R Wani --- drivers/staging/android/ion/ion_heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/android/ion/ion_heap.c b