lkml.org 
[lkml]   [2007]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: const vs __{dev}initdata
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-10-24 00:13    [W:0.044 / U:0.900 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site