From patchwork Mon Jul 17 18:09: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: 9845889 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 DD4B660393 for ; Mon, 17 Jul 2017 18:11:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D3C2928515 for ; Mon, 17 Jul 2017 18:11:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C902E2851E; Mon, 17 Jul 2017 18:11:22 +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 835A52851D for ; Mon, 17 Jul 2017 18:11:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751359AbdGQSKY (ORCPT ); Mon, 17 Jul 2017 14:10:24 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:34000 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751312AbdGQSKV (ORCPT ); Mon, 17 Jul 2017 14:10:21 -0400 Received: by mail-pg0-f67.google.com with SMTP id v190so6506632pgv.1; Mon, 17 Jul 2017 11:10:21 -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=n+vO8U0CcdgiPh6/dbpcB4X+I8NjZ0Yniq15DhL81F0=; b=cJzg6U2XJQ5YezgZoZfljXaQ2/nWdo3o9yxiySXsIDyeNnAfLWbbL3WGEnOYlDV5wS uKBjglrZaakNFYWYm9yOie7H+IMfd/8dWuv2vy+Rehv2KHPH4Ior+oZwSEoS0sz0S2il qxmOmiD/jNqR02ZZiJH2FxkcRkTg9mFZg6YXf3z2JR3VDRhuH9KV6DtMbbnDw8yURLfn 5b47lUJOk8/DJHpSIEZj+kQKk7nqVVTUinHIkp5A+mdl1zmEnBRnBv0T37+rg0YM0Eu3 BRNNF8KCu9NerRYc6kb577dvdzKWTN6FNtQuC5rwCPtiVf9cnlNFfhfcbjw3dPQ7su5T VCpg== 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=n+vO8U0CcdgiPh6/dbpcB4X+I8NjZ0Yniq15DhL81F0=; b=HOdpkxQDv/dxCW0rqgj6lEH7Tk9P/Y80+zbYjFds6rowq/yCBnVdOFZZssBcQPrMA7 yK7rZZano1k3cYRyw1n+MYeoc8iwK1dh5/z2o8LNP3bTefwcf3nVDa7i3wlpFR7atEpk yy4XB0lRmZD5wVij+bf1PwJh4AFoBc6SwR+fnNcl3yDgKI3TtbJngrwUUselm3LjQZsJ /oDy2iuYQi2OpdA+7PNdEE5ZJA6V7KTrAONcBURvSoJjXmCzcOEROr0xwOSDJL9ezgHQ IblqKM7DiJ1RpTO0QK5CGLrAVSJ2XeVrPE+qDOPueP9a4cb461gdO7qfn58kNImMdLEQ 5hiA== X-Gm-Message-State: AIVw110DNlcOAuPpAQaAilSUJlY2SorI46QGRETsOmC24nOg+XrlpD77 I5ACDttrofiZhaSX0V4= X-Received: by 10.99.188.18 with SMTP id q18mr9516850pge.274.1500315020988; Mon, 17 Jul 2017 11:10:20 -0700 (PDT) Received: from localhost.localdomain ([103.16.70.163]) by smtp.gmail.com with ESMTPSA id m8sm12316823pgs.24.2017.07.17.11.10.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Jul 2017 11:10:20 -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 05/11] rtlwifi: rtl8723be: constify pci_device_id. Date: Mon, 17 Jul 2017 23:39:53 +0530 Message-Id: <1500314995-3181-6-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 3032 912 0 3944 f68 realtek/rtlwifi/rtl8723be/sw.o File size After adding 'const': text data bss dec hex filename 3096 848 0 3944 f68 realtek/rtlwifi/rtl8723be/sw.o Signed-off-by: Arvind Yadav --- drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c index f9d10f1..fdd0c41 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c @@ -380,7 +380,7 @@ static const struct rtl_hal_cfg rtl8723be_hal_cfg = { .maps[RTL_RC_HT_RATEMCS15] = DESC92C_RATEMCS15, }; -static struct pci_device_id rtl8723be_pci_ids[] = { +static const struct pci_device_id rtl8723be_pci_ids[] = { {RTL_PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0xB723, rtl8723be_hal_cfg)}, {}, };