[U-Boot] [PATCH 12/26 v2][NEXT] ARM: add relocation support
Albert ARIBAUD
albert.aribaud at free.fr
Fri Sep 17 18:44:13 CEST 2010
Le 17/09/2010 16:54, Wolfgang Denk a écrit :
> Dear Albert ARIBAUD,
>
> In message<4C936823.1060802 at free.fr> you wrote:
>>
>>> init_fnc_t *init_sequence[] = {
>>
>> init_sequence is a constant, not an initialized variable, and thus
>> should have the 'const' qualifier.
>
> Actually it _is_ an initialized variable (which still may take a
> const).
Maybe we're having a terminology discrepancy here.
For me an initialized variable is a *variable*, i.e. intended to *vary*
over execution time, and which is initialized, i.e. set to a known
initial value; whereas a const has a value which does not vary over
execution time, and thus a const is not a variable.
In that sense, and as init_sequence does not, and should not, vary over
execution time, it is not a variable.
> Best regards,
>
> Wolfgang Denk
Amicalement,
--
Albert.
More information about the U-Boot
mailing list