+ fix-miscompiling-with-gcc-45-finline-functions.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>

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

Signed-off-by: Dzianis Kahanovich <mahatma@xxxxx>
Cc: Avi Kivity <avi@xxxxxxxxxx>
Cc: Marcelo Tosatti <mtosatti@xxxxxxxxxx>
Cc: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxx>
Cc: Hans Verkuil <hverkuil@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 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@xxxxxxxxxxxxxx are

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

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux