OSDN Git Service

posix-timers: Cleanup forward declarations and includes
authorThomas Gleixner <tglx@linutronix.de>
Mon, 19 Aug 2019 14:31:42 +0000 (16:31 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 20 Aug 2019 20:09:52 +0000 (22:09 +0200)
 - Rename struct siginfo to kernel_siginfo as that is used and required
 - Add a forward declaration for task_struct and remove sched.h include
 - Remove timex.h include as it is not needed

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lkml.kernel.org/r/20190819143801.472005793@linutronix.de
include/linux/posix-timers.h

index 604cec0..26c636d 100644 (file)
@@ -4,11 +4,10 @@
 
 #include <linux/spinlock.h>
 #include <linux/list.h>
-#include <linux/sched.h>
-#include <linux/timex.h>
 #include <linux/alarmtimer.h>
 
-struct siginfo;
+struct kernel_siginfo;
+struct task_struct;
 
 struct cpu_timer_list {
        struct list_head entry;