Patchwork powerpc: Declare hcall_inst_seq_ops const

login
register
mail settings
Submitter Tobias Klauser
Date Sept. 7, 2009, 7:28 a.m.
Message ID <1252308500-31240-1-git-send-email-tklauser@distanz.ch>
Download mbox | patch
Permalink /patch/33066/
State Accepted, archived
Delegated to: Benjamin Herrenschmidt
Headers show

Comments

Tobias Klauser - Sept. 7, 2009, 7:28 a.m.
Marking it const moves it to the .rodata section, which avoids false
sharing with potential dirty data. In addition it'll catch accidental
writes at compile time to these shared resources.

(description taken from commit 5dfe4c964a0dd7bb3a1d64a4166835a153146207)

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
---
 arch/powerpc/platforms/pseries/hvCall_inst.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/arch/powerpc/platforms/pseries/hvCall_inst.c b/arch/powerpc/platforms/pseries/hvCall_inst.c
index eae51ef..3631a4f 100644
--- a/arch/powerpc/platforms/pseries/hvCall_inst.c
+++ b/arch/powerpc/platforms/pseries/hvCall_inst.c
@@ -71,7 +71,7 @@  static int hc_show(struct seq_file *m, void *p)
 	return 0;
 }
 
-static struct seq_operations hcall_inst_seq_ops = {
+static const struct seq_operations hcall_inst_seq_ops = {
         .start = hc_start,
         .next  = hc_next,
         .stop  = hc_stop,