From: Russell King Date: Tue, 5 Jul 2011 22:59:56 +0000 (+0100) Subject: ARM: ensure tag tables are const X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c1f2d9991046769aa14a904ea2bf5434daf86262;p=mv-sheeva.git ARM: ensure tag tables are const Nothing should ever modify a tag table entry, so mark these const. Acked-by: Nicolas Pitre Tested-by: Stephen Boyd Signed-off-by: Russell King --- diff --git a/arch/arm/include/asm/setup.h b/arch/arm/include/asm/setup.h index ee2ad8ae07a..c3b5c796d81 100644 --- a/arch/arm/include/asm/setup.h +++ b/arch/arm/include/asm/setup.h @@ -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