All of lore.kernel.org
 help / color / mirror / Atom feed
* + fix-miscompiling-with-gcc-45-finline-functions.patch added to -mm tree
@ 2011-01-05 23:02 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2011-01-05 23:02 UTC (permalink / raw)
  To: mm-commits; +Cc: mahatma, avi, hverkuil, mahatma, mchehab, mtosatti


The patch titled
     fix miscompiling with GCC 4.5 -finline-functions
has been added to the -mm tree.  Its filename is
     fix-miscompiling-with-gcc-45-finline-functions.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: fix miscompiling with GCC 4.5 -finline-functions
From: Dzianis Kahanovich <mahatma@bspu.unibel.by>

Fixing broken automatic inlining for GCC 4.5+  (breaks build with
-finline-functions or -O3 on x86_*).

Signed-off-by: Dzianis Kahanovich <mahatma@eu.by>
Cc: Avi Kivity <avi@redhat.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 arch/x86/kvm/vmx.c                  |    2 +-
 drivers/media/radio/radio-aimslab.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff -puN arch/x86/kvm/vmx.c~fix-miscompiling-with-gcc-45-finline-functions arch/x86/kvm/vmx.c
--- a/arch/x86/kvm/vmx.c~fix-miscompiling-with-gcc-45-finline-functions
+++ a/arch/x86/kvm/vmx.c
@@ -569,7 +569,7 @@ static inline void ept_sync_individual_a
 	}
 }
 
-static unsigned long vmcs_readl(unsigned long field)
+static noinline unsigned long vmcs_readl(unsigned long field)
 {
 	unsigned long value = 0;
 
diff -puN drivers/media/radio/radio-aimslab.c~fix-miscompiling-with-gcc-45-finline-functions drivers/media/radio/radio-aimslab.c
--- a/drivers/media/radio/radio-aimslab.c~fix-miscompiling-with-gcc-45-finline-functions
+++ a/drivers/media/radio/radio-aimslab.c
@@ -71,7 +71,7 @@ static struct rtrack rtrack_card;
 
 /* local things */
 
-static void sleep_delay(long n)
+static noinline void sleep_delay(long n)
 {
 	/* Sleep nicely for 'n' uS */
 	int d = n / msecs_to_jiffies(1000);
_

Patches currently in -mm which might be from mahatma@bspu.unibel.by are

fix-miscompiling-with-gcc-45-finline-functions.patch
fix-miscompiling-with-gcc-45-finline-functions-fix.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-01-05 23:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-05 23:02 + fix-miscompiling-with-gcc-45-finline-functions.patch added to -mm tree akpm

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.