From patchwork Mon Jul 10 09:23:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9832629 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 A54FC60363 for ; Mon, 10 Jul 2017 09:23:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 993AC2821F for ; Mon, 10 Jul 2017 09:23:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C4DD2844E; Mon, 10 Jul 2017 09:23:57 +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 5150E2821F for ; Mon, 10 Jul 2017 09:23:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753273AbdGJJXm (ORCPT ); Mon, 10 Jul 2017 05:23:42 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:34974 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753171AbdGJJXl (ORCPT ); Mon, 10 Jul 2017 05:23:41 -0400 Received: by mail-pg0-f67.google.com with SMTP id d193so12025708pgc.2; Mon, 10 Jul 2017 02:23:41 -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=KoLeSBnnKJvzyXRJdAYqXLt8ZPMOb/dgZB5SVqoHoNc=; b=hLdPVwFIqTmNg7cmXeFls8B9mS50wFC9SKZztjvz5CsdbtHS0QNqtoX+R/jBEFHaIX XYEhx+8YHzQlixallnhtO8NngcHwpdXMOMJrFxBO6tgD6SaYOWhF0G4cEh6w44cSXdwd 9cfXDLFWVfZ6KmB128gSknFrbMcVRy3wOWMlKTJIlq+kxoA7UlR7MY5lHLWtAVcMXAs1 n6ZJ0VigxaXSjO1yJ0PLj/NmZvGcURRL8i4w/pSVeSAuY5f53ZnXUcwx+aU2hQuIqg3u tGFGToFY2nQr8LeXKQNcVdNg4KyaopQWG4JILCDno6mUdFiQ06URvZfomCL2AZGq3C9Z RaiA== 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=KoLeSBnnKJvzyXRJdAYqXLt8ZPMOb/dgZB5SVqoHoNc=; b=N5St+k0+wZHVAVssdlfYluC/RQSeISoJx0i0B+ovmy1gn31WWRAKJoZlxshHLl8t5S Jxla9FfJMr3REJRp7nDdEogPdOGJTrFMm3UMFa6KxAdMAGfIwhh5GOaxq/ZHZlxsXgYX r3ONoO0OtqWeam9vuNsB3wETBgUa7kpLJJ9bWZD9jbkGuzbksaEp5kwF4uEV5wUW/V8u 779METsUM/kWFZDuFZ+ofJY2eHzEzpvCu9WnJC/z8x+rqhlv8Bh/SbKYy/QxOEBk2URX RJU1oAzjGu0du91RH52Dj1VCsYnasV2xwPHytSdrQK60bzH4DSURPXbnYmqMX1CnKkEx nWFQ== X-Gm-Message-State: AIVw111F0QkGOx+8E2LUw0ygSGYDKM192lvUJ8RJQlL+YG9PjbKafnUA icWe1mCTWkV7f00umHE= X-Received: by 10.84.232.200 with SMTP id x8mr17030336plm.252.1499678620931; Mon, 10 Jul 2017 02:23:40 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id g184sm23019320pfb.3.2017.07.10.02.23.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 10 Jul 2017 02:23:39 -0700 (PDT) From: Arvind Yadav To: stas.yakovlev@gmail.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: ipw2200: constify attribute_group structures. Date: Mon, 10 Jul 2017 14:53:15 +0530 Message-Id: <898c825b6cba0d86729678f7bb7e8d860e2f13e1.1499674387.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/ipw2x00/ipw2200.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2200.c b/drivers/net/wireless/intel/ipw2x00/ipw2200.c index 9368abd..c311b1a 100644 --- a/drivers/net/wireless/intel/ipw2x00/ipw2200.c +++ b/drivers/net/wireless/intel/ipw2x00/ipw2200.c @@ -11500,7 +11500,7 @@ static int ipw_wdev_init(struct net_device *dev) NULL }; -static struct attribute_group ipw_attribute_group = { +static const struct attribute_group ipw_attribute_group = { .name = NULL, /* put in device directory */ .attrs = ipw_sysfs_entries, };