From: Tobias Klauser <tklauser@distanz.ch>
To: Marek Vasut <marex@denx.de>
Cc: linux-kernel@vger.kernel.org, lftan@altera.com
Subject: Re: [PATCH] nios2: Fix unused variable warning
Date: Tue, 22 Sep 2015 17:22:14 +0200 [thread overview]
Message-ID: <20150922152214.GC31417@distanz.ch> (raw)
In-Reply-To: <1442637651-10694-1-git-send-email-marex@denx.de>
On 2015-09-19 at 06:40:51 +0200, Marek Vasut <marex@denx.de> wrote:
> Fix the following compiler splat by adding __maybe_unused annotation
> to the variable. Using this particular annotation has the least ugly
> impact on the code compared to using ifdeffery.
>
> arch/nios2/kernel/setup.c: In function 'nios2_boot_init':
> arch/nios2/kernel/setup.c:107:7: warning: unused variable 'cmdline_passed' [-Wunused-variable]
> char cmdline_passed[COMMAND_LINE_SIZE] = { 0, };
> ^
>
> Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Tobias Klauser <tklauser@distanz.ch>
next prev parent reply other threads:[~2015-09-22 15:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-19 4:40 Marek Vasut
2015-09-22 15:22 ` Tobias Klauser [this message]
2015-10-01 8:10 ` Ley Foon Tan
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=20150922152214.GC31417@distanz.ch \
--to=tklauser@distanz.ch \
--cc=lftan@altera.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marex@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
all inboxes | Powered by JetHome®