Catégorie : 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 …

Lire la suite

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 …

Lire la suite

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 …

Lire la suite

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 …

Lire la suite

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

Lire la suite

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

Lire la suite

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

Lire la suite

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

Lire la suite

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

Lire la suite

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

Lire la suite

BtrLinux
Résumé de la politique de confidentialité

Ce site utilise des cookies afin que nous puissions vous fournir la meilleure expérience utilisateur possible. Les informations sur les cookies sont stockées dans votre navigateur et remplissent des fonctions telles que vous reconnaître lorsque vous revenez sur notre site Web et aider notre équipe à comprendre les sections du site que vous trouvez les plus intéressantes et utiles.