From: Rusty Russell <rusty@rustcorp.com.au>
To: Ralf Baechle <ralf@linux-mips.org>, David Howells <dhowells@redhat.com>
Cc: Jonas Gorski <jonas.gorski@gmail.com>,
Linus Torvalds <torvalds@linux-foundation.org>,
linux-kernel@vger.kernel.org, linux-mips@linux-mips.org
Subject: Re: [PATCH] MIPS: Fix module.c build for 32 bit
Date: Mon, 20 Aug 2012 12:19:36 +0930 [thread overview]
Message-ID: <87boi65lbz.fsf@rustcorp.com.au> (raw)
In-Reply-To: <20120814151345.GB30856@linux-mips.org>
On Tue, 14 Aug 2012 17:13:45 +0200, Ralf Baechle <ralf@linux-mips.org> wrote:
> Fixes build failure introduced by "Make most arch asm/module.h files use
> asm-generic/module.h" by moving all the RELA processing code to a
> separate file to be used only for RELA processing on 64-bit kernels.
>
> CC arch/mips/kernel/module.o
> arch/mips/kernel/module.c:250:14: error: 'reloc_handlers_rela' defined but not
> used [-Werror=unused-variable]
> cc1: all warnings being treated as errors
>
> make[6]: *** [arch/mips/kernel/module.o] Error 1
>
> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
>
> ---
> This is bigger than Jonas' suggested patch but far less #ifdefy.
> A minimal fix would be to add __maybe_unused to the definition of
> reloc_handlers_rela but imho __maybe_unused should be avoided where
> possible.
>
> I tested this on top of today's -next but ideally to keep bisectability
> it should be applied early in the series before CONFIG_MODULES_USE_ELF_RELA
> is introduced which would require trivial tweaking arch/mips/kernel/Makefile
> tweaking.
OK, as suggested, applied as a separate patch (with a bit of tweaking),
and then modified David's patch to flip the condition in the Makefile.
This will sit in linux-next another cycle.
Cheers,
Rusty.
next prev parent reply other threads:[~2012-08-20 5:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-07 9:41 [PATCH] MIPS: fix module.c build for 32 bit Jonas Gorski
2012-08-13 15:39 ` David Howells
2012-08-14 0:12 ` Rusty Russell
2012-08-14 14:08 ` David Howells
2012-08-14 15:13 ` [PATCH] MIPS: Fix " Ralf Baechle
2012-08-14 15:47 ` David Howells
2012-08-20 2:49 ` Rusty Russell [this message]
2012-08-15 3:21 ` [PATCH] MIPS: fix " Rusty Russell
2012-08-15 8:34 ` David Howells
2012-08-16 10:40 ` Rusty Russell
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=87boi65lbz.fsf@rustcorp.com.au \
--to=rusty@rustcorp.com.au \
--cc=dhowells@redhat.com \
--cc=jonas.gorski@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
--cc=torvalds@linux-foundation.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).