Re: [PATCH #repost] SCSI: megaraid, fix suspend/resume sections

From: Jiri Slaby
Date: Fri May 02 2008 - 11:01:26 EST


James Bottomley napsal(a):
could we not at least make the machinery do something vaguely
useful and expand it to confine the pm routines to sections which can be
discarded if CONFIG_PM is n?
a) it would need to be discarded at link-time, ideally.

Yes, the same way the exit sections are: as linker discards. We also
have the mechanics for runtime discards which is useful for modules

No it doesn't, exits are discarded at runtime only. At least on x86.
--
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/