]> git.hungrycats.org Git - linux/commitdiff
zygo: GPL symbol whack-a-mole: kernel/rcu/update.c
authorZygo Blaxell <zblaxell@waya.furryterror.org>
Thu, 9 Feb 2017 12:59:39 +0000 (07:59 -0500)
committerZygo Blaxell <ce3g8jdj@umail.furryterror.org>
Tue, 12 Mar 2019 02:17:52 +0000 (22:17 -0400)
(cherry picked from commit 1646ccb83b54b805b5c089c3279ba605b5728bf3)
(cherry picked from commit 5a46162e2112b6d8fde2018ee0c99f3cb0a2ed28)
(cherry picked from commit 1713f332ccdb7e918e1c7d1c9ea42100cd6796a5)
(cherry picked from commit a353b27f1182a9b92a8fa0d5b361005c5ae19b43)
(cherry picked from commit 05dd704981fd7998a843dfc5deaa0fbc0a3cbd7a)
(cherry picked from commit dd8a04646fa9e08edc6d6e182d104aff1a64c14e)
(cherry picked from commit 92f155bb6c8ffb504eeac429c0b95615e2f59c2c)
(cherry picked from commit ae68cb237515e67de5efad2a7face859a5fd0dac)
(cherry picked from commit 3d00c5e8b400495ac7df7525fb335c09f83bc1dc)
(cherry picked from commit d2d6bf73614b2c0c07385f8ec7eecdc3a97ea9db)
(cherry picked from commit de50d2ef93880b85f0ab2063905d6c1c0276ecd2)
(cherry picked from commit 7ba81d8adb44cea44aca641c673940ba8730cfb9)

kernel/rcu/update.c

index 1971869c4072f872467eb532daec38c3bebf160d..472c3d9631e05ebd37e925fa563eb9ef6b1a9fbe 100644 (file)
@@ -135,7 +135,7 @@ bool rcu_gp_is_normal(void)
        return READ_ONCE(rcu_normal) &&
               rcu_scheduler_active != RCU_SCHEDULER_INIT;
 }
-EXPORT_SYMBOL_GPL(rcu_gp_is_normal);
+EXPORT_SYMBOL(rcu_gp_is_normal);
 
 static atomic_t rcu_expedited_nesting = ATOMIC_INIT(1);
 
@@ -151,7 +151,7 @@ bool rcu_gp_is_expedited(void)
        return rcu_expedited || atomic_read(&rcu_expedited_nesting) ||
               rcu_scheduler_active == RCU_SCHEDULER_INIT;
 }
-EXPORT_SYMBOL_GPL(rcu_gp_is_expedited);
+EXPORT_SYMBOL(rcu_gp_is_expedited);
 
 /**
  * rcu_expedite_gp - Expedite future RCU grace periods
@@ -164,7 +164,7 @@ void rcu_expedite_gp(void)
 {
        atomic_inc(&rcu_expedited_nesting);
 }
-EXPORT_SYMBOL_GPL(rcu_expedite_gp);
+EXPORT_SYMBOL(rcu_expedite_gp);
 
 /**
  * rcu_unexpedite_gp - Cancel prior rcu_expedite_gp() invocation
@@ -179,7 +179,7 @@ void rcu_unexpedite_gp(void)
 {
        atomic_dec(&rcu_expedited_nesting);
 }
-EXPORT_SYMBOL_GPL(rcu_unexpedite_gp);
+EXPORT_SYMBOL(rcu_unexpedite_gp);
 
 /*
  * Inform RCU of the end of the in-kernel boot sequence.
@@ -226,29 +226,29 @@ core_initcall(rcu_set_runtime_mode);
 static struct lock_class_key rcu_lock_key;
 struct lockdep_map rcu_lock_map =
        STATIC_LOCKDEP_MAP_INIT("rcu_read_lock", &rcu_lock_key);
-EXPORT_SYMBOL_GPL(rcu_lock_map);
+EXPORT_SYMBOL(rcu_lock_map);
 
 static struct lock_class_key rcu_bh_lock_key;
 struct lockdep_map rcu_bh_lock_map =
        STATIC_LOCKDEP_MAP_INIT("rcu_read_lock_bh", &rcu_bh_lock_key);
-EXPORT_SYMBOL_GPL(rcu_bh_lock_map);
+EXPORT_SYMBOL(rcu_bh_lock_map);
 
 static struct lock_class_key rcu_sched_lock_key;
 struct lockdep_map rcu_sched_lock_map =
        STATIC_LOCKDEP_MAP_INIT("rcu_read_lock_sched", &rcu_sched_lock_key);
-EXPORT_SYMBOL_GPL(rcu_sched_lock_map);
+EXPORT_SYMBOL(rcu_sched_lock_map);
 
 static struct lock_class_key rcu_callback_key;
 struct lockdep_map rcu_callback_map =
        STATIC_LOCKDEP_MAP_INIT("rcu_callback", &rcu_callback_key);
-EXPORT_SYMBOL_GPL(rcu_callback_map);
+EXPORT_SYMBOL(rcu_callback_map);
 
 int notrace debug_lockdep_rcu_enabled(void)
 {
        return rcu_scheduler_active != RCU_SCHEDULER_INACTIVE && debug_locks &&
               current->lockdep_recursion == 0;
 }
-EXPORT_SYMBOL_GPL(debug_lockdep_rcu_enabled);
+EXPORT_SYMBOL(debug_lockdep_rcu_enabled);
 
 /**
  * rcu_read_lock_held() - might we be in RCU read-side critical section?
@@ -280,7 +280,7 @@ int rcu_read_lock_held(void)
                return 0;
        return lock_is_held(&rcu_lock_map);
 }
-EXPORT_SYMBOL_GPL(rcu_read_lock_held);
+EXPORT_SYMBOL(rcu_read_lock_held);
 
 /**
  * rcu_read_lock_bh_held() - might we be in RCU-bh read-side critical section?
@@ -307,7 +307,7 @@ int rcu_read_lock_bh_held(void)
                return 0;
        return in_softirq() || irqs_disabled();
 }
-EXPORT_SYMBOL_GPL(rcu_read_lock_bh_held);
+EXPORT_SYMBOL(rcu_read_lock_bh_held);
 
 #endif /* #ifdef CONFIG_DEBUG_LOCK_ALLOC */
 
@@ -324,7 +324,7 @@ void wakeme_after_rcu(struct rcu_head *head)
        rcu = container_of(head, struct rcu_synchronize, head);
        complete(&rcu->completion);
 }
-EXPORT_SYMBOL_GPL(wakeme_after_rcu);
+EXPORT_SYMBOL(wakeme_after_rcu);
 
 void __wait_rcu_gp(bool checktiny, int n, call_rcu_func_t *crcu_array,
                   struct rcu_synchronize *rs_array)
@@ -361,7 +361,7 @@ void __wait_rcu_gp(bool checktiny, int n, call_rcu_func_t *crcu_array,
                destroy_rcu_head_on_stack(&rs_array[i].head);
        }
 }
-EXPORT_SYMBOL_GPL(__wait_rcu_gp);
+EXPORT_SYMBOL(__wait_rcu_gp);
 
 #ifdef CONFIG_DEBUG_OBJECTS_RCU_HEAD
 void init_rcu_head(struct rcu_head *head)
@@ -395,7 +395,7 @@ void init_rcu_head_on_stack(struct rcu_head *head)
 {
        debug_object_init_on_stack(head, &rcuhead_debug_descr);
 }
-EXPORT_SYMBOL_GPL(init_rcu_head_on_stack);
+EXPORT_SYMBOL(init_rcu_head_on_stack);
 
 /**
  * destroy_rcu_head_on_stack() - destroy on-stack rcu_head for debugobjects
@@ -412,13 +412,13 @@ void destroy_rcu_head_on_stack(struct rcu_head *head)
 {
        debug_object_free(head, &rcuhead_debug_descr);
 }
-EXPORT_SYMBOL_GPL(destroy_rcu_head_on_stack);
+EXPORT_SYMBOL(destroy_rcu_head_on_stack);
 
 struct debug_obj_descr rcuhead_debug_descr = {
        .name = "rcu_head",
        .is_static_object = rcuhead_is_static_object,
 };
-EXPORT_SYMBOL_GPL(rcuhead_debug_descr);
+EXPORT_SYMBOL(rcuhead_debug_descr);
 #endif /* #ifdef CONFIG_DEBUG_OBJECTS_RCU_HEAD */
 
 #if defined(CONFIG_TREE_RCU) || defined(CONFIG_PREEMPT_RCU) || defined(CONFIG_RCU_TRACE)
@@ -428,7 +428,7 @@ void do_trace_rcu_torture_read(const char *rcutorturename, struct rcu_head *rhp,
 {
        trace_rcu_torture_read(rcutorturename, rhp, secs, c_old, c);
 }
-EXPORT_SYMBOL_GPL(do_trace_rcu_torture_read);
+EXPORT_SYMBOL(do_trace_rcu_torture_read);
 #else
 #define do_trace_rcu_torture_read(rcutorturename, rhp, secs, c_old, c) \
        do { } while (0)
@@ -563,7 +563,7 @@ void call_rcu_tasks(struct rcu_head *rhp, rcu_callback_t func)
        if (needwake && READ_ONCE(rcu_tasks_kthread_ptr))
                wake_up(&rcu_tasks_cbs_wq);
 }
-EXPORT_SYMBOL_GPL(call_rcu_tasks);
+EXPORT_SYMBOL(call_rcu_tasks);
 
 /**
  * synchronize_rcu_tasks - wait until an rcu-tasks grace period has elapsed.
@@ -607,7 +607,7 @@ void synchronize_rcu_tasks(void)
        /* Wait for the grace period. */
        wait_rcu_gp(call_rcu_tasks);
 }
-EXPORT_SYMBOL_GPL(synchronize_rcu_tasks);
+EXPORT_SYMBOL(synchronize_rcu_tasks);
 
 /**
  * rcu_barrier_tasks - Wait for in-flight call_rcu_tasks() callbacks.
@@ -620,7 +620,7 @@ void rcu_barrier_tasks(void)
        /* There is only one callback queue, so this is easy.  ;-) */
        synchronize_rcu_tasks();
 }
-EXPORT_SYMBOL_GPL(rcu_barrier_tasks);
+EXPORT_SYMBOL(rcu_barrier_tasks);
 
 /* See if tasks are still holding out, complain if so. */
 static void check_holdout_task(struct task_struct *t,