Re: linux-next: build failure after merge of the driver-core tree

From: Kay Sievers
Date: Wed Jan 04 2012 - 19:02:13 EST


On Thu, Jan 5, 2012 at 00:48, Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> wrote:

> Kay, Greg, any hints would be nice. ÂThe tip tree commit is adding this:
>
> bool cpu_is_hotpluggable(unsigned cpu)
> {
> Â Â Â Âstruct sys_device *dev = get_cpu_sysdev(cpu);
> Â Â Â Âreturn dev && container_of(dev, struct cpu, sysdev)->hotpluggable;
> }
>
> and, of course, all the sys_device stuff has now gone ...
>
> So is this correct?
>
> bool cpu_is_hotpluggable(unsigned cpu)
> {
> Â Â Â Âstruct device *dev = get_cpu_device(cpu);
> Â Â Â Âreturn dev && container_of(dev, struct cpu, dev)->hotpluggable;
> }

Yes, that look like the right pattern.

Stephen, thanks a lot for your help here, it's very much appreciated.
I know we cause a lot of trouble every other year. :)

Thanks,
Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/