From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Thu, 16 Jul 2015 09:01:43 +0200 Subject: [U-Boot] [RFC] lib/fdtdec: Fix compiling warning for debug In-Reply-To: <1436992006-32644-1-git-send-email-yorksun@freescale.com> References: <1436992006-32644-1-git-send-email-yorksun@freescale.com> Message-ID: <20150716090143.3e93c921@lilith> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello York, On Wed, 15 Jul 2015 13:26:46 -0700, York Sun wrote: > fdt_addr_t and fdt_size_t can be either 64-bit or 32-bit, depending > on the architecture. Change the type to phys_addr_t and phys_size_t. If the only reason for changing the type is to avoid warnings in debug() then I don't think this is the right approach (see my message re PRIu64). If, on the other hand, there is reason to believe the fdt_addr_t and fdt_size_t are wrongly defined and should be typedef'd or ~define's as phys_*_t, then the rationale for this should be exposed. Amicalement, -- Albert.