[U-Boot] [PATCH 12/26 v2][NEXT] ARM: add relocation support

Albert ARIBAUD
2010-09-17T16:44:13Z

Le 17/09/2010 16:54, Wolfgang Denk a ?crit :
> Dear Albert ARIBAUD,
>
> In message<4C936823.1060802@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.