Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751872AbdHCICa (ORCPT ); Thu, 3 Aug 2017 04:02:30 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:38862 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751043AbdHCICK (ORCPT ); Thu, 3 Aug 2017 04:02:10 -0400 From: Arvind Yadav To: davem@davemloft.net, 3chas3@gmail.com Cc: linux-atm-general@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] atm: adummy: constify attribute_group structures. Date: Thu, 3 Aug 2017 13:31:47 +0530 Message-Id: <1501747307-11515-3-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501747307-11515-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1501747307-11515-1-git-send-email-arvind.yadav.cs@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 766 Lines: 24 attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/atm/adummy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/atm/adummy.c b/drivers/atm/adummy.c index 1fd25e8..da27ddf 100644 --- a/drivers/atm/adummy.c +++ b/drivers/atm/adummy.c @@ -71,7 +71,7 @@ static ssize_t __show_signal(struct device *dev, NULL }; -static struct attribute_group adummy_group_attrs = { +static const struct attribute_group adummy_group_attrs = { .name = NULL, /* We want them in dev's root folder */ .attrs = adummy_attrs }; -- 1.9.1