[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is the reason for "section type conflict"?



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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ