All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen/control: protect functions with CONFIG_HIBERNATE_CALLBACKS to avoid warning
@ 2013-07-15 14:24 ` Julien Grall
  0 siblings, 0 replies; 10+ messages in thread
From: Julien Grall @ 2013-07-15 14:24 UTC (permalink / raw)
  To: linux-arm-kernel

If CONFIG_HIBERNATE_CALLBACKS is not set gcc will issue warnings:
drivers/xen/manage.c:46:13: warning: 'xen_hvm_post_suspend' defined but not used [-Wunused-function]
drivers/xen/manage.c:52:13: warning: 'xen_pre_suspend' defined but not used [-Wunused-function]
drivers/xen/manage.c:59:13: warning: 'xen_post_suspend' defined but not used [-Wunused-function]

Signed-off-by: Julien Grall <julien.grall@linaro.org>
---
 drivers/xen/manage.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c
index 412b96c..7680276 100644
--- a/drivers/xen/manage.c
+++ b/drivers/xen/manage.c
@@ -36,6 +36,7 @@ enum shutdown_state {
 /* Ignore multiple shutdown requests. */
 static enum shutdown_state shutting_down = SHUTDOWN_INVALID;
 
+#ifdef CONFIG_HIBERNATE_CALLBACKS
 struct suspend_info {
 	int cancelled;
 	unsigned long arg; /* extra hypercall argument */
@@ -63,7 +64,6 @@ static void xen_post_suspend(int cancelled)
 	xen_mm_unpin_all();
 }
 
-#ifdef CONFIG_HIBERNATE_CALLBACKS
 static int xen_suspend(void *data)
 {
 	struct suspend_info *si = data;
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 10+ messages in thread
* [PATCH] xen/control: protect functions with CONFIG_HIBERNATE_CALLBACKS to avoid warning
@ 2013-07-15 14:24 Julien Grall
  0 siblings, 0 replies; 10+ messages in thread
From: Julien Grall @ 2013-07-15 14:24 UTC (permalink / raw)
  To: stefano.stabellini, konrad.wilk
  Cc: ian.campbell, patches, Julien Grall, linux-kernel, xen-devel,
	linux-arm-kernel

If CONFIG_HIBERNATE_CALLBACKS is not set gcc will issue warnings:
drivers/xen/manage.c:46:13: warning: 'xen_hvm_post_suspend' defined but not used [-Wunused-function]
drivers/xen/manage.c:52:13: warning: 'xen_pre_suspend' defined but not used [-Wunused-function]
drivers/xen/manage.c:59:13: warning: 'xen_post_suspend' defined but not used [-Wunused-function]

Signed-off-by: Julien Grall <julien.grall@linaro.org>
---
 drivers/xen/manage.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c
index 412b96c..7680276 100644
--- a/drivers/xen/manage.c
+++ b/drivers/xen/manage.c
@@ -36,6 +36,7 @@ enum shutdown_state {
 /* Ignore multiple shutdown requests. */
 static enum shutdown_state shutting_down = SHUTDOWN_INVALID;
 
+#ifdef CONFIG_HIBERNATE_CALLBACKS
 struct suspend_info {
 	int cancelled;
 	unsigned long arg; /* extra hypercall argument */
@@ -63,7 +64,6 @@ static void xen_post_suspend(int cancelled)
 	xen_mm_unpin_all();
 }
 
-#ifdef CONFIG_HIBERNATE_CALLBACKS
 static int xen_suspend(void *data)
 {
 	struct suspend_info *si = data;
-- 
1.7.10.4

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

end of thread, other threads:[~2013-07-15 15:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-15 14:24 [PATCH] xen/control: protect functions with CONFIG_HIBERNATE_CALLBACKS to avoid warning Julien Grall
2013-07-15 14:24 ` Julien Grall
2013-07-15 15:27 ` Konrad Rzeszutek Wilk
2013-07-15 15:27 ` Konrad Rzeszutek Wilk
2013-07-15 15:27   ` Konrad Rzeszutek Wilk
2013-07-15 15:47   ` Julien Grall
2013-07-15 15:49     ` Julien Grall
2013-07-15 15:49     ` [Xen-devel] " Julien Grall
2013-07-15 15:49       ` Julien Grall
  -- strict thread matches above, loose matches on Subject: below --
2013-07-15 14:24 Julien Grall

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.