Module: xenomai-forge
Branch: master
Commit: 4a700f23d528f26d8a91952d492370e222f3a98d
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=4a700f23d528f26d8a91952d492370e222f3a98d

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Sep  3 16:04:07 2013 +0200

cobalt/posix/signal: remove unused cobalt_signal_deliver_pid()

---

 kernel/cobalt/posix/signal.c |   17 ++---------------
 kernel/cobalt/posix/signal.h |    6 ------
 2 files changed, 2 insertions(+), 21 deletions(-)

diff --git a/kernel/cobalt/posix/signal.c b/kernel/cobalt/posix/signal.c
index 9ebb12e..6a4199a 100644
--- a/kernel/cobalt/posix/signal.c
+++ b/kernel/cobalt/posix/signal.c
@@ -38,8 +38,8 @@ static LIST_HEAD(sigpending_pool);
 #define __SIGPOOL_SIZE  (sizeof(struct cobalt_sigpending) *    \
                         (_NSIG + (SIGRTMAX - SIGRTMIN) * 2))
 
-int cobalt_signal_deliver(struct cobalt_thread *thread,
-                         struct cobalt_sigpending *sigp)
+static int cobalt_signal_deliver(struct cobalt_thread *thread,
+                                struct cobalt_sigpending *sigp)
 {
        struct cobalt_sigwait_context *swc;
        struct xnthread_wait_context *wc;
@@ -72,7 +72,6 @@ int cobalt_signal_deliver(struct cobalt_thread *thread,
 
        return 1;
 }
-EXPORT_SYMBOL_GPL(cobalt_signal_deliver);
 
 int cobalt_signal_send(struct cobalt_thread *thread,
                       struct cobalt_sigpending *sigp)
@@ -126,18 +125,6 @@ int cobalt_signal_send_pid(pid_t pid, struct 
cobalt_sigpending *sigp)
 }
 EXPORT_SYMBOL_GPL(cobalt_signal_send_pid);
 
-int cobalt_signal_deliver_pid(pid_t pid, struct cobalt_sigpending *sigp)
-{                              /* nklocked, IRQs off */
-       struct cobalt_thread *thread;
-
-       thread = cobalt_thread_find(pid);
-       if (thread)
-               return cobalt_signal_deliver(thread, sigp);
-
-       return -ESRCH;
-}
-EXPORT_SYMBOL_GPL(cobalt_signal_deliver_pid);
-
 struct cobalt_sigpending *cobalt_signal_alloc(void)
 {                              /* nklocked, IRQs off */
        struct cobalt_sigpending *sigp;
diff --git a/kernel/cobalt/posix/signal.h b/kernel/cobalt/posix/signal.h
index a3f1879..59ad42d 100644
--- a/kernel/cobalt/posix/signal.h
+++ b/kernel/cobalt/posix/signal.h
@@ -53,12 +53,6 @@ void cobalt_copy_siginfo(int code,
        }
 }
 
-int cobalt_signal_deliver(struct cobalt_thread *thread,
-                         struct cobalt_sigpending *sigp);
-
-int cobalt_signal_deliver_pid(pid_t pid,
-                             struct cobalt_sigpending *sigp);
-
 int cobalt_signal_send(struct cobalt_thread *thread,
                       struct cobalt_sigpending *sigp);
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to