linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mfd: intel-lpss: fix compilation issue if PM_SLEEP is not set
@ 2016-06-24  0:11 Vladimir Zapolskiy
  2016-06-24  0:13 ` Vladimir Zapolskiy
  2016-06-24  8:28 ` Andy Shevchenko
  0 siblings, 2 replies; 4+ messages in thread
From: Vladimir Zapolskiy @ 2016-06-24  0:11 UTC (permalink / raw)
  To: Lee Jones, Andy Shevchenko, Mika Westerberg; +Cc: linux-kernel

If kernel build configuration has enabled CONFIG_PM and unset
CONFIG_PM_SLEEP, then intel-lpss-pci.c and intel-lpss-acpi.c can not
be compiled due to a missing INTEL_LPSS_SLEEP_PM_OPS macro
declaration:

  drivers/mfd/intel-lpss-pci.c:63:8: error: undefined identifier 'INTEL_LPSS_SLEEP_PM_OPS'
  drivers/mfd/intel-lpss-pci.c:63:58: error: ‘INTEL_LPSS_SLEEP_PM_OPS’ undeclared here (not in a function)

Fixes: d35dbf0dbaa7 ("mfd: Add support for Intel Sunrisepoint LPSS devices")
Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
---
 drivers/mfd/intel-lpss.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mfd/intel-lpss.h b/drivers/mfd/intel-lpss.h
index 764dc0d..0dcea9e 100644
--- a/drivers/mfd/intel-lpss.h
+++ b/drivers/mfd/intel-lpss.h
@@ -44,6 +44,8 @@ int intel_lpss_resume(struct device *dev);
 	.thaw = intel_lpss_resume,		\
 	.poweroff = intel_lpss_suspend,		\
 	.restore = intel_lpss_resume,
+#else
+#define INTEL_LPSS_SLEEP_PM_OPS
 #endif
 
 #define INTEL_LPSS_RUNTIME_PM_OPS		\
-- 
2.5.0

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

* Re: [PATCH] mfd: intel-lpss: fix compilation issue if PM_SLEEP is not set
  2016-06-24  0:11 [PATCH] mfd: intel-lpss: fix compilation issue if PM_SLEEP is not set Vladimir Zapolskiy
@ 2016-06-24  0:13 ` Vladimir Zapolskiy
  2016-06-24  8:28 ` Andy Shevchenko
  1 sibling, 0 replies; 4+ messages in thread
From: Vladimir Zapolskiy @ 2016-06-24  0:13 UTC (permalink / raw)
  To: Lee Jones, Andy Shevchenko, Mika Westerberg; +Cc: linux-kernel

On 24.06.2016 03:11, Vladimir Zapolskiy wrote:
> If kernel build configuration has enabled CONFIG_PM and unset
> CONFIG_PM_SLEEP, then intel-lpss-pci.c and intel-lpss-acpi.c can not
> be compiled due to a missing INTEL_LPSS_SLEEP_PM_OPS macro
> declaration:
> 
>   drivers/mfd/intel-lpss-pci.c:63:8: error: undefined identifier 'INTEL_LPSS_SLEEP_PM_OPS'
>   drivers/mfd/intel-lpss-pci.c:63:58: error: ‘INTEL_LPSS_SLEEP_PM_OPS’ undeclared here (not in a function)
> 
> Fixes: d35dbf0dbaa7 ("mfd: Add support for Intel Sunrisepoint LPSS devices")

Oops, weird fixed commit id, it should be

Fixes: 4b45efe85263 ("mfd: Add support for Intel Sunrisepoint LPSS devices")

> Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
> ---
>  drivers/mfd/intel-lpss.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/mfd/intel-lpss.h b/drivers/mfd/intel-lpss.h
> index 764dc0d..0dcea9e 100644
> --- a/drivers/mfd/intel-lpss.h
> +++ b/drivers/mfd/intel-lpss.h
> @@ -44,6 +44,8 @@ int intel_lpss_resume(struct device *dev);
>  	.thaw = intel_lpss_resume,		\
>  	.poweroff = intel_lpss_suspend,		\
>  	.restore = intel_lpss_resume,
> +#else
> +#define INTEL_LPSS_SLEEP_PM_OPS
>  #endif
>  
>  #define INTEL_LPSS_RUNTIME_PM_OPS		\
> 

--
Best wishes,
Vladimir

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

* Re: [PATCH] mfd: intel-lpss: fix compilation issue if PM_SLEEP is not set
  2016-06-24  0:11 [PATCH] mfd: intel-lpss: fix compilation issue if PM_SLEEP is not set Vladimir Zapolskiy
  2016-06-24  0:13 ` Vladimir Zapolskiy
@ 2016-06-24  8:28 ` Andy Shevchenko
  2016-06-24 22:02   ` Vladimir Zapolskiy
  1 sibling, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2016-06-24  8:28 UTC (permalink / raw)
  To: Vladimir Zapolskiy, Lee Jones, Mika Westerberg; +Cc: linux-kernel

On Fri, 2016-06-24 at 03:11 +0300, Vladimir Zapolskiy wrote:
> If kernel build configuration has enabled CONFIG_PM and unset
> CONFIG_PM_SLEEP, then intel-lpss-pci.c and intel-lpss-acpi.c can not
> be compiled due to a missing INTEL_LPSS_SLEEP_PM_OPS macro
> declaration:
> 
>   drivers/mfd/intel-lpss-pci.c:63:8: error: undefined identifier
> 'INTEL_LPSS_SLEEP_PM_OPS'
>   drivers/mfd/intel-lpss-pci.c:63:58: error: ‘INTEL_LPSS_SLEEP_PM_OPS’
> undeclared here (not in a function)

And may I ask what ancient kernel you are using?

commit 47b91923ea41288751e83a5b080576085a831333
Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date:   Mon Sep 14 11:32:47 2015 +0300

    mfd: intel-lpss: Fix build error when !CONFIG_PM_SLEEP


> 
> Fixes: d35dbf0dbaa7 ("mfd: Add support for Intel Sunrisepoint LPSS
> devices")
> Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
> ---
>  drivers/mfd/intel-lpss.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/mfd/intel-lpss.h b/drivers/mfd/intel-lpss.h
> index 764dc0d..0dcea9e 100644
> --- a/drivers/mfd/intel-lpss.h
> +++ b/drivers/mfd/intel-lpss.h
> @@ -44,6 +44,8 @@ int intel_lpss_resume(struct device *dev);
>  	.thaw = intel_lpss_resume,		\
>  	.poweroff = intel_lpss_suspend,		\
>  	.restore = intel_lpss_resume,
> +#else
> +#define INTEL_LPSS_SLEEP_PM_OPS
>  #endif
>  
>  #define INTEL_LPSS_RUNTIME_PM_OPS		\

-- 

Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy

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

* Re: [PATCH] mfd: intel-lpss: fix compilation issue if PM_SLEEP is not set
  2016-06-24  8:28 ` Andy Shevchenko
@ 2016-06-24 22:02   ` Vladimir Zapolskiy
  0 siblings, 0 replies; 4+ messages in thread
From: Vladimir Zapolskiy @ 2016-06-24 22:02 UTC (permalink / raw)
  To: Andy Shevchenko, Lee Jones, Mika Westerberg; +Cc: linux-kernel

On 24.06.2016 11:28, Andy Shevchenko wrote:
> On Fri, 2016-06-24 at 03:11 +0300, Vladimir Zapolskiy wrote:
>> If kernel build configuration has enabled CONFIG_PM and unset
>> CONFIG_PM_SLEEP, then intel-lpss-pci.c and intel-lpss-acpi.c can not
>> be compiled due to a missing INTEL_LPSS_SLEEP_PM_OPS macro
>> declaration:
>>
>>   drivers/mfd/intel-lpss-pci.c:63:8: error: undefined identifier
>> 'INTEL_LPSS_SLEEP_PM_OPS'
>>   drivers/mfd/intel-lpss-pci.c:63:58: error: ‘INTEL_LPSS_SLEEP_PM_OPS’
>> undeclared here (not in a function)
> 
> And may I ask what ancient kernel you are using?
> 
> commit 47b91923ea41288751e83a5b080576085a831333
> Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> Date:   Mon Sep 14 11:32:47 2015 +0300
> 
>     mfd: intel-lpss: Fix build error when !CONFIG_PM_SLEEP

The original driver was backported to 4.1

Thanks for the reference to a fixup, I'll backport it as well.

Lee, please ignore this change.

--
With best wishes,
Vladimir

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

end of thread, other threads:[~2016-06-24 22:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-24  0:11 [PATCH] mfd: intel-lpss: fix compilation issue if PM_SLEEP is not set Vladimir Zapolskiy
2016-06-24  0:13 ` Vladimir Zapolskiy
2016-06-24  8:28 ` Andy Shevchenko
2016-06-24 22:02   ` Vladimir Zapolskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).