Re: [patch 01/44] posix-timers: Cleanup forward declarations and includes

Frederic Weisbecker
2019-08-20T12:20:54Z

On Mon, Aug 19, 2019 at 04:31:42PM +0200, Thomas Gleixner wrote:
> - Rename struct siginfo to kernel_siginfo

That's fine because struct siginfo isn't actually used in that
header, right?

> - 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>
> ---
> include/linux/posix-timers.h | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> --- a/include/linux/posix-timers.h
> +++ b/include/linux/posix-timers.h
> @@ -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;
>
>