From: Wolfgang Denk Date: Thu, 10 Jul 2008 11:46:03 +0200 Subject: [U-Boot-Users] [PATCH] ppc4xx: Fix include sequence in 4xx_pcie.c In-Reply-To: Your message of "Thu, 10 Jul 2008 11:38:52 +0200." <1215682732-2051-1-git-send-email-sr@denx.de> Message-ID: <20080710094603.5DC24242FF@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <1215682732-2051-1-git-send-email-sr@denx.de> you wrote: > This patch now moves common.h to the top of the inlcude list. This > is needed for boards with CONFIG_PHYS_64BIT set (e.g. katmai), so that > the phys_size_t/phys_addr_t are defined to the correct size in this > driver. > > Signed-off-by: Stefan Roese > --- > cpu/ppc4xx/4xx_pcie.c | 6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) Hm. I think we have a serious problem when the correctness of the code depends on the include order. It seems that include/asm-ppc/types.h depends on CONFIG_PHYS_64BIT, so include/asm-ppc/types.h must make sure this variable is set correctly, i. e. we should include common.h there. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de You don't need a weatherman to know which way the wind blows. - Bob Dylan