alarmtimer: Fix posix-timer constification fallout
authorThomas Gleixner <tglx@linutronix.de>
Sat, 27 May 2017 10:23:47 +0000 (12:23 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 27 May 2017 10:23:47 +0000 (12:23 +0200)
commitb6b3b80fceb175c825ad6c72659e0a72e201fc5f
treea422ff414d01ffdfe02015792cc19b19222a9e39
parentd3ba5a9a345b1243276f8a982e1bce557c2504fd
alarmtimer: Fix posix-timer constification fallout

Some freezer related variables are only used when either CONFIG_POSIX_TIMER
or CONFIG_RTC_CLASS are enabled. Hide them when both are off.

Fixes: d3ba5a9a345b ("posix-timers: Make posix_clocks immutable")
Reported-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Christoph Helwig <hch@lst.de>
kernel/time/alarmtimer.c