projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe0d422
)
ARM: ensure tag tables are const
author
Russell King
<rmk+kernel@arm.linux.org.uk>
Tue, 5 Jul 2011 22:59:56 +0000
(23:59 +0100)
committer
Russell 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
patch
|
blob
|
history
diff --git
a/arch/arm/include/asm/setup.h
b/arch/arm/include/asm/setup.h
index
ee2ad8a
..
c3b5c79
100644
(file)
--- 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