Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751964AbdF3Lai (ORCPT ); Fri, 30 Jun 2017 07:30:38 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34064 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751723AbdF3Lad (ORCPT ); Fri, 30 Jun 2017 07:30:33 -0400 From: Arvind Yadav To: catalin.marinas@arm.com, will.deacon@arm.com, steve.capper@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: cpuinfo: constify attribute_group structures. Date: Fri, 30 Jun 2017 17:00:20 +0530 Message-Id: <8be91a9f9295fcbe8ec9cdcfd7c2e0b7e0e58ec3.1498821973.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 780 Lines: 24 attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- arch/arm64/kernel/cpuinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c index 68b1f36..f495ee5 100644 --- a/arch/arm64/kernel/cpuinfo.c +++ b/arch/arm64/kernel/cpuinfo.c @@ -227,7 +227,7 @@ static void c_stop(struct seq_file *m, void *v) NULL }; -static struct attribute_group cpuregs_attr_group = { +static const struct attribute_group cpuregs_attr_group = { .attrs = cpuregs_id_attrs, .name = "identification" }; -- 1.9.1