Commit af3b5628 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman Committed by Linus Torvalds

time: don't inline EXPORT_SYMBOL functions

How is the compiler even handling exported functions that are marked
inline? Anyway, these shouldn't be inline because of that, so remove
that marking.

Based on a larger patch by Mark Charlebois to get LLVM to build the
kernel.

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Mark Charlebois <mcharleb@qualcomm.com>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: hank <pyu@redhat.com>
Cc: John Stultz <john.stultz@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f3d8496e
...@@ -240,7 +240,7 @@ EXPORT_SYMBOL(current_fs_time); ...@@ -240,7 +240,7 @@ EXPORT_SYMBOL(current_fs_time);
* Avoid unnecessary multiplications/divisions in the * Avoid unnecessary multiplications/divisions in the
* two most common HZ cases: * two most common HZ cases:
*/ */
inline unsigned int jiffies_to_msecs(const unsigned long j) unsigned int jiffies_to_msecs(const unsigned long j)
{ {
#if HZ <= MSEC_PER_SEC && !(MSEC_PER_SEC % HZ) #if HZ <= MSEC_PER_SEC && !(MSEC_PER_SEC % HZ)
return (MSEC_PER_SEC / HZ) * j; return (MSEC_PER_SEC / HZ) * j;
...@@ -256,7 +256,7 @@ inline unsigned int jiffies_to_msecs(const unsigned long j) ...@@ -256,7 +256,7 @@ inline unsigned int jiffies_to_msecs(const unsigned long j)
} }
EXPORT_SYMBOL(jiffies_to_msecs); EXPORT_SYMBOL(jiffies_to_msecs);
inline unsigned int jiffies_to_usecs(const unsigned long j) unsigned int jiffies_to_usecs(const unsigned long j)
{ {
#if HZ <= USEC_PER_SEC && !(USEC_PER_SEC % HZ) #if HZ <= USEC_PER_SEC && !(USEC_PER_SEC % HZ)
return (USEC_PER_SEC / HZ) * j; return (USEC_PER_SEC / HZ) * j;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment