From patchwork Tue Jul 18 09:45:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9847371 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 E05BF60392 for ; Tue, 18 Jul 2017 09:47:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CE2902625B for ; Tue, 18 Jul 2017 09:47:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C327228516; Tue, 18 Jul 2017 09:47:35 +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 8CF002625B for ; Tue, 18 Jul 2017 09:47:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751912AbdGRJps (ORCPT ); Tue, 18 Jul 2017 05:45:48 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:36483 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751893AbdGRJpp (ORCPT ); Tue, 18 Jul 2017 05:45:45 -0400 Received: by mail-pg0-f68.google.com with SMTP id y129so2192496pgy.3; Tue, 18 Jul 2017 02:45:45 -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=/j0ryfFENgwOy7myKoedcByIcq+oJD4W5H2TNFXgoSw=; b=d9HICthRE/L57RtWdr3pZWbymYY9MGwUf28qnnRF70+Cr4ORLZ3el02Y8JluYiFP4Q UP4+nh3xft6xAVrCJ59fhPwTXActnkFM9tg00OmxY34j+zG0mVMKwDFUMAKFCMHp9cx/ GOJC9v/r6Z3lKSPaORlQE4nI4vytwEGMqcRPXwVSnCIQmN0fSqRThKicYxKZwLZopg5y w/6h6K6J698w61drFoEGcOVif0mq7ziHe9GIcvGqThqhDYHZEFs/GAhmREjoU9a2uoZD sk4E/vouX1l6M9fL2fPbCBBublokH0s/RZ75L5uQKhptVIq6x8TQInaLTdKUmU4sj0IR VxhQ== 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=/j0ryfFENgwOy7myKoedcByIcq+oJD4W5H2TNFXgoSw=; b=JKFYQSsz5lPFQTtqWZBQ28plHcnXKLMO01rZ5jwdUyUSquPCndHlSXXqIL0lHnUVNj FFqhts54F5Hnyjwip/Lq7YkYjwnEajIqrAgkSRWrHSFB5XIVNR9CV80VSmD9Ib3zTu8m Whlow2aqoi+JlYsChOkSX4eS7MgVqmNdBtT4BRskEeCwOGklejiWvU2X+fj+hryPd7fm yoInPqo1rG7UzGEl7Q8fxEG8zLnk9MuI6WJhdhv0urx/e3R3Kyqqub3xBaxDoVCH2hvM OWD5Ekt6CSetTHaRJ9dVBc7QbNiGzFS4f9/iuHAL7WfvHKJEmSTsswR5x6KMahbmVWAY wI1A== X-Gm-Message-State: AIVw111Rm+4Ot1IubMbq9iZ4TRgRK6EfDI3cYuQFs46ymMYzXxHbxMPK dYw9K9SzJ4qLnw== X-Received: by 10.99.96.74 with SMTP id u71mr698979pgb.129.1500371145103; Tue, 18 Jul 2017 02:45:45 -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.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Jul 2017 02:45:44 -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 06/10] wireless: iwlegacy: constify attribute_group structures. Date: Tue, 18 Jul 2017 15:15:01 +0530 Message-Id: <1500371102-14758-3-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/3945-mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlegacy/3945-mac.c b/drivers/net/wireless/intel/iwlegacy/3945-mac.c index 38bf403..329f3a6 100644 --- a/drivers/net/wireless/intel/iwlegacy/3945-mac.c +++ b/drivers/net/wireless/intel/iwlegacy/3945-mac.c @@ -3464,7 +3464,7 @@ static DEVICE_ATTR(antenna, S_IWUSR | S_IRUGO, il3945_show_antenna, NULL }; -static struct attribute_group il3945_attribute_group = { +static const struct attribute_group il3945_attribute_group = { .name = NULL, /* put in device directory */ .attrs = il3945_sysfs_entries, };