Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752631AbbLKSNC (ORCPT ); Fri, 11 Dec 2015 13:13:02 -0500 Received: from smtprelay0187.hostedemail.com ([216.40.44.187]:55598 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751271AbbLKSNA (ORCPT ); Fri, 11 Dec 2015 13:13:00 -0500 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::,RULES_HIT:41:355:379:541:599:800:960:988:989:1183:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3871:3872:4321:4362:5007:6261:7875:7903:8603:10004:10400:10848:10967:11026:11232:11658:11914:12043:12438:12517:12519:12555:12740:13069:13311:13357:14096:14097:14659:21080:30054:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: week69_543c89d02d907 X-Filterd-Recvd-Size: 1866 Date: Fri, 11 Dec 2015 13:12:56 -0500 From: Steven Rostedt To: Julia Lawall Cc: kernel-janitors@vger.kernel.org, Ingo Molnar , linux-kernel@vger.kernel.org Subject: Re: [PATCH] bpf: constify bpf_verifier_ops structure Message-ID: <20151211131256.41097162@gandalf.local.home> In-Reply-To: <1449855359-13724-1-git-send-email-Julia.Lawall@lip6.fr> References: <1449855359-13724-1-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: Claws Mail 3.13.0 (GTK+ 2.24.28; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1205 Lines: 38 On Fri, 11 Dec 2015 18:35:59 +0100 Julia Lawall wrote: > This bpf_verifier_ops structure is never modified, like the other > bpf_verifier_ops structures, so declare it as const. > > Done with the help of Coccinelle. Thanks, I'll add this to my 4.5 queue. -- Steve > > Signed-off-by: Julia Lawall > > --- > kernel/trace/bpf_trace.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/trace/bpf_trace.c b/kernel/trace/bpf_trace.c > index 4228fd3..45dd798 100644 > --- a/kernel/trace/bpf_trace.c > +++ b/kernel/trace/bpf_trace.c > @@ -316,7 +316,7 @@ static bool kprobe_prog_is_valid_access(int off, int size, enum bpf_access_type > return true; > } > > -static struct bpf_verifier_ops kprobe_prog_ops = { > +static const struct bpf_verifier_ops kprobe_prog_ops = { > .get_func_proto = kprobe_prog_func_proto, > .is_valid_access = kprobe_prog_is_valid_access, > }; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/