linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] xen: fix building on ARM with CONFIG_HIBERNATE_CALLBACKS
@ 2015-05-19 12:58 Arnd Bergmann
  2015-05-19 13:57 ` Boris Ostrovsky
  0 siblings, 1 reply; 5+ messages in thread
From: Arnd Bergmann @ 2015-05-19 12:58 UTC (permalink / raw)
  To: Boris Ostrovsky
  Cc: David Vrabel, Stefano Stabellini, xen-devel, linux-arm-kernel,
	linux-kernel

A recent bug fix for x86 broke Xen on ARM for the case that
CONFIG_HIBERNATE_CALLBACKS is enabled:

drivers/built-in.o: In function `do_suspend':
/git/arm-soc/drivers/xen/manage.c:134: undefined reference to `xen_arch_suspend'
drivers/built-in.o:(.debug_addr+0xc3f4): undefined reference to `xen_arch_suspend'

It is not clear to me what needs to be done here, but this
patch avoids the build error by adding a stub for the
missing function.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 2b953a5e99 ("xen: Suspend ticks on all CPUs during suspend")
---
Please review, and submit an alternate patch if this one turns
out to be incorrect.

diff --git a/include/xen/xen-ops.h b/include/xen/xen-ops.h
index 0ce4f32017ea..034dc8acd47e 100644
--- a/include/xen/xen-ops.h
+++ b/include/xen/xen-ops.h
@@ -13,7 +13,13 @@ void xen_arch_post_suspend(int suspend_cancelled);
 
 void xen_timer_resume(void);
 void xen_arch_resume(void);
+#ifdef CONFIG_X86
 void xen_arch_suspend(void);
+#else
+static inline void xen_arch_suspend(void)
+{
+}
+#endif
 
 void xen_resume_notifier_register(struct notifier_block *nb);
 void xen_resume_notifier_unregister(struct notifier_block *nb);


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

* Re: [PATCH] xen: fix building on ARM with CONFIG_HIBERNATE_CALLBACKS
  2015-05-19 12:58 [PATCH] xen: fix building on ARM with CONFIG_HIBERNATE_CALLBACKS Arnd Bergmann
@ 2015-05-19 13:57 ` Boris Ostrovsky
  2015-05-19 14:36   ` Arnd Bergmann
  0 siblings, 1 reply; 5+ messages in thread
From: Boris Ostrovsky @ 2015-05-19 13:57 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: David Vrabel, Stefano Stabellini, xen-devel, linux-arm-kernel,
	linux-kernel

On 05/19/2015 08:58 AM, Arnd Bergmann wrote:
> A recent bug fix for x86 broke Xen on ARM for the case that
> CONFIG_HIBERNATE_CALLBACKS is enabled:
>
> drivers/built-in.o: In function `do_suspend':
> /git/arm-soc/drivers/xen/manage.c:134: undefined reference to `xen_arch_suspend'
> drivers/built-in.o:(.debug_addr+0xc3f4): undefined reference to `xen_arch_suspend'
>
> It is not clear to me what needs to be done here, but this
> patch avoids the build error by adding a stub for the
> missing function.

This is already fixed in Xen staging tree.

Thanks.
-boris

>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Fixes: 2b953a5e99 ("xen: Suspend ticks on all CPUs during suspend")
> ---
> Please review, and submit an alternate patch if this one turns
> out to be incorrect.
>
> diff --git a/include/xen/xen-ops.h b/include/xen/xen-ops.h
> index 0ce4f32017ea..034dc8acd47e 100644
> --- a/include/xen/xen-ops.h
> +++ b/include/xen/xen-ops.h
> @@ -13,7 +13,13 @@ void xen_arch_post_suspend(int suspend_cancelled);
>   
>   void xen_timer_resume(void);
>   void xen_arch_resume(void);
> +#ifdef CONFIG_X86
>   void xen_arch_suspend(void);
> +#else
> +static inline void xen_arch_suspend(void)
> +{
> +}
> +#endif
>   
>   void xen_resume_notifier_register(struct notifier_block *nb);
>   void xen_resume_notifier_unregister(struct notifier_block *nb);
>


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

* Re: [PATCH] xen: fix building on ARM with CONFIG_HIBERNATE_CALLBACKS
  2015-05-19 13:57 ` Boris Ostrovsky
@ 2015-05-19 14:36   ` Arnd Bergmann
  2015-05-19 14:49     ` Boris Ostrovsky
  0 siblings, 1 reply; 5+ messages in thread
From: Arnd Bergmann @ 2015-05-19 14:36 UTC (permalink / raw)
  To: Boris Ostrovsky
  Cc: David Vrabel, Stefano Stabellini, xen-devel, linux-arm-kernel,
	linux-kernel

On Tuesday 19 May 2015 09:57:19 Boris Ostrovsky wrote:
> On 05/19/2015 08:58 AM, Arnd Bergmann wrote:
> > A recent bug fix for x86 broke Xen on ARM for the case that
> > CONFIG_HIBERNATE_CALLBACKS is enabled:
> >
> > drivers/built-in.o: In function `do_suspend':
> > /git/arm-soc/drivers/xen/manage.c:134: undefined reference to `xen_arch_suspend'
> > drivers/built-in.o:(.debug_addr+0xc3f4): undefined reference to `xen_arch_suspend'
> >
> > It is not clear to me what needs to be done here, but this
> > patch avoids the build error by adding a stub for the
> > missing function.
> 
> This is already fixed in Xen staging tree.

I see. Any chance to get that fix into linux-next soon?

	Arnd

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

* Re: [PATCH] xen: fix building on ARM with CONFIG_HIBERNATE_CALLBACKS
  2015-05-19 14:36   ` Arnd Bergmann
@ 2015-05-19 14:49     ` Boris Ostrovsky
  2015-05-19 15:15       ` David Vrabel
  0 siblings, 1 reply; 5+ messages in thread
From: Boris Ostrovsky @ 2015-05-19 14:49 UTC (permalink / raw)
  To: Arnd Bergmann, David Vrabel
  Cc: Stefano Stabellini, xen-devel, linux-arm-kernel, linux-kernel

On 05/19/2015 10:36 AM, Arnd Bergmann wrote:
> On Tuesday 19 May 2015 09:57:19 Boris Ostrovsky wrote:
>> On 05/19/2015 08:58 AM, Arnd Bergmann wrote:
>>> A recent bug fix for x86 broke Xen on ARM for the case that
>>> CONFIG_HIBERNATE_CALLBACKS is enabled:
>>>
>>> drivers/built-in.o: In function `do_suspend':
>>> /git/arm-soc/drivers/xen/manage.c:134: undefined reference to `xen_arch_suspend'
>>> drivers/built-in.o:(.debug_addr+0xc3f4): undefined reference to `xen_arch_suspend'
>>>
>>> It is not clear to me what needs to be done here, but this
>>> patch avoids the build error by adding a stub for the
>>> missing function.
>> This is already fixed in Xen staging tree.
> I see. Any chance to get that fix into linux-next soon?


David, are you going to send pull request to Linus before rc5?

-boris

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

* Re: [PATCH] xen: fix building on ARM with CONFIG_HIBERNATE_CALLBACKS
  2015-05-19 14:49     ` Boris Ostrovsky
@ 2015-05-19 15:15       ` David Vrabel
  0 siblings, 0 replies; 5+ messages in thread
From: David Vrabel @ 2015-05-19 15:15 UTC (permalink / raw)
  To: Boris Ostrovsky, Arnd Bergmann
  Cc: Stefano Stabellini, xen-devel, linux-arm-kernel, linux-kernel

On 19/05/15 15:49, Boris Ostrovsky wrote:
> On 05/19/2015 10:36 AM, Arnd Bergmann wrote:
>> On Tuesday 19 May 2015 09:57:19 Boris Ostrovsky wrote:
>>> On 05/19/2015 08:58 AM, Arnd Bergmann wrote:
>>>> A recent bug fix for x86 broke Xen on ARM for the case that
>>>> CONFIG_HIBERNATE_CALLBACKS is enabled:
>>>>
>>>> drivers/built-in.o: In function `do_suspend':
>>>> /git/arm-soc/drivers/xen/manage.c:134: undefined reference to
>>>> `xen_arch_suspend'
>>>> drivers/built-in.o:(.debug_addr+0xc3f4): undefined reference to
>>>> `xen_arch_suspend'
>>>>
>>>> It is not clear to me what needs to be done here, but this
>>>> patch avoids the build error by adding a stub for the
>>>> missing function.
>>> This is already fixed in Xen staging tree.
>> I see. Any chance to get that fix into linux-next soon?
> 
> 
> David, are you going to send pull request to Linus before rc5?

Yes.

David

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

end of thread, other threads:[~2015-05-19 15:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-19 12:58 [PATCH] xen: fix building on ARM with CONFIG_HIBERNATE_CALLBACKS Arnd Bergmann
2015-05-19 13:57 ` Boris Ostrovsky
2015-05-19 14:36   ` Arnd Bergmann
2015-05-19 14:49     ` Boris Ostrovsky
2015-05-19 15:15       ` David Vrabel

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).