Peter Teoh wrote:
> Further to my earlier statement that either init.h is wrong, or the source
> codes are not cleanup, my personal guess is that init.h is not correct (this
> line - "Also note, that this data cannot be "const".")   This is because
> these __xxxxdata can be either constant or non-constant, and can also be
> only needed during initializaton -  independently.
> 
> Correct?
> 

No, the comment is correct. I just made a mistake...

__initdata(and __devinidata etc..) can't be mixed with const, because otherwise
the compiler will generate .init.data sections both with and without the
writeable attribute.

So we shoud use __devinitconst for const data.


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to