Skip to contentSkip to conversation

Inconsistent patches in xen/stable-2.6.32.x

PATCH M A Young 2 participants 2 messages May 3, 2011 – May 4, 2011

Subsystems (2)
lore
Share & tools
lore

M A Young

author
#0 lore raw

I am trying to compile a kernel based on xen/stable-2.6.32.x and am running into a compile problem, which I think is due to the combination of the following two patches
http://git.kernel.org/?p=linux/kernel/git/jeremy/xen.git;a=commit;h=5473680bdedb7a62e641970119e6e9381a8d80f4
which adds
.suspend = netfront_suspend,
to a xenbus_driver structure calling the routine
static int netfront_suspend(struct xenbus_device *dev, pm_message_t state)
and
http://git.kernel.org/?p=linux/kernel/git/jeremy/xen.git;a=commit;h=cfb2480c92131e66d1fda9d928303ce4d41e6b7c
which alters the definition of suspend by replacing
int (*suspend)(struct xenbus_device *dev, pm_message_t state);
with
int (*suspend)(struct xenbus_device *dev);
and the compiler I am using is sufficiently fussy to report this as an error.

I think we need the attached patch to make things consistent again.

drivers/net/xen-netfront.c.new renamed from drivers/net/xen-netfront.c +1 -1
@@ -1293,7 +1293,7 @@
 	info->rx.sring = NULL;
 }
 
-static int netfront_suspend(struct xenbus_device *dev, pm_message_t state)
+static int netfront_suspend(struct xenbus_device *dev)
 {
 	struct netfront_info *info = dev_get_drvdata(&dev->dev);
 	struct hrtimer *timer = &info->smart_poll.timer;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Acked-by
#1 lore raw
Quoted 17 lines · M A Young

I am trying to compile a kernel based on xen/stable-2.6.32.x and am running into a compile problem, which I think is due to the combination of the following two patches
http://git.kernel.org/?p=linux/kernel/git/jeremy/xen.git;a=commit;h=5473680bdedb7a62e641970119e6e9381a8d80f4
which adds
.suspend = netfront_suspend,
to a xenbus_driver structure calling the routine
static int netfront_suspend(struct xenbus_device *dev, pm_message_t state) and
http://git.kernel.org/?p=linux/kernel/git/jeremy/xen.git;a=commit;h=cfb2480c92131e66d1fda9d928303ce4d41e6b7c
which alters the definition of suspend by replacing
int (*suspend)(struct xenbus_device *dev, pm_message_t state); with
int (*suspend)(struct xenbus_device *dev);
and the compiler I am using is sufficiently fussy to report this as an error.

Quoted 1 line

I think we need the attached patch to make things consistent again.

Agreed. This is because upstream netfront doesn't have the suspend callback because smartpoll was never upstreamed and this wasn't noticed when the upstream patch was backported..

Quoted 1 line

On the other hand maybe we should just tear smartpoll mode out of the 2.6.32.x tree? It's broken, disabled for ages and noone appears to be interested in fixing it.

Ian.