Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752702AbdF0IkK (ORCPT ); Tue, 27 Jun 2017 04:40:10 -0400 Received: from foss.arm.com ([217.140.101.70]:53378 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751483AbdF0IkA (ORCPT ); Tue, 27 Jun 2017 04:40:00 -0400 Date: Tue, 27 Jun 2017 09:39:58 +0100 From: Will Deacon To: Arvind Yadav Cc: mark.rutland@arm.com, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, alexander.shishkin@linux.intel.com, linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm: perf: make of_device_ids const Message-ID: <20170627083958.GB5759@arm.com> References: <3838e744e5fb337a55a047661d682f67442c016a.1498542886.git.arvind.yadav.cs@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3838e744e5fb337a55a047661d682f67442c016a.1498542886.git.arvind.yadav.cs@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 456 Lines: 13 On Tue, Jun 27, 2017 at 11:42:21AM +0530, Arvind Yadav wrote: > of_device_ids are not supposed to change at runtime. All functions > working with of_device_ids provided by work with const > of_device_ids. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav > --- > arch/arm/kernel/perf_event_v6.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) This is already queued in -next. Will