Re: const vs __{dev}initdata

From: Jeff Garzik
Date: Tue Oct 23 2007 - 18:10:39 EST


Bartlomiej Zolnierkiewicz wrote:
Hi,

It seems that const cannot be (officialy) mixed with __{dev}initdata,

include/linux/init.h:
...
*
* Also note, that this data cannot be "const".
*/
...

[ BTW Greg: this doesn't seem to be mentioned in LDD3. ]

Any reason for this limitation (other than not having .init.rodata section
and __const__{dev}initdata tag)? There are places where we really would like
to have both, i.e. struct ide_port_info in drivers/ide.

Thank you for asking this question... we really do need a solution for this.

As you point out, there are many valid cases for both const and initdata.

Jeff



-
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/