Commit-ID: 942c3c5c329274fa6de5998cb911cf3d0a42d0b1 Gitweb: http://git.kernel.org/tip/942c3c5c329274fa6de5998cb911cf3d0a42d0b1 Author: Mike Frysinger <vapier@xxxxxxxxxx> AuthorDate: Mon, 2 May 2011 15:24:27 -0400 Committer: Thomas Gleixner <tglx@xxxxxxxxxxxxx> CommitDate: Mon, 2 May 2011 21:37:57 +0200 hrtimer: Make lookup table const Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx> Link: http://lkml.kernel.org/r/%3C1304364267-14489-1-git-send-email-vapier%40gentoo.org%3E Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx> --- kernel/hrtimer.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c index 87fdb3f..dbbbf7d 100644 --- a/kernel/hrtimer.c +++ b/kernel/hrtimer.c @@ -81,7 +81,7 @@ DEFINE_PER_CPU(struct hrtimer_cpu_base, hrtimer_bases) = } }; -static int hrtimer_clock_to_base_table[MAX_CLOCKS] = { +static const int hrtimer_clock_to_base_table[MAX_CLOCKS] = { [CLOCK_REALTIME] = HRTIMER_BASE_REALTIME, [CLOCK_MONOTONIC] = HRTIMER_BASE_MONOTONIC, [CLOCK_BOOTTIME] = HRTIMER_BASE_BOOTTIME, -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |