[UNNECESSARY PATCH 03/16] signal: Move EXPORT_SYMBOL after function definition

From: Joe Perches
Date: Sun Nov 16 2014 - 15:13:21 EST


Just neatening.

Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
---
kernel/signal.c | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/kernel/signal.c b/kernel/signal.c
index abb2bcd..969c6ba 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -160,6 +160,7 @@ void recalc_sigpending(void)
if (!recalc_sigpending_tsk(current) && !freezing(current))
clear_thread_flag(TIF_SIGPENDING);
}
+EXPORT_SYMBOL(recalc_sigpending);

/* Given the mask, find the first available signal that should be serviced. */

@@ -430,6 +431,7 @@ void flush_signals(struct task_struct *t)
__flush_signals(t);
spin_unlock_irqrestore(&t->sighand->siglock, flags);
}
+EXPORT_SYMBOL(flush_signals);

static void __flush_itimer_signals(struct sigpending *pending)
{
@@ -529,6 +531,7 @@ block_all_signals(int (*notifier)(void *priv), void *priv, sigset_t *mask)
current->notifier = notifier;
spin_unlock_irqrestore(&current->sighand->siglock, flags);
}
+EXPORT_SYMBOL(block_all_signals);

/* Notify the system that blocking has ended. */

@@ -543,6 +546,7 @@ unblock_all_signals(void)
recalc_sigpending();
spin_unlock_irqrestore(&current->sighand->siglock, flags);
}
+EXPORT_SYMBOL(unblock_all_signals);

static void collect_signal(int sig, struct sigpending *list, siginfo_t *info)
{
@@ -676,6 +680,7 @@ int dequeue_signal(struct task_struct *tsk, sigset_t *mask, siginfo_t *info)
}
return signr;
}
+EXPORT_SYMBOL_GPL(dequeue_signal);

/*
* Tell a process that it has a new active signal..
@@ -1478,6 +1483,7 @@ int send_sig_info(int sig, struct siginfo *info, struct task_struct *p)

return do_send_sig_info(sig, info, p, false);
}
+EXPORT_SYMBOL(send_sig_info);

#define __si_special(priv) \
((priv) ? SEND_SIG_PRIV : SEND_SIG_NOINFO)
@@ -1487,12 +1493,14 @@ send_sig(int sig, struct task_struct *p, int priv)
{
return send_sig_info(sig, __si_special(priv), p);
}
+EXPORT_SYMBOL(send_sig);

void
force_sig(int sig, struct task_struct *p)
{
force_sig_info(sig, SEND_SIG_PRIV, p);
}
+EXPORT_SYMBOL(force_sig);

/*
* When things go south during signal handling, we
@@ -2488,16 +2496,6 @@ out:
}
}

-EXPORT_SYMBOL(recalc_sigpending);
-EXPORT_SYMBOL_GPL(dequeue_signal);
-EXPORT_SYMBOL(flush_signals);
-EXPORT_SYMBOL(force_sig);
-EXPORT_SYMBOL(send_sig);
-EXPORT_SYMBOL(send_sig_info);
-EXPORT_SYMBOL(sigprocmask);
-EXPORT_SYMBOL(block_all_signals);
-EXPORT_SYMBOL(unblock_all_signals);
-
/*
* System call entry points.
*/
@@ -2585,6 +2583,7 @@ int sigprocmask(int how, sigset_t *set, sigset_t *oldset)
__set_current_blocked(&newset);
return 0;
}
+EXPORT_SYMBOL(sigprocmask);

/**
* sys_rt_sigprocmask - change the list of currently blocked signals
--
2.1.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/