From patchwork Thu Jul 20 17:39:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9855509 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 C9625600F5 for ; Thu, 20 Jul 2017 17:47:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B96ED2882A for ; Thu, 20 Jul 2017 17:47:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AE71A2882C; Thu, 20 Jul 2017 17:47:28 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham 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 6C2AC2882A for ; Thu, 20 Jul 2017 17:47:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965915AbdGTRkX (ORCPT ); Thu, 20 Jul 2017 13:40:23 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:33629 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965907AbdGTRkT (ORCPT ); Thu, 20 Jul 2017 13:40:19 -0400 Received: by mail-pg0-f66.google.com with SMTP id z1so3320760pgs.0; Thu, 20 Jul 2017 10:40:19 -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=vftOoUT7r8iLlRaJojll6LCGLEcNyvNs22mzbakwQkg=; b=rtaZqcsQjWQ8oEbrZnJi8NNM8hQwAPa7yZMClN6h4bxdN7XS63e52A0dbQT81A8O3Y jePT6YV0Ph4cGwW7oJtgr8gxQle+TKuvUPh3DLEB7fTXcjg5eDBvYPYhsAFzt00YozFf qZ16m04Fx9PfziqwwcWOw1YtW4hYIOZ6pUKPyozlUuz2uSnstS0U4SbfcRyYySibXW0b mrdtjUzP6DGANdS3+PWearTzcQt5X3jVW1Q74lyvJk88gK0tJdI84dzeX8M8Ce0/SLxf XKQcRthwUhWBHg2aF1vD1GWLd7bSfGaEuhBXKmtlttDy1b0BIsWnEdcfI/djOOZHYE6g xxSw== 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=vftOoUT7r8iLlRaJojll6LCGLEcNyvNs22mzbakwQkg=; b=jgqiEV0Y3pVbTAEZ5pALq2oz4aNEMKIrPKAdGQaUuodPtOEJGVXBIATeCFJbHk2YoC hcRDAKAF0phy/b3G9Tq7rIh8WTcy5VOCMnPNKmin1yVdeNw82rpTiriSaXB5Y1HNo87G 9bdXELfy1ku3OO9GH2MZtT0PmjBibtHSk7J42ILp5KLyqwbHWMzJaB6s2won9r2F9Ya6 B9Yi/2XU7kiygGnnaPl4v+R/uSYhdDmwiCsLLNdZ5SdOtxM58CxuKx6Qkr+eeF48Vypi WBfm/fr+h3lhHa1Nm2qavF2DtS4S1z4sqI3mfDeqj3B9RWLKPg93EGYtzGQIxXADr1fV sPQg== X-Gm-Message-State: AIVw110m5suGCDWHNHvBY2KfM9mAZPEBUs7tIT3GOMj1qqGElmo+s+j/ uJcwVRIQc0/XlQ== X-Received: by 10.101.83.139 with SMTP id x11mr4556015pgq.336.1500572418721; Thu, 20 Jul 2017 10:40:18 -0700 (PDT) Received: from localhost.localdomain ([103.16.70.17]) by smtp.gmail.com with ESMTPSA id n90sm6315528pfk.105.2017.07.20.10.40.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Jul 2017 10:40:18 -0700 (PDT) From: Arvind Yadav To: b.zolnierkie@samsung.com, paulus@samba.org, benh@kernel.crashing.org, adaplas@gmail.com, mbroemme@libmpq.org, FlorianSchandinat@gmx.de Cc: linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 04/28] video: fbdev: sunxvr2500: constify pci_device_id. Date: Thu, 20 Jul 2017 23:09:29 +0530 Message-Id: <1500572393-18844-5-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500572393-18844-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1500572393-18844-1-git-send-email-arvind.yadav.cs@gmail.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@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 390 552 0 942 3ae drivers/video/fbdev/sunxvr2500.o File size After adding 'const': text data bss dec hex filename 686 256 0 942 3ae drivers/video/fbdev/sunxvr2500.o Signed-off-by: Arvind Yadav --- drivers/video/fbdev/sunxvr2500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/sunxvr2500.c b/drivers/video/fbdev/sunxvr2500.c index 1a05329..544465b 100644 --- a/drivers/video/fbdev/sunxvr2500.c +++ b/drivers/video/fbdev/sunxvr2500.c @@ -220,7 +220,7 @@ static int s3d_pci_register(struct pci_dev *pdev, return err; } -static struct pci_device_id s3d_pci_table[] = { +static const struct pci_device_id s3d_pci_table[] = { { PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x002c), }, { PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x002d), }, { PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x002e), },