From patchwork Mon Jul 17 18:09:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9845881 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 A3D5E60386 for ; Mon, 17 Jul 2017 18:10:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9A10028515 for ; Mon, 17 Jul 2017 18:10:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8F0892851E; Mon, 17 Jul 2017 18:10:46 +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 3608F28515 for ; Mon, 17 Jul 2017 18:10:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751476AbdGQSK0 (ORCPT ); Mon, 17 Jul 2017 14:10:26 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:33061 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751417AbdGQSKT (ORCPT ); Mon, 17 Jul 2017 14:10:19 -0400 Received: by mail-pg0-f66.google.com with SMTP id z1so5208567pgs.0; Mon, 17 Jul 2017 11:10: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:in-reply-to:references; bh=cRBCqqO4EqJYy4G4E6qOdbevGcTPWrW23R1qc5cxUMI=; b=lLDDSyAQPmuGBDKxEVdoSFAyZIv1VMyK6NpDkBlCX2qa/a/22898zNYICMnYWiMgX1 KCZI0syWZfRSswGAJ6AdiNIAQLirYFStUU99l9kFuFWGCoJmPycXbZ77I8UxcWIXmepi SXASt4md6Mzu0oWXfwxo8+xYvHa4BLLStVx5wobCBFut4VxUve0rfic0otWgxh+OFSH3 BOTM0UVZr+Pg36SgdwBm7DiHUcrNgCk7kT9LzSqSD3zO8FnwE+9H2b3uaQIntwJ8GiAm o6D2LzIjmylGMk/6qCsY8cq3gJnc4Jha+FjF+GA7KwiH8Rae5X3YKdr4AHCsG2WNh8FG gPkg== 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=cRBCqqO4EqJYy4G4E6qOdbevGcTPWrW23R1qc5cxUMI=; b=keV5PvndBA6v6iW/wc2aK5KxGvTMS6n7md6UjWiCRvTZug+QawlgUYdznKVj+cBBu2 pOOIRsFU3otWbkm82U6jhC0D9YxOXcN2S9nA3hDzI2RhBO5UcGPnMos29WOIGQvDf6mG kGZmHAU202fyEdZSrGyQ5E9uQ8VDqlqNAhTAM9HFwkJ8UN4vxdzUO2hvItQmJer8gBTg jyW0K6SxTM5tYCdObbv+qv0ciSg0HIkLwtIT+PEB0zWA7A0oGmoh7ASF0bJjSVAT4aTD u/13T6nUNRQiBCb7otiCr3SH7GViAl/BkrmWxngWu3PurXh4YMkOhDtXuLzNFxW1FX0/ ivug== X-Gm-Message-State: AIVw110khP5Wgnd3eTXvSF/4xiYzHUeLs6WIftVIftMvR1gLHFq+OuCw d4yRWJytwW3OKiEkmqo= X-Received: by 10.99.167.11 with SMTP id d11mr14222827pgf.182.1500315018418; Mon, 17 Jul 2017 11:10:18 -0700 (PDT) Received: from localhost.localdomain ([103.16.70.163]) by smtp.gmail.com with ESMTPSA id m8sm12316823pgs.24.2017.07.17.11.10.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Jul 2017 11:10:17 -0700 (PDT) From: Arvind Yadav To: Larry.Finger@lwfinger.net, chaoming_li@realsil.com.cn, kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 04/11] rtlwifi: rtl8723ae: constify pci_device_id. Date: Mon, 17 Jul 2017 23:39:52 +0530 Message-Id: <1500314995-3181-5-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500314995-3181-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1500314995-3181-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 pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: text data bss dec hex filename 2775 912 0 3687 e67 realtek/rtlwifi/rtl8723ae/sw.o File size After adding 'const': text data bss dec hex filename 2839 848 0 3687 e67 realtek/rtlwifi/rtl8723ae/sw.o Signed-off-by: Arvind Yadav --- drivers/net/wireless/realtek/rtlwifi/rtl8723ae/sw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/sw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/sw.c index 7bf9f25..87dc271 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/sw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/sw.c @@ -367,7 +367,7 @@ static const struct rtl_hal_cfg rtl8723e_hal_cfg = { .maps[RTL_RC_HT_RATEMCS15] = DESC92C_RATEMCS15, }; -static struct pci_device_id rtl8723e_pci_ids[] = { +static const struct pci_device_id rtl8723e_pci_ids[] = { {RTL_PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8723, rtl8723e_hal_cfg)}, {}, };