From patchwork Tue Jul 18 09:45:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9847377 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 7CA8F60392 for ; Tue, 18 Jul 2017 09:48:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 68ECD2625B for ; Tue, 18 Jul 2017 09:48:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5DB5828516; Tue, 18 Jul 2017 09:48:17 +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 157D12625B for ; Tue, 18 Jul 2017 09:48:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751401AbdGRJry (ORCPT ); Tue, 18 Jul 2017 05:47:54 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:33277 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751409AbdGRJpm (ORCPT ); Tue, 18 Jul 2017 05:45:42 -0400 Received: by mail-pg0-f66.google.com with SMTP id z1so2209148pgs.0; Tue, 18 Jul 2017 02:45:42 -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=6yDjkbJUFosgaLZbHtiMhYbz/i6Bj2txHZYv3Eo6ys4=; b=VFAFaBQDXR8nUMKSyk1RKRICgDI+s9+geTLIXrUUDSi9bG3PrY/23udIb7U/jRRi0l dQuIJvIBeeib0HrmGQgRq5yEtuSiR+QTGU9MDZmg4W2FP95tgYAlEZfpFHezM6Xwubqi dyQQR/Ahh+5kXaf0H6JD9NmCz2Ler63LPr9llr+IqzUkrPqDimzaiq9NPZAIO+RHT6aE g34z/kW/pDJl2ePBm4xUhxzGhOeWChNoAJg4J6tpD2hPs2r1Oi0zblb/6ZE6DXuKOTDm MUoVO5Pd5Ie+AR5+/lvnkPcjT8Qnkgv3AjQgULFgwG5teI0sAC8UIYVxKlBJDmspGIrc aEvw== 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=6yDjkbJUFosgaLZbHtiMhYbz/i6Bj2txHZYv3Eo6ys4=; b=FkyPSGViW/y+G9A08aGwNQZ/50lpXH+5WLMjfuhkKr857LiEDqhTKwL9aAGwycsr3L VJjMyaPRCUWntRU1FIqr5Nq3PRbPbIyQSTiv739pFCwlV5rwyESbUSfHg2/4WYxWIyC8 mKEeA+39Pv9cTF1VFbdfKZTF8amLM5EA+xIO2/A+k+57JQQ6tbl75l35/OHwB42tuHAj iAILvRZTvbE57Z4+cQ8xYhM3GQvSQco+LJ3vYP5UdPC7Z56KhB53GllvL84Q7I6YrROc K0aCTfUq+wmEzdBeRDWV4J4lFi7SgtzhPouWvt4JJ92geeBFiVcnPLLEe4O7Mqdn3txs IYUw== X-Gm-Message-State: AIVw1135Ph9DQUcboswUwdz/uOfufG6FOtJwvu5tfEc/zZr1YkmGM4wf QYOw+8jrpF9U/w== X-Received: by 10.99.122.5 with SMTP id v5mr120126pgc.188.1500371142299; Tue, 18 Jul 2017 02:45:42 -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.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Jul 2017 02:45:41 -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 05/10] wireless: ipw2100: constify attribute_group structures. Date: Tue, 18 Jul 2017 15:15:00 +0530 Message-Id: <1500371102-14758-2-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/ipw2x00/ipw2100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2100.c b/drivers/net/wireless/intel/ipw2x00/ipw2100.c index aaaca4d..ccbe745 100644 --- a/drivers/net/wireless/intel/ipw2x00/ipw2100.c +++ b/drivers/net/wireless/intel/ipw2x00/ipw2100.c @@ -4324,7 +4324,7 @@ static ssize_t store_rf_kill(struct device *d, struct device_attribute *attr, NULL, }; -static struct attribute_group ipw2100_attribute_group = { +static const struct attribute_group ipw2100_attribute_group = { .attrs = ipw2100_sysfs_entries, };