All of
 help / color / mirror / Atom feed
From: Helge Deller <>
	James Bottomley <>,
	John David Anglin <>
Subject: [PATCH] parisc: disable -mlong-calls compiler option for kernel modules
Date: Tue, 23 Apr 2013 22:20:11 +0200	[thread overview]
Message-ID: <> (raw)

commit 87622023a2071f81037c92d34ab20ed062e53ea5
Author: Helge Deller <>
Date:   Tue Apr 23 15:59:45 2013 +0200

parisc: disable -mlong-calls compiler option for kernel modules

CONFIG_MLONGCALLS was introduced in commit
ec758f98328da3eb933a25dc7a2eed01ef44d849 to overcome linker issues when linking
huge linux kernels (e.g. with many modules linked in).

But in the kernel module loader there is no support yet for the new
relocation types, which is why modules built with -mlong-calls can't be
Furthermore, for modules long calls are not really necessary, since we already use
stub sections which resolve long distance calls.

So, let's just disable this compiler option when compiling kernel

Signed-off-by: Helge Deller <>

diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile
index 01d95e2..c9259b5 100644
--- a/arch/parisc/Makefile
+++ b/arch/parisc/Makefile
@@ -65,8 +65,10 @@ ifndef CONFIG_FUNCTION_TRACER
 # Use long jumps instead of long branches (needed if your linker fails to
-# link a too big vmlinux executable)
-cflags-$(CONFIG_MLONGCALLS)	+= -mlong-calls
+# link a too big vmlinux executable). Not enabled for building modules.
+KBUILD_CFLAGS_KERNEL += -mlong-calls
 # select which processor to optimise for
 cflags-$(CONFIG_PA7100)		+= -march=1.1 -mschedule=7100

                 reply	other threads:[~2013-04-23 20:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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:

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

  git send-email \ \ \ \ \ \

* 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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.