Skip to contentSkip to conversation

thermal: imx8mm_thermal: Fix function pointer declaration by adding identifier name

PATCH Applied Bragatheswaran Manickavel 2 participants 6 messages Sep 17, 2023 – Sep 28, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 thermal: imx8mm_thermal: Fix function pointer declaration by adding identifier name

Added identifier names to respective definitions for fix warnings reported by checkpatch.pl

WARNING: function definition argument 'void *' should also have an identifier name
WARNING: function definition argument 'int *' should also have an identifier name

---
 drivers/thermal/imx8mm_thermal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/imx8mm_thermal.c +1 -1
index 14111ccf6e4c..5dc6c18f12df 100644
@@ -78,7 +78,7 @@
 struct thermal_soc_data {
 	u32 num_sensors;
 	u32 version;
-	int (*get_temp)(void *, int *);
+	int (*get_temp)(void *data, int *temp);
 };
 
 struct tmu_sensor {
Signature · 7 lines
2.34.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#1 lore raw
Quoted 15 lines · Bragatheswaran Manickavel

Added identifier names to respective definitions for fix warnings reported by checkpatch.pl

WARNING: function definition argument 'void *' should also have an identifier name
WARNING: function definition argument 'int *' should also have an identifier name

---
drivers/thermal/imx8mm_thermal.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/imx8mm_thermal.c +0 -0
index 14111ccf6e4c..5dc6c18f12df 100644

drivers/thermal/imx8mm_thermal.c line 84

Quoted 8 lines
drivers/thermal/imx8mm_thermal.c +1 -1
@@ -78,7 +78,7 @@
 struct thermal_soc_data {
     u32 num_sensors;
     u32 version;
-    int (*get_temp)(void *, int *);
+    int (*get_temp)(void *data, int *temp);
 };
 
 struct tmu_sensor {

Gentle remainder

#2 lore raw
In reply to Bragatheswaran Manickavel
Quoted 15 lines · Bragatheswaran Manickavel

Added identifier names to respective definitions for fix warnings reported by checkpatch.pl

WARNING: function definition argument 'void *' should also have an identifier name
WARNING: function definition argument 'int *' should also have an identifier name

---
  drivers/thermal/imx8mm_thermal.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/imx8mm_thermal.c +0 -0
index 14111ccf6e4c..5dc6c18f12df 100644

drivers/thermal/imx8mm_thermal.c line 84

Quoted 8 lines
drivers/thermal/imx8mm_thermal.c +1 -1
@@ -78,7 +78,7 @@
  struct thermal_soc_data {
  	u32 num_sensors;
  	u32 version;
-	int (*get_temp)(void *, int *);
+	int (*get_temp)(void *data, int *temp);
  };
 
  struct tmu_sensor {

Hi Team, Could someone help in reviewing it.

Thanks,
Bragathe

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#3 lore raw
Quoted 12 lines · Bragatheswaran Manickavel
Quoted 10 lines · Bragatheswaran Manickavel

Added identifier names to respective definitions for fix warnings reported by checkpatch.pl

WARNING: function definition argument 'void *' should also have an identifier name
WARNING: function definition argument 'int *' should also have an identifier name

---
  drivers/thermal/imx8mm_thermal.c | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines

drivers/thermal/imx8mm_thermal.c line 83

Quoted 12 lines
drivers/thermal/imx8mm_thermal.c +1 -1
index 14111ccf6e4c..5dc6c18f12df 100644
@@ -78,7 +78,7 @@
   struct thermal_soc_data {
       u32 num_sensors;
       u32 version;
-    int (*get_temp)(void *, int *);
+    int (*get_temp)(void *data, int *temp);
   };
   struct tmu_sensor {

Hi Team, Could someone help in reviewing it.

Please no more "gentle reminder"

Read:

https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git/tree/Documentation/process/submitting-patches.rst

Especially, the section _9_

Thanks

-- Daniel

Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
#4 lore raw
Quoted 32 lines · Daniel Lezcano
Quoted 12 lines · Bragatheswaran Manickavel
Quoted 10 lines · Bragatheswaran Manickavel

Added identifier names to respective definitions for fix warnings reported by checkpatch.pl

WARNING: function definition argument 'void *' should also have an identifier name
WARNING: function definition argument 'int *' should also have an identifier name

---
  drivers/thermal/imx8mm_thermal.c | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines

drivers/thermal/imx8mm_thermal.c line 83

Quoted 12 lines
drivers/thermal/imx8mm_thermal.c +1 -1
index 14111ccf6e4c..5dc6c18f12df 100644
@@ -78,7 +78,7 @@
   struct thermal_soc_data {
       u32 num_sensors;
       u32 version;
-    int (*get_temp)(void *, int *);
+    int (*get_temp)(void *data, int *temp);
   };
   struct tmu_sensor {

Hi Team, Could someone help in reviewing it.

Please no more "gentle reminder"

Read:

Quoted 9 lines

https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git/tree/Documentation/process/submitting-patches.rst

Especially, the section _9_

Thanks

   -- Daniel

Hi Daniel,

Understood. Will wait for this to get reviewed.

Thanks,
Bragathe

#5 lore raw
In reply to Bragatheswaran Manickavel
Quoted 7 lines · Bragatheswaran Manickavel

Added identifier names to respective definitions for fix warnings reported by checkpatch.pl

WARNING: function definition argument 'void *' should also have an identifier name
WARNING: function definition argument 'int *' should also have an identifier name

---

Applied, thanks

Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog