From patchwork Mon Jul 17 09:16:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9844327 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 6CA026037F for ; Mon, 17 Jul 2017 09:19:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5D9FE28338 for ; Mon, 17 Jul 2017 09:19:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5104428408; Mon, 17 Jul 2017 09:19:01 +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.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=unavailable 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 DA58228338 for ; Mon, 17 Jul 2017 09:19:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751178AbdGQJSp (ORCPT ); Mon, 17 Jul 2017 05:18:45 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:35817 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751309AbdGQJRO (ORCPT ); Mon, 17 Jul 2017 05:17:14 -0400 Received: by mail-pf0-f194.google.com with SMTP id q85so18951803pfq.2; Mon, 17 Jul 2017 02:17:14 -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:in-reply-to:references; bh=2UFYgZCs9Jywv9BrxgHj9TOBPLVYgajP4t4hyaQsiFw=; b=BGo4EuKx882rQzpd41hLXmpcqr6d3pKmIGZZYbMUSjadNPMLJOYpft+IFhk2q95pQh fOdo7DZo699LiuKjxE7azNdTVMA1MJxlrMEIXCpU0Uv1iWC7lebo170f/pwIVE5tX1gI MDzUmkGtibC48UNaIsuzUzQjDQ0HhQesDnH050rXGS00lQs0lYMfTM987Io2OjXvSv3B OT0Hos7pzW4NL8p8Lo5L0LNPQdsHP1QtYonmIbe7D92GGLVIrFPbWkE/jMyMgnTR7k5z S2mSF1tyl+BZfZhR9Rm6i12Jpya67o05yG/rQ1yob5xswVRMbQdiR987e+OHzHTdCH8y VLUA== 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:in-reply-to :references; bh=2UFYgZCs9Jywv9BrxgHj9TOBPLVYgajP4t4hyaQsiFw=; b=cXM44Bgzt4xok7HSrwVF7URgFnFyxqugUDHXjcD6IeyRyLp+NyYclt3R6D7b7lFRDK sikUOJ/sm4zlj/2YPERYqjQaOWoXPfkQ79yG4396jSbq3dgzVIGcB1/4VqICeubB3urL GytSdbqkG7JGNUXemCE0MVh4MbnlewcxbOOF3EIlzddtysGVEqa9AVoQ4+peA6+XwLZe wxFOMKKkf6+EpMCih4vDaSmD10ntAbWIjwdsGg6ChpWtcxJL2BFnh9orDjYukkAX5G7A 72iWgbDuSIpXK0JL39c4R93Jz7U6n5OdoW0xAe2qWP41/VeqWM9iTlSWt6RLum2i+k49 /VhA== X-Gm-Message-State: AIVw112oo/ASfA+cxc2q2g55/k1k9uPBQpShGV5kwOwQtaTwqwQrIIo3 jjIaGVUJBcVjdQ== X-Received: by 10.84.175.3 with SMTP id s3mr28762425plb.161.1500283033664; Mon, 17 Jul 2017 02:17:13 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id y5sm14977246pge.38.2017.07.17.02.17.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Jul 2017 02:17:13 -0700 (PDT) From: Arvind Yadav To: dvhart@infradead.org, andy@infradead.org, jwoithe@just42.net, cezary.jackiewicz@gmail.com, corentin.chary@gmail.com, laforge@gnumonks.org, coproscefalo@gmail.com Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] staging: lustre: ldlm: constify attribute_group structures. Date: Mon, 17 Jul 2017 14:46:29 +0530 Message-Id: <1500282990-23929-3-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1500282990-23929-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1500282990-23929-1-git-send-email-arvind.yadav.cs@gmail.com> Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@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/staging/lustre/lustre/ldlm/ldlm_lockd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c b/drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c index fff930f..e0c3e5d 100644 --- a/drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c +++ b/drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c @@ -926,7 +926,7 @@ static ssize_t cancel_unused_locks_before_replay_store(struct kobject *kobj, NULL, }; -static struct attribute_group ldlm_attr_group = { +static const struct attribute_group ldlm_attr_group = { .attrs = ldlm_attrs, };