Bartlomiej Zolnierkiewicz wrote:
quoted text > 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
-
unsubscribe notice To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Messages in current thread:
Re: const vs __{dev}initdata , Jeff Garzik , (Tue Oct 23, 6:10 pm)