Category: Linux

power/smb347-charger.c: set IRQF_ONESHOT flag to ensure IRQ request

Author: Valentin Rothberg <Valentin.Rothberg@lip6.fr> Since commit 1c6c69525b40eb76de8adf039409722015927dc3 (“genirq: Reject bogus threaded irq requests”) threaded IRQs without a primary handler need to be requested with IRQF_ONESHOT, otherwise the request may fail. Generated by: scripts/coccinelle/misc/irqf_oneshot.cocci Signed-off-by: Valentin Rothberg Signed-off-by: Sebastian Reichel — drivers/power/smb347-charger.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)   diff –git a/drivers/power/smb347-charger.c …

Continue reading

Staging: rtl8192e: Remove unneeded brackets.

Author: Vatika Harlalka <vatikaharlalka@gmail.com> These were detected with this Coccinelle script: @@ identifier f1, f2, f3; constant c; @@ f1 = ( – (f2 f3) + f2 >> f3 | – (f2 c) + f2 >> c ) Signed-off-by: Vatika Harlalka Acked-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 12 ++++++—— 1 file changed, …

Continue reading

Staging: rtl8712: Use del_timer

Author: Vaishali Thakkar <vthakkar1994@gmail.com> Use timer API function del_timer instead of driver specific function _cancel_timer_ex as it is a standard way for deactivating a timer. This is done using Coccinelle and semantic patch used for this is as follows: @@ expression x; @@ – _cancel_timer_ex (&x); + del_timer (&x); Signed-off-by: Vaishali Thakkar Signed-off-by: Greg Kroah-Hartman …

Continue reading

md/cluster: Communication Framework: fix semicolon.cocci warnings

Author: kbuild test robot <fengguang.wu@intel.com> drivers/md/md-cluster.c:328:2-3: Unneeded semicolon Removes unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Signed-off-by: Fengguang Wu Signed-off-by: NeilBrown — drivers/md/md-cluster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/drivers/md/md-cluster.c b/drivers/md/md-cluster.c index 5062bd1..ae8bb54 100644 — a/drivers/md/md-cluster.c +++ b/drivers/md/md-cluster.c @@ -419,7 +419,7 @@ static void process_recvd_msg(struct mddev *mddev, struct cluster_msg *msg) …

Continue reading

staging: rtl8188eu: Compress two statements into one.

Author: Navya Sri Nizamkari <navyasri.tech@gmail.com> This patch removes the use of a variable used only for returning a value. The following coccinelle script was used to discover it: @@ expression ret; identifier f; @@ -ret = +return f(…); -return ret; It also fixes the checkpatch.pl warning about line being over 80 characters, in the lines …

Continue reading

net: pasemi: Use setup_timer and mod_timer

Author: Vaishali Thakkar <vthakkar1994@gmail.com> Use timer API functions setup_timer and mod_timer instead of structure assignments as they are standard way to set the timer and to update the expire field of an active timer respectively. This is done using Coccinelle and semantic patch used for this is as follows: // @@ expression x,y,z,a,b; @@ -init_timer …

Continue reading

net: stmmac: Use setup_timer and mod_timer

Author: Vaishali Thakkar <vthakkar1994@gmail.com> Use timer API functions setup_timer and mod_timer instead of structure assignments as they are standard way to set the timer and to update the expire field of an active timer respectively. This is done using Coccinelle and semantic patch used for this is as follows: // @@ expression x,y,z,a,b; @@ -init_timer …

Continue reading

net: 8390: axnet_cs: Use setup_timer and mod_timer

Author: Vaishali Thakkar <vthakkar1994@gmail.com> Use timer API functions setup_timer and mod_timer instead of structure assignments as they are standard way to set the timer and to update the expire field of an active timer respectively. This is done using Coccinelle and semantic patch used for this is as follows: // @@ expression x,y,z,a,b; @@ -init_timer …

Continue reading

net: 8390: pcnet_cs: Use setup_timer and mod_timer

Author: Vaishali Thakkar <vthakkar1994@gmail.com> Use timer API functions setup_timer and mod_timer instead of structure assignments as they are standard way to set the timer and to update the expire field of an active timer respectively. This is done using Coccinelle and semantic patch used for this is as follows: // @@ expression x,y,z,a,b; @@ -init_timer …

Continue reading

drm/i915: Use plane->state->fb in watermark code (v2)

Author: Matt Roper <matthew.d.roper@intel.com> plane->fb is a legacy pointer that not always be up-to-date (or updated early enough). Make sure the watermark code uses plane->state->fb so that we’re always doing our calculations based on the correct framebuffers. This patch was generated by Coccinelle with the following semantic patch: @@ struct drm_plane *P; @@ – P->fb …

Continue reading