From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Fri, 17 Sep 2010 18:44:13 +0200 Subject: [U-Boot] [PATCH 12/26 v2][NEXT] ARM: add relocation support In-Reply-To: <20100917145430.4047615242D@gemini.denx.de> References: <4C62E8C3.8050006@denx.de> <1284721853-8298-1-git-send-email-hs@denx.de> <1284721853-8298-2-git-send-email-hs@denx.de> <1284721853-8298-3-git-send-email-hs@denx.de> <1284721853-8298-4-git-send-email-hs@denx.de> <1284721853-8298-5-git-send-email-hs@denx.de> <1284721853-8298-6-git-send-email-hs@denx.de> <1284721853-8298-7-git-send-email-hs@denx.de> <1284721853-8298-8-git-send-email-hs@denx.de> <1284721853-8298-9-git-send-email-hs@denx.de> <1284721853-8298-10-git-send-email-hs@denx.de> <1284721853-8298-11-git-send-email-hs@denx.de> <1284721853-8298-12-git-send-email-hs@denx.de> <1284721853-8298-13-git-send-email-hs@denx.de> <4C936823.1060802@free.fr> <20100917145430.4047615242D@gemini.denx.de> Message-ID: <4C939ADD.5090009@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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.