From patchwork Mon Jul 10 09:42:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9832643 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 4735A60318 for ; Mon, 10 Jul 2017 09:43:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3BE0028458 for ; Mon, 10 Jul 2017 09:43:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3069F28469; Mon, 10 Jul 2017 09:43:40 +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 E5A7928458 for ; Mon, 10 Jul 2017 09:43:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753268AbdGJJnU (ORCPT ); Mon, 10 Jul 2017 05:43:20 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:34579 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752317AbdGJJnT (ORCPT ); Mon, 10 Jul 2017 05:43:19 -0400 Received: by mail-pf0-f193.google.com with SMTP id c24so13788628pfe.1; Mon, 10 Jul 2017 02:43:18 -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=URPoWwqkU9t6JTwDleGKFZKwPR+wJg9JFE+rCji0XOY=; b=tydVrKrSPWBaKZcRmxw3TesQPj4Xb4wdLmC4bwO5kwze6iSz3k9Z0l/n7uG0uBa5rP ha0rQE81ZANdEm/8r+Z9OXU+HByuoz8ShCZIDZvZOtpFRfaPdiYvKVx7tQ9lZ0hbqGuG b3kPvcyPSiX8ZzvkbPQ23sctXG2CFUPSaZx2o4Jr1vdEn6kykCNt7cVx5nkdFOHM0+4W DIFPL8a+kj2k4iv4YzGwOEFC8dlcrc9x4aSNHfSkmxzPhquyo6P3ip3FYqgMc7W1uepL LSdSh+uN+JbvllbhOL0PWNCQZ3PmGDVhCqHLrdb7ZJ1fDpO2dAZWMRDVIHG5MoMkkh/0 pExw== 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=URPoWwqkU9t6JTwDleGKFZKwPR+wJg9JFE+rCji0XOY=; b=Woht8S+0glc4+CCBmhpfB58eTu6/pGD6PCoxaZi0QRwSJTfFk8nn52yNFonztzU1Nb /hmFdbjJcOi754fBniG6ojjAWsG4WB60/Sf54X8DS9yP3e07eAy+16I62rYRrvzQ9ENR 1Cd7YEP+LQ3itbTyVXIw14WvDMwvbHE6IB0cuhSbVG7s24yMfC7t0Wuoi8/PBo3VMcWp nHGEHLODj72f6ee3cLByOEPI4DkFoZuvVap5y9iy/xQOnr/wE1IShThjIsCLJqk3tAj0 a50m96RYpjXAa//Pa8xIMns+vZXjJIpXZqoGyF/qgM24BPcgBvQoRw797YQwD5rkDlee T3Nw== X-Gm-Message-State: AIVw111FlFrNUSMK5tWg6t2fb3BhQXOSDRuv9xI2T1lUfVyp4IYdVmBE Yq98f1wJ5fgxWQ== X-Received: by 10.98.10.68 with SMTP id s65mr43203350pfi.89.1499679798458; Mon, 10 Jul 2017 02:43:18 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id e187sm17247196pfg.38.2017.07.10.02.43.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 10 Jul 2017 02:43:17 -0700 (PDT) From: Arvind Yadav To: sgruszka@redhat.com, kvalo@codeaurora.org, davem@davemloft.net Cc: netdev@vger.kernel.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] wireless: iwlegacy: constify attribute_group structures. Date: Mon, 10 Jul 2017 15:12:53 +0530 Message-Id: <4333d7c1a2e0c5def85b1d0a42672499890f9f4c.1499679699.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 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_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/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, };