Re: [tip: timers/core] posix-cpu-timers: Use common permission check in posix_cpu_clock_get()

From: Thomas Gleixner
Date: Thu Aug 29 2019 - 07:22:12 EST


On Thu, 29 Aug 2019, kbuild test robot wrote:
> Thank you for the patch! Yet something to improve:
>
> [auto build test ERROR on linus/master]
> [cannot apply to v5.3-rc6 next-20190828]
> [if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

I have no idea what you are testing there.

> kernel/time/posix-cpu-timers.c: In function 'posix_cpu_clock_get':
> >> kernel/time/posix-cpu-timers.c:275:8: error: implicit declaration of function 'get_task_for_clock'; did you mean 'get_task_struct'? [-Werror=implicit-function-declaration]
> tsk = get_task_for_clock(clock);
> ^~~~~~~~~~~~~~~~~~
> get_task_struct
> >> kernel/time/posix-cpu-timers.c:275:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
> tsk = get_task_for_clock(clock);
> ^
> cc1: some warnings being treated as errors

That commit comes _after_ the commit which introduced the function and
get_task_for_clock() is defined above posix_cpu_clock_get(), so I assume
you missed to apply the commit on which this depends on.

Thanks,

tglx