Messages in this thread | | | Date | Sun, 13 Jan 2008 08:30:24 +0100 | From | Sam Ravnborg <> | Subject | Re: [PATCH 0/4] __cpuinitconst and __devinitconst |
| |
> > +#ifdef CONFIG_HOTPLUG > +#define DEV_KEEP(sec) > +#define DEV_DISCARD(sec) *(.dev##sec) > +#else > +#define DEV_KEEP(sec) *(.dev##sec) > +#define DEV_DISCARD(sec) > +#endif > + > +#ifdef CONFIG_HOTPLUG_CPU > +#define CPU_KEEP(sec) > +#define CPU_DISCARD(sec) *(.cpu##sec) > +#else > +#define CPU_KEEP(sec) *(.cpu##sec) > +#define CPU_DISCARD(sec) > +#endif > + > +#if defined(CONFIG_MEMORY_HOTPLUG) || defined(CONFIG_ACPI_HOTPLUG_MEMORY) \ > + || defined(CONFIG_ACPI_HOTPLUG_MEMORY_MODULE) > +#define MEM_KEEP(sec) > +#define MEM_DISCARD(sec) *(.mem##sec) > +#else > +#define MEM_KEEP(sec) *(.mem##sec) > +#define MEM_DISCARD(sec) > +#endif
I inversed it in the ifdef's above. And I found another small buglet too. I hope to post a complete solution later today.
Sam
| |