public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot, v2, 06/14] powerpc: Remove unneccessary #ifdefs in reginfo
Date: Mon, 24 Jul 2017 20:43:58 -0400	[thread overview]
Message-ID: <20170725004358.GO26163@bill-the-cat> (raw)
In-Reply-To: <7bf94f97ca5a10cd1a9f6c34545d38cb01a40dfd.1499945943.git.christophe.leroy@c-s.fr>

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 <christophe.leroy@c-s.fr>

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: <http://lists.denx.de/pipermail/u-boot/attachments/20170724/86d8b1c9/attachment.sig>

  reply	other threads:[~2017-07-25  0:43 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-13 13:09 [U-Boot] [PATCH v2 00/14] Cleanup for 8xx and other misc powerpc Christophe Leroy
2017-07-13 13:09 ` [U-Boot] [PATCH v2 01/14] powerpc, 8xx: Simplify brgclk calculation and remove get_brgclk() Christophe Leroy
2017-07-25  0:43   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-07-13 13:09 ` [U-Boot] [PATCH v2 02/14] powerpc: get rid of addr_probe() Christophe Leroy
2017-07-25  0:43   ` [U-Boot] [U-Boot,v2,02/14] " Tom Rini
2017-07-13 13:09 ` [U-Boot] [PATCH v2 03/14] powerpc, timer: Does 8xx specific actions in 8xx cpu_init Christophe Leroy
2017-07-25  0:43   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-07-13 13:09 ` [U-Boot] [PATCH v2 04/14] power, timer: reset TBL before TBU Christophe Leroy
2017-07-25  0:43   ` [U-Boot] [U-Boot,v2,04/14] " Tom Rini
2017-07-13 13:09 ` [U-Boot] [PATCH v2 05/14] powerpc: move set_msr() and get_msr() into .h Christophe Leroy
2017-07-25  0:43   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-07-13 13:09 ` [U-Boot] [PATCH v2 06/14] powerpc: Remove unneccessary #ifdefs in reginfo Christophe Leroy
2017-07-25  0:43   ` Tom Rini [this message]
2017-07-13 13:09 ` [U-Boot] [PATCH v2 07/14] Convert CONFIG_CMD_REGINFO to Kconfig Christophe Leroy
2017-07-25  0:44   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-07-31 16:13     ` Christophe LEROY
2017-08-01  1:35       ` Tom Rini
2017-07-13 13:09 ` [U-Boot] [PATCH v2 08/14] powerpc, 8xx: Simplifying check_CPU() Christophe Leroy
2017-07-25  0:44   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-07-13 13:10 ` [U-Boot] [PATCH v2 09/14] powerpc, 8xx: Move cache function into C files Christophe Leroy
2017-07-25  0:44   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-07-13 13:10 ` [U-Boot] [PATCH v2 10/14] powerpc, 8xx: move get_immr() into C Christophe Leroy
2017-07-25  0:44   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-07-13 13:10 ` [U-Boot] [PATCH v2 11/14] powerpc, 8xx: move cache helper " Christophe Leroy
2017-07-25  0:44   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-07-13 13:10 ` [U-Boot] [PATCH v2 12/14] powerpc: move get_pvr() and get_svr() " Christophe Leroy
2017-07-25  0:44   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-07-13 13:10 ` [U-Boot] [PATCH v2 13/14] powerpc, 8xx: fix missing function declarations Christophe Leroy
2017-07-25  0:44   ` [U-Boot] [U-Boot, v2, " Tom Rini
2017-07-13 13:10 ` [U-Boot] [PATCH v2 14/14] powerpc: Remove 8260 remainders Christophe Leroy
2017-07-25  0:44   ` [U-Boot] [U-Boot,v2,14/14] " Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170725004358.GO26163@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox