From: Anatolij Gustschin <agust@denx.de>
To: Brian Norris <computersforpeace@gmail.com>
Cc: Gerhard Sittig <gsi@denx.de>, linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH v2] powerpc/mpc512x: remove unnecessary #if
Date: Wed, 30 Oct 2013 23:12:10 +0100 [thread overview]
Message-ID: <20131030231210.32778fbe@crub> (raw)
In-Reply-To: <1381513058-14164-1-git-send-email-computersforpeace@gmail.com>
On Fri, 11 Oct 2013 10:37:38 -0700
Brian Norris <computersforpeace@gmail.com> wrote:
> Several functions are only ever referenced locally, so make them static.
> Of those functions, many of them are protected by an #if. However, the
> code which can compile fine in either case.
>
> Now that (1) the unneeded code is marked 'static' and (2) the code is
> only used under a C 'if (IS_ENABLED(CONFIG_FB_FSL_DIU))', the compiler
> can automatically remove the unneeded code, and we don't need the #if or
> the empty stub functions.
>
> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
> ---
> v2: left out a diff I was holding locally (to remove an #if/#endif
> completely). Sorry for the noise.
>
> Based off of Gerhard Sittig's patch:
> powerpc/mpc512x: silence build warning upon disabled DIU
>
> Compile-tested with CONFIG_FB_FSL_DIU=n
>
> arch/powerpc/platforms/512x/mpc512x_shared.c | 21 +++++++--------------
> arch/powerpc/sysdev/fsl_soc.h | 3 ---
> 2 files changed, 7 insertions(+), 17 deletions(-)
Applied, thanks!
Anatolij
prev parent reply other threads:[~2013-10-30 22:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-11 17:32 [PATCH] powerpc/mpc512x: remove unnecessary #if Brian Norris
2013-10-11 17:37 ` Brian Norris
2013-10-11 17:37 ` [PATCH v2] " Brian Norris
2013-10-30 22:12 ` Anatolij Gustschin [this message]
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=20131030231210.32778fbe@crub \
--to=agust@denx.de \
--cc=computersforpeace@gmail.com \
--cc=gsi@denx.de \
--cc=linuxppc-dev@lists.ozlabs.org \
/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;
as well as URLs for NNTP newsgroup(s).