Author: Shraddha Barke <shraddha.6596@gmail.com> The Linux kernel coding style guidelines suggest not using typedefs for structure and enum types. This patch gets rid of the typedefs for lu_site_stats_t. The following Coccinelle semantic patch detects the cases for struct type: @tn@ identifier i; type td; @@ -typedef struct i { … } -td ; @@ type …
Category: Linux
Sep 04 2015
Staging: lustre: libcfs: Remove typedefs for struct
Author: Shraddha Barke <shraddha.6596@gmail.com> The Linux kernel coding style guidelines suggest not using typedefs for structure and enum types. This patch gets rid of the typedefs for cfs_wi_sched_t. The following Coccinelle semantic patch detects the cases for struct type: @tn@ identifier i; type td; @@ -typedef struct i { … } -td ; @@ type …
Aug 30 2015
regulator: mt6311: fix platform_no_drv_owner.cocci warnings
Author: kbuild test robot <fengguang.wu@intel.com> drivers/regulator/mt6311-regulator.c:169:3-8: No need to set .owner here. The core will do it. Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Signed-off-by: Fengguang Wu Signed-off-by: Mark Brown — drivers/regulator/mt6311-regulator.c | 1 – 1 file changed, 1 deletion(-) diff –git a/drivers/regulator/mt6311-regulator.c b/drivers/regulator/mt6311-regulator.c index 2c2c85b..02c4e5f 100644 …
Aug 30 2015
iio: light: fix platform_no_drv_owner.cocci warnings
Author: kbuild test robot <fengguang.wu@intel.com> drivers/iio/light/opt3001.c:796:3-8: No need to set .owner here. The core will do it. Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci CC: Andreas Dannenberg Signed-off-by: Fengguang Wu Signed-off-by: Jonathan Cameron — drivers/iio/light/opt3001.c | 1 – 1 file changed, 1 deletion(-) diff –git a/drivers/iio/light/opt3001.c b/drivers/iio/light/opt3001.c …
Aug 29 2015
staging: lustre: put constant on the right of binary operator
Author: Julia Lawall <Julia.Lawall@lip6.fr> Move constants to the right of binary operators. A simplified version of the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ constant c; expression e; binary operator b = {==,!=,&,|}; @@ ( – c + e b – e + c | – c < e + …
Aug 29 2015
staging: lustre: osc: put constant on the right of binary operator
Author: Julia Lawall <Julia.Lawall@lip6.fr> Move constants to the right of binary operators. A simplified version of the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ constant c; expression e; binary operator b = {==,!=,&,|}; @@ ( – c + e b – e + c | – c < e + …
Aug 29 2015
Staging: lustre: obd: put constant on the right of binary operator
Author: Julia Lawall <Julia.Lawall@lip6.fr> Move constants to the right of binary operators. A simplified version of the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ constant c; expression e; binary operator b = {==,!=,&,|}; @@ ( – c + e b – e + c | – c < e + …
Aug 29 2015
staging: lustre: llite: put constant on the right of binary operator
Author: Julia Lawall <Julia.Lawall@lip6.fr> Move constants to the right of binary operators. A simplified version of the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ constant c; expression e; binary operator b = {==,!=,&,|}; @@ ( – c + e b – e + c | – c < e + …
Aug 29 2015
staging: lustre: libcfs: put constant on the right of binary operator
Author: Julia Lawall <Julia.Lawall@lip6.fr> Move constants to the right of binary operators. A simplified version of the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ constant c; expression e; binary operator b = {==,!=,&,|}; @@ ( – c + e b – e + c | – c < e + …
Aug 29 2015
staging: lustre: ldlm: put constant on the right of binary operator
Author: Julia Lawall <Julia.Lawall@lip6.fr> Move constants to the right of binary operators. A simplified version of the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ constant c; expression e; binary operator b = {==,!=,&,|}; @@ ( – c + e b – e + c | – c < e + …