From patchwork Mon Jul 17 18:09:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9845899 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 42B6360386 for ; Mon, 17 Jul 2017 18:12:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 393F228515 for ; Mon, 17 Jul 2017 18:12:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2E3892851E; Mon, 17 Jul 2017 18:12:07 +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 27F9A28515 for ; Mon, 17 Jul 2017 18:12:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751398AbdGQSKP (ORCPT ); Mon, 17 Jul 2017 14:10:15 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:33002 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751312AbdGQSKL (ORCPT ); Mon, 17 Jul 2017 14:10:11 -0400 Received: by mail-pg0-f67.google.com with SMTP id z1so5208114pgs.0; Mon, 17 Jul 2017 11:10:11 -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=PxhQKQDaFmHrtKwfCam074YiFlVsU+tk2Hte3SLxIyg=; b=dQLsCHgf+5VlzZv7z62gVvDgdOVc5DHfqTiSopFOY3TbRVZ2RXELFT34Eeo1vPbAXR DAf6yqukrCcSf5MectW1vyBkVjAPL59vgBjzYMKMOqe8jUMZAwJHe2WF+kghLn6XZzWu zvOmZpffZO3/oCKETfjncNcfH/zMGXY6S42U0jVkzdg8KSw4gHRFQnGXh6iyeYe1TsIf wzhMcgKckisp49uAn8lNfepGPEPUGyUEymvyuDZZaXF05cy4HrKqcOWsdNXMjxBOuD9T NQUcD2TvU7FqYb8dlFuGXVoW+HcoNRpox6cJ+Da9FXiKaV5tcBpQvj5fRLQKCGw3X/Qe wRdQ== 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=PxhQKQDaFmHrtKwfCam074YiFlVsU+tk2Hte3SLxIyg=; b=WhLwJf7TzhHa3Tt0MQ/3vrZSOOr67x434Y9+twZllYhMpji9Z7Hv3R6x7QcJMn0PwE lDwsw6AN8CTWmafs4LpcYwZnLa2ZkaDSg6gdqTs+KF7DXXBkGWYa0u80zKSsSRTA2DpL aNH8oFgiLUfCLkEf4g0Fmcocv7J+WA437ordCFMqKG89AgZMKKHvYSyo1JgLa7jhghU2 yr/7XKcN1sCdPK92+bsgCcBzvmw0BD9vmG1lXehfIkdHt+EfTK3gDIfTZmtdngHag5x2 /bcsoNC0Fo+RyR0wYIaqbhll9e+F2OjX4lX2MCVkplCIor8be8oY0d+QmL/NJi4FK3Hi aQ9w== X-Gm-Message-State: AIVw113dubADM4Y/QXYtQrzxLCSmQf8G1hifN3lmyRxfYOsLgp9oXffd G+ReuCTuVlHf+YbldwI= X-Received: by 10.84.133.37 with SMTP id 34mr31307988plf.58.1500315010889; Mon, 17 Jul 2017 11:10:10 -0700 (PDT) Received: from localhost.localdomain ([103.16.70.163]) by smtp.gmail.com with ESMTPSA id m8sm12316823pgs.24.2017.07.17.11.10.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Jul 2017 11:10:10 -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 01/11] rtlwifi: rtl8192de: constify pci_device_id. Date: Mon, 17 Jul 2017 23:39:49 +0530 Message-Id: <1500314995-3181-2-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 2833 945 12 3790 ece realtek/rtlwifi/rtl8192de/sw.o File size After adding 'const': text data bss dec hex filename 2929 849 12 3790 ece realtek/rtlwifi/rtl8192de/sw.o Signed-off-by: Arvind Yadav Acked-by: Larry Finger --- drivers/net/wireless/realtek/rtlwifi/rtl8192de/sw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192de/sw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192de/sw.c index 16132c6..be23dac 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rtl8192de/sw.c +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192de/sw.c @@ -347,7 +347,7 @@ static const struct rtl_hal_cfg rtl92de_hal_cfg = { .maps[RTL_RC_HT_RATEMCS15] = DESC_RATEMCS15, }; -static struct pci_device_id rtl92de_pci_ids[] = { +static const struct pci_device_id rtl92de_pci_ids[] = { {RTL_PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8193, rtl92de_hal_cfg)}, {RTL_PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x002B, rtl92de_hal_cfg)}, {},