From patchwork Tue Jul 11 09:00:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9834295 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2388860363 for ; Tue, 11 Jul 2017 09:01:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 14DEC283C7 for ; Tue, 11 Jul 2017 09:01:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 08B9D283D0; Tue, 11 Jul 2017 09:01:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74B1F28438 for ; Tue, 11 Jul 2017 09:01:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932413AbdGKJBC (ORCPT ); Tue, 11 Jul 2017 05:01:02 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:33232 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932387AbdGKJBB (ORCPT ); Tue, 11 Jul 2017 05:01:01 -0400 Received: by mail-pf0-f194.google.com with SMTP id e199so18145068pfh.0; Tue, 11 Jul 2017 02:01:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=pXpwfPqLSQj4hxrlmdx11IWXHByNFZKNMCDLFoJXgTU=; b=XXNx2a9BMpV8vqwhbtdCdJwwNcIloxozmQMl/cPg3ztuObMFm3dUJm4eHm+Z0mE6VV HGumSKFBxemN76h6+FTxtUryqFxMYUvEGfiyi13/ELAWVmpPhot5eAggej3IEod4yFnw jTp1hShPBdcw6+/IcoOK5BjJEBETutq9Ht7YI6CovrF/PiQs8SgTfmZSApcCnfhJEWch 2ftiFuE8I18IMo+cr9RljK5Xmy4UrJHqm1jP6OhNVbm8jm3PFewrAaM2civzNYGJM2PL 6lEy6RRFjj5IB5pQY5yNvTybgejrP/+asBaqAVbEnZgwgFePIcGhuLSzEdjlUIDET/Su Gv2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=pXpwfPqLSQj4hxrlmdx11IWXHByNFZKNMCDLFoJXgTU=; b=k4bCl/zpFWIJukubF7gYRHN6Tp20kTwrEdnQhgjhRvbNA7xIdKy2GiR3ye/wiu4AuL hTNEZMzFEWcrGC+Joh0rO2izn+qQCGZx90ffwzgo+KJj8CAHkz1hU9qkgJ5QrkEPGKZz +2bwoQ/gtCnKBs+mYa3ZR/xyDgXQjHaKCScP6RmdB/CKrKEKwpUzShR1UWOjmGPYQkpu beNznbqlH4KT8sSGR/seOu6S9+wt5P1G71MXzbWzw8TzNnzDWcUqSDX+mRgSfJoCdL2b ksE+8z4q3Qv5EXS+3rQVVXQu9kEuiMuttPhSsy3WJxSYXBJGUl+3lizdA5ONVImt6EvN L9aA== X-Gm-Message-State: AIVw113SxystRfzKga5SMHZ/Xh01X9+Qyux1qxMVE+qxwG1xGFRpeq+k gGn4TCr1Eql2/qmXvyQ= X-Received: by 10.84.225.129 with SMTP id u1mr22940730plj.70.1499763660414; Tue, 11 Jul 2017 02:01:00 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id q88sm30134027pfa.10.2017.07.11.02.00.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Jul 2017 02:00:59 -0700 (PDT) From: Arvind Yadav To: jejb@parisc-linux.org, deller@gmx.de Cc: linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] parisc: pdc_stable: constify attribute_group structures. Date: Tue, 11 Jul 2017 14:30:34 +0530 Message-Id: X-Mailer: git-send-email 1.9.1 Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/parisc/pdc_stable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/parisc/pdc_stable.c b/drivers/parisc/pdc_stable.c index 055f83f..7147aa5 100644 --- a/drivers/parisc/pdc_stable.c +++ b/drivers/parisc/pdc_stable.c @@ -954,7 +954,7 @@ static ssize_t pdcs_osdep2_write(struct kobject *kobj, NULL, }; -static struct attribute_group pdcs_attr_group = { +static const struct attribute_group pdcs_attr_group = { .attrs = pdcs_subsys_attrs, };