ARM: ensure tag tables are const
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 5 Jul 2011 22:59:56 +0000 (23:59 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 7 Jul 2011 22:35:21 +0000 (23:35 +0100)
Nothing should ever modify a tag table entry, so mark these const.

Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Tested-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/setup.h

index ee2ad8ae07af7d4006d82a474cb2282654cb986a..c3b5c796d81925b1740d352f002dca0dfadafd2f 100644 (file)
@@ -187,7 +187,7 @@ struct tagtable {
 
 #define __tag __used __attribute__((__section__(".taglist.init")))
 #define __tagtable(tag, fn) \
-static struct tagtable __tagtable_##fn __tag = { tag, fn }
+static const struct tagtable __tagtable_##fn __tag = { tag, fn }
 
 /*
  * Memory map description