Category: Linux

Staging: lustre: obdclass: 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 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 …

Continue reading

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 …

Continue reading

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 …

Continue reading

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 …

Continue reading

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

Continue reading

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

Continue reading

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

Continue reading

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

Continue reading

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

Continue reading

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

Continue reading

BtrLinux
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.