From patchwork Tue Jul 18 09:45:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9847363 X-Patchwork-Delegate: kvalo@adurom.com 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 D8D0260392 for ; Tue, 18 Jul 2017 09:46:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CAC112625B for ; Tue, 18 Jul 2017 09:46:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BF96528516; Tue, 18 Jul 2017 09:46:11 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI 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 77A142625B for ; Tue, 18 Jul 2017 09:46:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751962AbdGRJpw (ORCPT ); Tue, 18 Jul 2017 05:45:52 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:35629 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751927AbdGRJps (ORCPT ); Tue, 18 Jul 2017 05:45:48 -0400 Received: by mail-pg0-f65.google.com with SMTP id d193so2194509pgc.2; Tue, 18 Jul 2017 02:45:48 -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=fZo48oNaqQA3/g4+pX9Rde1PhfF7+ycHfvaQ3C+N5ck=; b=XTnJBcglqMYi0zHKihfnF7N7YDait9kWd0LEkyKBsN3H5lLFVuyxqeH8GR3YlU9XJa JjfaNOnWobn0ewEmfxT3VqOE+3cKBAKss9/BTnMo6yciiF9pz82S25jKOJqzAPsK84lS ORAfaKdjaMaWqgWCGApwbkktMWRzzvH2Ol5cb2Ib9NN28jUBZeokfQOQ0oJ1o1KaaPfk YAwigXaXMK3HuMExq/ob/lBjR6vg9NgzS7cbntaSbHhkJTn5QvZ5OljmhnrIZPRIfJoI dtIBvcy38thJxCOEhdrRK/lCwTzPpKEV4TpyAFHkF3fBPp1i+Xflz2AHnYT8g7xiFd2K SRUA== 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=fZo48oNaqQA3/g4+pX9Rde1PhfF7+ycHfvaQ3C+N5ck=; b=ECqBAf3O8Gqu8Ym/vsF9MoLJClammo9tBX3DLAnbPrlwid1hVQPb5gJp/THLJ3DpEF zfEjjJF+lieZ4M5cDRX6GGUvL2uc1LAYhgMZvz+YtNA+zI6KPYBnGJMUWe6/A9xQOKdD NquGeRcFtsC97xGHw5SPYRbLDe9r/c/y/t++OSZ9o/NWPESAbSQU1swo3bmw6Mrfdt1q iVSFrJb1DabXYx9VFSE3rNby4DEcwnWmh+CdFNFLuqJrUIx/IIUonn+k8r/Wmontog+l BfkyikavASwH37jbV91VB7aq+uAv+IL85D5XkAiFYYKT/7kilegolEtlV8zcdXOXRl3q aZaA== X-Gm-Message-State: AIVw1103FGTLCmtfxB3f1Ou1Tv8b+mWlSfeJGbbE7QywOJtd164ebr8x sWwOHqxaoCzLIg== X-Received: by 10.98.147.69 with SMTP id b66mr774931pfe.148.1500371148024; Tue, 18 Jul 2017 02:45:48 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id t17sm3349084pge.55.2017.07.18.02.45.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Jul 2017 02:45:47 -0700 (PDT) From: Arvind Yadav To: davem@davemloft.net, stas.yakovlev@gmail.com, kvalo@codeaurora.org, sgruszka@redhat.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH v3 07/10] wireless: iwlegacy: Constify attribute_group structures. Date: Tue, 18 Jul 2017 15:15:02 +0530 Message-Id: <1500371102-14758-4-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1500371102-14758-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1500371102-14758-1-git-send-email-arvind.yadav.cs@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- Changes in v2: Added cover later. Changes in v3: net-next was closed. Now resubmitting it. drivers/net/wireless/intel/iwlegacy/4965-mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlegacy/4965-mac.c b/drivers/net/wireless/intel/iwlegacy/4965-mac.c index 5b51fba..de9b652 100644 --- a/drivers/net/wireless/intel/iwlegacy/4965-mac.c +++ b/drivers/net/wireless/intel/iwlegacy/4965-mac.c @@ -4654,7 +4654,7 @@ static DEVICE_ATTR(tx_power, S_IWUSR | S_IRUGO, il4965_show_tx_power, NULL }; -static struct attribute_group il_attribute_group = { +static const struct attribute_group il_attribute_group = { .name = NULL, /* put in device directory */ .attrs = il_sysfs_entries, };