diff options
author | Arjan van de Ven <arjan@infradead.org> | 2005-11-29 19:21:38 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-11-29 19:21:38 -0500 |
commit | 9b5b5cff9a6655dbb6d2e2be365bb95eec3950eb (patch) | |
tree | 80517910c731fc48512ba9c31aa823575db405b3 /net/ipv4/fib_semantics.c | |
parent | fb29644994744a63bc57186cefa79534b5d9b5a9 (diff) |
[NET]: Add const markers to various variables.
the patch below marks various variables const in net/; the goal is to
move them to the .rodata section so that they can't false-share
cachelines with things that get written to, as well as potentially
helping gcc a bit with optimisations. (these were found using a gcc
patch to warn about such variables)
Signed-off-by: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_semantics.c')
-rw-r--r-- | net/ipv4/fib_semantics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c index 186f20c4a45e..6d2a6ac070e3 100644 --- a/net/ipv4/fib_semantics.c +++ b/net/ipv4/fib_semantics.c | |||
@@ -83,7 +83,7 @@ for (nhsel=0; nhsel < 1; nhsel++) | |||
83 | #define endfor_nexthops(fi) } | 83 | #define endfor_nexthops(fi) } |
84 | 84 | ||
85 | 85 | ||
86 | static struct | 86 | static const struct |
87 | { | 87 | { |
88 | int error; | 88 | int error; |
89 | u8 scope; | 89 | u8 scope; |