public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix miscompiling with GCC 4.5 -finline-functions
@ 2011-01-04 15:17 Dzianis Kahanovich
  2011-01-05 23:02 ` Andrew Morton
  0 siblings, 1 reply; 6+ messages in thread
From: Dzianis Kahanovich @ 2011-01-04 15:17 UTC (permalink / raw)
  To: linux-kernel

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>
---
--- a/arch/x86/kvm/vmx.c
+++ b/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;

--- a/drivers/media/radio/radio-aimslab.c
+++ b/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);
--
WBR, Dzianis Kahanovich AKA Denis Kaganovich, http://mahatma.bspu.unibel.by/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-01-08  1:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-04 15:17 [PATCH] fix miscompiling with GCC 4.5 -finline-functions Dzianis Kahanovich
2011-01-05 23:02 ` Andrew Morton
2011-01-06 17:42   ` Dzianis Kahanovich
2011-01-06 18:07     ` Arnaud Lacombe
2011-01-08  1:02       ` mahatma
2011-01-08  1:05       ` Denis Kaganovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox