From patchwork Thu Jul 20 17:39:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9855461 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 C60E1600F5 for ; Thu, 20 Jul 2017 17:43:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B4497287A8 for ; Thu, 20 Jul 2017 17:43:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A963628827; Thu, 20 Jul 2017 17:43:30 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 525E3287A8 for ; Thu, 20 Jul 2017 17:43:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965458AbdGTRnQ (ORCPT ); Thu, 20 Jul 2017 13:43:16 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:34709 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966071AbdGTRlJ (ORCPT ); Thu, 20 Jul 2017 13:41:09 -0400 Received: by mail-pg0-f67.google.com with SMTP id v190so3320559pgv.1; Thu, 20 Jul 2017 10:41:09 -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=eOutoxaezc+ZaJ2Yz0shjLjS5m+kv9Ow5Upo8kVGZoA=; b=GqxDvooDI22uVUyz+Rhasfz6focc64RKGlC/NOmZnDmmbWF9yfK1t1bJMRMCXGJO7R cRR0e7GmtqgHuAYdZA6oj3G5qY5t6fczmyZoqLiFfItUdvI/2fMnCyTeyoLxUpjSmN+/ lsRhQj6sohlrGBWJgHqz4NzQU8uufWsXWBBqiHMFI/cziOZunJnGZ9gyeiVhPlCwCDCw sKRPnHSXfEP9hrGbiSb4pASi0rAnMZu9/AwouVxZTzGu3aLFXfNWppMJovd28u2fcARc ECVZrgaN/M2CcpmTJEE0RKamLG6g9yFgjB6SR7m6+ENMWeUqvY/Xg26vmkoUEuMOMqsI NACQ== 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=eOutoxaezc+ZaJ2Yz0shjLjS5m+kv9Ow5Upo8kVGZoA=; b=eYGC9WUwisTC7UsyZ0F03gdZYE6ELhqYbtBqvtWbOTegnHonx6B/AbNB+u2+LKq1WW 397t0q+jcFpWVYhXfocpab6HfFOa/biTSJIb3xnJtA5/ra7KaWRdD5eizfKJNqG1EUw3 OR5CePS40bxSwHfDM38e4wRayQao3681uQ1kjlXb4IUGuWNV1CMxT4o84aDljtOUTdjn jK+BuXMMrtnlSwIMoC6Inwc4+yGbW6zJ4MqsLAgnzoObLyQapGUIlZ4waK8aCtGXt/S1 LxUyzOhJneD/MEpKxBVFqIEMuMp+fwR/kzwIvsZb/PyjOHMWmN3zU35R9VzJ+A0uQsci 7FPw== X-Gm-Message-State: AIVw111v26ecE587RfinPgbCsfBXPSYeojK4rW6/vjliLIG95bR1qjF+ wU4WtJerldZNIQ== X-Received: by 10.98.23.74 with SMTP id 71mr4765273pfx.151.1500572469330; Thu, 20 Jul 2017 10:41:09 -0700 (PDT) Received: from localhost.localdomain ([103.16.70.17]) by smtp.gmail.com with ESMTPSA id n90sm6315528pfk.105.2017.07.20.10.41.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Jul 2017 10:41:08 -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 20/28] video: fbdev: sunxvr500: constify pci_device_id. Date: Thu, 20 Jul 2017 23:09:45 +0530 Message-Id: <1500572393-18844-21-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 170 488 0 658 292 drivers/video/fbdev/sunxvr500.o File size After adding 'const': text data bss dec hex filename 394 264 0 658 292 drivers/video/fbdev/sunxvr500.o Signed-off-by: Arvind Yadav --- drivers/video/fbdev/sunxvr500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/sunxvr500.c b/drivers/video/fbdev/sunxvr500.c index dc0d886..bc59593 100644 --- a/drivers/video/fbdev/sunxvr500.c +++ b/drivers/video/fbdev/sunxvr500.c @@ -393,7 +393,7 @@ static int e3d_pci_register(struct pci_dev *pdev, return err; } -static struct pci_device_id e3d_pci_table[] = { +static const struct pci_device_id e3d_pci_table[] = { { PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x7a0), }, { PCI_DEVICE(0x1091, 0x7a0), }, { PCI_DEVICE(PCI_VENDOR_ID_3DLABS, 0x7a2), },