All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cpufreq: governor: fix compile warning
@ 2016-02-04  6:06 Srinivas Pandruvada
  2016-02-04 17:25 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Srinivas Pandruvada @ 2016-02-04  6:06 UTC (permalink / raw)
  To: rjw; +Cc: linux-pm, Srinivas Pandruvada

Fix warning reported by 0-day
> drivers/cpufreq/cpufreq_governor.c:293:4: error: implicit declaration of
> function 'irq_work_queue_on' [-Werror=implicit-function-declaration]

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
---
 drivers/cpufreq/cpufreq_governor.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/cpufreq/cpufreq_governor.c b/drivers/cpufreq/cpufreq_governor.c
index 541c323..0da7fc4 100644
--- a/drivers/cpufreq/cpufreq_governor.c
+++ b/drivers/cpufreq/cpufreq_governor.c
@@ -17,6 +17,7 @@
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
 #include <linux/export.h>
+#include <linux/irq_work.h>
 #include <linux/kernel_stat.h>
 #include <linux/slab.h>
 
-- 
2.5.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] cpufreq: governor: fix compile warning
  2016-02-04  6:06 [PATCH] cpufreq: governor: fix compile warning Srinivas Pandruvada
@ 2016-02-04 17:25 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2016-02-04 17:25 UTC (permalink / raw)
  To: Srinivas Pandruvada; +Cc: Rafael J. Wysocki, linux-pm

On Thu, Feb 4, 2016 at 7:06 AM, Srinivas Pandruvada
<srinivas.pandruvada@linux.intel.com> wrote:
> Fix warning reported by 0-day
>> drivers/cpufreq/cpufreq_governor.c:293:4: error: implicit declaration of
>> function 'irq_work_queue_on' [-Werror=implicit-function-declaration]

I'm wondering how you managed to get this error really.

The last patch in my update util series is adding a #include
<linux/irq_work.h> to cpufreq_governor.h, so it should be OK.

> Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
> ---
>  drivers/cpufreq/cpufreq_governor.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/cpufreq/cpufreq_governor.c b/drivers/cpufreq/cpufreq_governor.c
> index 541c323..0da7fc4 100644
> --- a/drivers/cpufreq/cpufreq_governor.c
> +++ b/drivers/cpufreq/cpufreq_governor.c
> @@ -17,6 +17,7 @@
>  #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
>
>  #include <linux/export.h>
> +#include <linux/irq_work.h>
>  #include <linux/kernel_stat.h>
>  #include <linux/slab.h>
>

Thanks,
Rafael

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-04 17:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-04  6:06 [PATCH] cpufreq: governor: fix compile warning Srinivas Pandruvada
2016-02-04 17:25 ` Rafael J. Wysocki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.