Re: [PATCH v2] powercap: include header to fix -Wmissing-prototypes

2020-09-21 Thread Rafael J. Wysocki
On Mon, Sep 21, 2020 at 9:04 AM Herrington  wrote:
>
> Include the linux/idle_inject.h header to fix W=1 build warning:
>
> drivers/powercap/idle_inject.c:152:6: warning: no previous prototype for 
> ‘idle_inject_set_duration’ [-Wmissing-prototypes]
> drivers/powercap/idle_inject.c:167:6: warning: no previous prototype for 
> ‘idle_inject_get_duration’ [-Wmissing-prototypes]
> drivers/powercap/idle_inject.c:179:6: warning: no previous prototype for 
> ‘idle_inject_set_latency’ [-Wmissing-prototypes]
> drivers/powercap/idle_inject.c:195:5: warning: no previous prototype for 
> ‘idle_inject_start’ [-Wmissing-prototypes]
> drivers/powercap/idle_inject.c:227:6: warning: no previous prototype for 
> ‘idle_inject_stop’ [-Wmissing-prototypes]
> drivers/powercap/idle_inject.c:299:28: warning: no previous prototype for 
> ‘idle_inject_register’ [-Wmissing-prototypes]
> drivers/powercap/idle_inject.c:345:6: warning: no previous prototype for 
> ‘idle_inject_unregister’ [-Wmissing-prototypes]
>
> Signed-off-by: Herrington 
> Signed-off-by: Pujin Shi 
> Signed-off-by: Pujin Shi 

First, who is the other person whose S-o-b is present here?  For a
co-author of the patch, a Co-developed-by tag should be present too.
Otherwise, a Reviewed-by tag should be used instead of the S-o-b.

Also, one S-o-b (or R-by) per developer would be sufficient.

> ---
>  drivers/powercap/idle_inject.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/powercap/idle_inject.c b/drivers/powercap/idle_inject.c
> index 4310901a074e..6e1a0043c411 100644
> --- a/drivers/powercap/idle_inject.c
> +++ b/drivers/powercap/idle_inject.c
> @@ -43,6 +43,7 @@
>  #include 
>  #include 
>  #include 
> +#include 
>
>  #include 
>
> --
> 2.25.4
>


[PATCH v2] powercap: include header to fix -Wmissing-prototypes

2020-09-21 Thread Herrington
Include the linux/idle_inject.h header to fix W=1 build warning:

drivers/powercap/idle_inject.c:152:6: warning: no previous prototype for 
‘idle_inject_set_duration’ [-Wmissing-prototypes]
drivers/powercap/idle_inject.c:167:6: warning: no previous prototype for 
‘idle_inject_get_duration’ [-Wmissing-prototypes]
drivers/powercap/idle_inject.c:179:6: warning: no previous prototype for 
‘idle_inject_set_latency’ [-Wmissing-prototypes]
drivers/powercap/idle_inject.c:195:5: warning: no previous prototype for 
‘idle_inject_start’ [-Wmissing-prototypes]
drivers/powercap/idle_inject.c:227:6: warning: no previous prototype for 
‘idle_inject_stop’ [-Wmissing-prototypes]
drivers/powercap/idle_inject.c:299:28: warning: no previous prototype for 
‘idle_inject_register’ [-Wmissing-prototypes]
drivers/powercap/idle_inject.c:345:6: warning: no previous prototype for 
‘idle_inject_unregister’ [-Wmissing-prototypes]

Signed-off-by: Herrington 
Signed-off-by: Pujin Shi 
Signed-off-by: Pujin Shi 
---
 drivers/powercap/idle_inject.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/powercap/idle_inject.c b/drivers/powercap/idle_inject.c
index 4310901a074e..6e1a0043c411 100644
--- a/drivers/powercap/idle_inject.c
+++ b/drivers/powercap/idle_inject.c
@@ -43,6 +43,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include 
 
-- 
2.25.4