Commit 456a09dc authored by Thomas Bittermann's avatar Thomas Bittermann Committed by Linus Torvalds

[PATCH] kernel/time.c: add missing symbol exports

This patch adds 2 missing symbol exports: jiffies_to_timeval() and
timeval_to_jiffies().  The (not yet merged) dm-raid4-5 module will need
them, and they used to be indirectly exported by virtue of being inline
functions.

Commit 8b9365d7 ("[PATCH] Uninline
jiffies.h functions") uninlined them, and thus modules now need them
explicitly exported to use them.
Signed-off-by: default avatarThomas Bittermann <t.bittermann@online.de>
Acked-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Acked-by: default avatarIngo Molnar <mingo@elte.hu>
Acked-by: default avatarThomas Gleixner <tglx@linutronix.de>
Acked-by: default avatarjohn stultz <johnstul@us.ibm.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 8d00647f
...@@ -635,6 +635,7 @@ timeval_to_jiffies(const struct timeval *value) ...@@ -635,6 +635,7 @@ timeval_to_jiffies(const struct timeval *value)
(((u64)usec * USEC_CONVERSION + USEC_ROUND) >> (((u64)usec * USEC_CONVERSION + USEC_ROUND) >>
(USEC_JIFFIE_SC - SEC_JIFFIE_SC))) >> SEC_JIFFIE_SC; (USEC_JIFFIE_SC - SEC_JIFFIE_SC))) >> SEC_JIFFIE_SC;
} }
EXPORT_SYMBOL(timeval_to_jiffies);
void jiffies_to_timeval(const unsigned long jiffies, struct timeval *value) void jiffies_to_timeval(const unsigned long jiffies, struct timeval *value)
{ {
...@@ -649,6 +650,7 @@ void jiffies_to_timeval(const unsigned long jiffies, struct timeval *value) ...@@ -649,6 +650,7 @@ void jiffies_to_timeval(const unsigned long jiffies, struct timeval *value)
tv_usec /= NSEC_PER_USEC; tv_usec /= NSEC_PER_USEC;
value->tv_usec = tv_usec; value->tv_usec = tv_usec;
} }
EXPORT_SYMBOL(jiffies_to_timeval);
/* /*
* Convert jiffies/jiffies_64 to clock_t and back. * Convert jiffies/jiffies_64 to clock_t and back.
......
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