From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 24 Jul 2017 20:43:58 -0400 Subject: [U-Boot] [U-Boot, v2, 06/14] powerpc: Remove unneccessary #ifdefs in reginfo In-Reply-To: <7bf94f97ca5a10cd1a9f6c34545d38cb01a40dfd.1499945943.git.christophe.leroy@c-s.fr> References: <7bf94f97ca5a10cd1a9f6c34545d38cb01a40dfd.1499945943.git.christophe.leroy@c-s.fr> Message-ID: <20170725004358.GO26163@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Jul 13, 2017 at 03:09:54PM +0200, Christophe Leroy wrote: > reginfo command is calling mpc8xx_reginfo(), mpc85xx_reginfo() > or mpc86xx_reginfo() based on CONFIG_ symbol. > As those 3 functions can't me defined at the same time, let's > rename them print_reginfo() to avoid the #ifdefs > The name is kept generic as it is not at all dependent on > powerpc arch and any other arch could want to also print > such information. > > In addition, as the Makefile compiles cmd/reginfo.c only when > CONFIG_CMD_REGINFO is set, there is no need to enclose the U_BOOT_CMD > definition inside a #ifdef CONFIG_CMD_REGINFO > > Lets all remove the #ifdefs around the U_BOOT_CMD as this > file is only compiled when CONFIG_CMD_REGINFO is defined > > Signed-off-by: Christophe Leroy Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: