aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/futex.c11
-rw-r--r--kernel/sysctl_check.c1
-rw-r--r--kernel/time/tick-broadcast.c2
-rw-r--r--kernel/time/tick-sched.c2
-rw-r--r--kernel/timer.c2
5 files changed, 8 insertions, 10 deletions
diff --git a/kernel/futex.c b/kernel/futex.c
index 32710451dc20..9dc591ab681a 100644
--- a/kernel/futex.c
+++ b/kernel/futex.c
@@ -181,8 +181,8 @@ static inline int match_futex(union futex_key *key1, union futex_key *key2)
181 * For other futexes, it points to &current->mm->mmap_sem and 181 * For other futexes, it points to &current->mm->mmap_sem and
182 * caller must have taken the reader lock. but NOT any spinlocks. 182 * caller must have taken the reader lock. but NOT any spinlocks.
183 */ 183 */
184int get_futex_key(u32 __user *uaddr, struct rw_semaphore *fshared, 184static int get_futex_key(u32 __user *uaddr, struct rw_semaphore *fshared,
185 union futex_key *key) 185 union futex_key *key)
186{ 186{
187 unsigned long address = (unsigned long)uaddr; 187 unsigned long address = (unsigned long)uaddr;
188 struct mm_struct *mm = current->mm; 188 struct mm_struct *mm = current->mm;
@@ -268,14 +268,13 @@ int get_futex_key(u32 __user *uaddr, struct rw_semaphore *fshared,
268 } 268 }
269 return err; 269 return err;
270} 270}
271EXPORT_SYMBOL_GPL(get_futex_key);
272 271
273/* 272/*
274 * Take a reference to the resource addressed by a key. 273 * Take a reference to the resource addressed by a key.
275 * Can be called while holding spinlocks. 274 * Can be called while holding spinlocks.
276 * 275 *
277 */ 276 */
278inline void get_futex_key_refs(union futex_key *key) 277static void get_futex_key_refs(union futex_key *key)
279{ 278{
280 if (key->both.ptr == 0) 279 if (key->both.ptr == 0)
281 return; 280 return;
@@ -288,13 +287,12 @@ inline void get_futex_key_refs(union futex_key *key)
288 break; 287 break;
289 } 288 }
290} 289}
291EXPORT_SYMBOL_GPL(get_futex_key_refs);
292 290
293/* 291/*
294 * Drop a reference to the resource addressed by a key. 292 * Drop a reference to the resource addressed by a key.
295 * The hash bucket spinlock must not be held. 293 * The hash bucket spinlock must not be held.
296 */ 294 */
297void drop_futex_key_refs(union futex_key *key) 295static void drop_futex_key_refs(union futex_key *key)
298{ 296{
299 if (!key->both.ptr) 297 if (!key->both.ptr)
300 return; 298 return;
@@ -307,7 +305,6 @@ void drop_futex_key_refs(union futex_key *key)
307 break; 305 break;
308 } 306 }
309} 307}
310EXPORT_SYMBOL_GPL(drop_futex_key_refs);
311 308
312static u32 cmpxchg_futex_value_locked(u32 __user *uaddr, u32 uval, u32 newval) 309static u32 cmpxchg_futex_value_locked(u32 __user *uaddr, u32 uval, u32 newval)
313{ 310{
diff --git a/kernel/sysctl_check.c b/kernel/sysctl_check.c
index ed6fe51df77a..5a2f2b2bf888 100644
--- a/kernel/sysctl_check.c
+++ b/kernel/sysctl_check.c
@@ -1432,6 +1432,7 @@ static void set_fail(const char **fail, struct ctl_table *table, const char *str
1432 printk(KERN_ERR "sysctl table check failed: "); 1432 printk(KERN_ERR "sysctl table check failed: ");
1433 sysctl_print_path(table); 1433 sysctl_print_path(table);
1434 printk(" %s\n", *fail); 1434 printk(" %s\n", *fail);
1435 dump_stack();
1435 } 1436 }
1436 *fail = str; 1437 *fail = str;
1437} 1438}
diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c
index 8cfb8b2ce773..aa82d7bf478a 100644
--- a/kernel/time/tick-broadcast.c
+++ b/kernel/time/tick-broadcast.c
@@ -508,7 +508,7 @@ static void tick_broadcast_clear_oneshot(int cpu)
508} 508}
509 509
510/** 510/**
511 * tick_broadcast_setup_highres - setup the broadcast device for highres 511 * tick_broadcast_setup_oneshot - setup the broadcast device
512 */ 512 */
513void tick_broadcast_setup_oneshot(struct clock_event_device *bc) 513void tick_broadcast_setup_oneshot(struct clock_event_device *bc)
514{ 514{
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
index 5997456ebbc9..27a2338deb4a 100644
--- a/kernel/time/tick-sched.c
+++ b/kernel/time/tick-sched.c
@@ -321,7 +321,7 @@ ktime_t tick_nohz_get_sleep_length(void)
321} 321}
322 322
323/** 323/**
324 * nohz_restart_sched_tick - restart the idle tick from the idle task 324 * tick_nohz_restart_sched_tick - restart the idle tick from the idle task
325 * 325 *
326 * Restart the idle tick when the CPU is woken up from idle 326 * Restart the idle tick when the CPU is woken up from idle
327 */ 327 */
diff --git a/kernel/timer.c b/kernel/timer.c
index fb4e67d5dd60..00e44e2afd67 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -790,7 +790,7 @@ static unsigned long cmp_next_hrtimer_event(unsigned long now,
790} 790}
791 791
792/** 792/**
793 * next_timer_interrupt - return the jiffy of the next pending timer 793 * get_next_timer_interrupt - return the jiffy of the next pending timer
794 * @now: current time (in jiffies) 794 * @now: current time (in jiffies)
795 */ 795 */
796unsigned long get_next_timer_interrupt(unsigned long now) 796unsigned long get_next_timer_interrupt(unsigned long now)