From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030859AbcDMLa0 (ORCPT ); Wed, 13 Apr 2016 07:30:26 -0400 Received: from terminus.zytor.com ([198.137.202.10]:55536 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030724AbcDMLaX (ORCPT ); Wed, 13 Apr 2016 07:30:23 -0400 Date: Wed, 13 Apr 2016 04:27:48 -0700 From: tip-bot for Julia Lawall Message-ID: Cc: peterz@infradead.org, paulmck@linux.vnet.ibm.com, oleg@redhat.com, mingo@kernel.org, Julia.Lawall@lip6.fr, linux-kernel@vger.kernel.org, tglx@linutronix.de, akpm@linux-foundation.org, hpa@zytor.com, torvalds@linux-foundation.org Reply-To: torvalds@linux-foundation.org, tglx@linutronix.de, hpa@zytor.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, Julia.Lawall@lip6.fr, mingo@kernel.org, peterz@infradead.org, paulmck@linux.vnet.ibm.com, oleg@redhat.com In-Reply-To: <1460200649-32526-1-git-send-email-Julia.Lawall@lip6.fr> References: <1460200649-32526-1-git-send-email-Julia.Lawall@lip6.fr> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] uprobes/x86: Constify uprobe_xol_ops structures Git-Commit-ID: dac429874d8156d97460c61049e202b2dcc15df8 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: dac429874d8156d97460c61049e202b2dcc15df8 Gitweb: http://git.kernel.org/tip/dac429874d8156d97460c61049e202b2dcc15df8 Author: Julia Lawall AuthorDate: Sat, 9 Apr 2016 13:17:29 +0200 Committer: Ingo Molnar CommitDate: Wed, 13 Apr 2016 09:55:42 +0200 uprobes/x86: Constify uprobe_xol_ops structures The uprobe_xol_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Cc: Andrew Morton Cc: Linus Torvalds Cc: Oleg Nesterov Cc: Paul E. McKenney Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: kernel-janitors@vger.kernel.org Link: http://lkml.kernel.org/r/1460200649-32526-1-git-send-email-Julia.Lawall@lip6.fr Signed-off-by: Ingo Molnar --- arch/x86/kernel/uprobes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/uprobes.c b/arch/x86/kernel/uprobes.c index bf4db6e..bd07415 100644 --- a/arch/x86/kernel/uprobes.c +++ b/arch/x86/kernel/uprobes.c @@ -578,7 +578,7 @@ static void default_abort_op(struct arch_uprobe *auprobe, struct pt_regs *regs) riprel_post_xol(auprobe, regs); } -static struct uprobe_xol_ops default_xol_ops = { +static const struct uprobe_xol_ops default_xol_ops = { .pre_xol = default_pre_xol_op, .post_xol = default_post_xol_op, .abort = default_abort_op, @@ -695,7 +695,7 @@ static void branch_clear_offset(struct arch_uprobe *auprobe, struct insn *insn) 0, insn->immediate.nbytes); } -static struct uprobe_xol_ops branch_xol_ops = { +static const struct uprobe_xol_ops branch_xol_ops = { .emulate = branch_emulate_op, .post_xol = branch_post_xol_op, };