From patchwork Mon Sep 7 07:28:20 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Klauser X-Patchwork-Id: 33066 X-Patchwork-Delegate: benh@kernel.crashing.org Return-Path: X-Original-To: patchwork-incoming@bilbo.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id 388F2B7B99 for ; Mon, 7 Sep 2009 17:51:45 +1000 (EST) Received: by ozlabs.org (Postfix) id 30BF6DDD0B; Mon, 7 Sep 2009 17:51:45 +1000 (EST) Delivered-To: patchwork-incoming@ozlabs.org Received: from bilbo.ozlabs.org (bilbo.ozlabs.org [203.10.76.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "bilbo.ozlabs.org", Issuer "CAcert Class 3 Root" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 2EC37DDD04 for ; Mon, 7 Sep 2009 17:51:45 +1000 (EST) Received: from bilbo.ozlabs.org (localhost [127.0.0.1]) by bilbo.ozlabs.org (Postfix) with ESMTP id DBA67B7E31 for ; Mon, 7 Sep 2009 17:51:29 +1000 (EST) Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4C265B7B6B for ; Mon, 7 Sep 2009 17:35:19 +1000 (EST) Received: by ozlabs.org (Postfix) id 41FBBDDD0C; Mon, 7 Sep 2009 17:35:19 +1000 (EST) Delivered-To: linuxppc-dev@ozlabs.org X-Greylist: delayed 390 seconds by postgrey-1.31 at ozlabs; Mon, 07 Sep 2009 17:35:18 EST Received: from mx2.zhaw.ch (mx2.zhaw.ch [160.85.104.51]) by ozlabs.org (Postfix) with ESMTP id D776CDDD0B for ; Mon, 7 Sep 2009 17:35:18 +1000 (EST) Received: from mx2.zhaw.ch (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id CF69C9FA; Mon, 7 Sep 2009 09:28:20 +0200 (CEST) Received: from localhost.localdomain (staff-klto-0.zhaw.ch [160.85.232.164]) by mx2.zhaw.ch (Postfix) with ESMTP id 8CDB39ED; Mon, 7 Sep 2009 09:28:20 +0200 (CEST) From: Tobias Klauser To: Paul Mackerras , Benjamin Herrenschmidt Subject: [PATCH] powerpc: Declare hcall_inst_seq_ops const Date: Mon, 7 Sep 2009 09:28:20 +0200 Message-Id: <1252308500-31240-1-git-send-email-tklauser@distanz.ch> X-Mailer: git-send-email 1.6.0.4 X-PMX-Version: 5.5.4.371499, Antispam-Engine: 2.7.1.369594, Antispam-Data: 2009.9.7.72118 X-PerlMx-Spam: Gauge=IIIIIIII, Probability=8%, Report=' BODY_SIZE_1000_LESS 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, BODY_SIZE_900_999 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __MIME_TEXT_ONLY 0, __SANE_MSGID 0, __TO_MALFORMED_2 0' X-Mailman-Approved-At: Mon, 07 Sep 2009 17:51:23 +1000 Cc: linuxppc-dev@ozlabs.org, Tobias Klauser X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org 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 --- arch/powerpc/platforms/pseries/hvCall_inst.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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,