From patchwork Thu Jul 20 17:39:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9855451 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 E1411600F5 for ; Thu, 20 Jul 2017 17:42:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CEE9A287A8 for ; Thu, 20 Jul 2017 17:42:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C3CA528827; Thu, 20 Jul 2017 17:42:50 +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 6C159287A8 for ; Thu, 20 Jul 2017 17:42:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966100AbdGTRlU (ORCPT ); Thu, 20 Jul 2017 13:41:20 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34913 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966030AbdGTRlS (ORCPT ); Thu, 20 Jul 2017 13:41:18 -0400 Received: by mail-pf0-f196.google.com with SMTP id q85so2913840pfq.2; Thu, 20 Jul 2017 10:41: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=Dc2Ghb5BgLbUC2veeKap52r5kowaWS4WP/8IkcqtNG0=; b=bihsBd+nto/wX3yreHPC1DODXaC/pcIWGipv/3sJP49OgIRLC7pBHDyG5sETc5tJd1 wM7PNS/AAMkByYbGp/Lg6LZtiCkt0VjlqscvrhMXiGGgYaqao55ZP9BHikAyTEMRHK2D pQjznOOiuiTIh3MlX0sz1nYlowMEGup+mm4wxdcNHwKHWmCJB1pUIBtqm7hCb9Y8jscw E6ULsJ2UntkBUrjEE+8WpzIxjVOD8zHUy23p6SJybbnA6WXTFXT0iQ2M1N9Vs0LY+k3O IlpFrvE0QDF7dcvvEtE66i5XCmTBPdqGf65U/CO6P0dxfuuA0woPeMgwtltHZrRn1/Z+ co+Q== 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=Dc2Ghb5BgLbUC2veeKap52r5kowaWS4WP/8IkcqtNG0=; b=dIzL4DQVILCDFIkNAvxwB22AacdJy9zsTtcT2oBPmBap1D0fjnL8ly6i75RYitkLie +fHuXKya6+gcZp7c5/+0pyBecZj652mGmx9gnMOKI5ZGkp1bfaPuyToKjz8aJ61U1RmZ LULFah3Q/WqqrLWXl4I605/D1+N0lAbSuknRwUYDybMSvHGjxSU9heJBZWP6NzKucNTQ Wyv1yuB7b9EcmZpAL+e11xmfd9Glbw/y4Eecd9yckS0fPKkx0umt4MJH216jHySBufJN Nlp+DCNfM8cZcO1ubyZLU29uBq9+2S1Je5VRJv/HRU2/+yGqya1vCQWevLaQWDZl6ioT JVpg== X-Gm-Message-State: AIVw111v3KIbWUwTMCOmsF7bMOX2bMhtwWwGoxNX1DmYLbaPIZJO+QsG i9rRq63hZlqVxg== X-Received: by 10.99.127.14 with SMTP id a14mr4835379pgd.112.1500572478156; Thu, 20 Jul 2017 10:41:18 -0700 (PDT) Received: from localhost.localdomain ([103.16.70.17]) by smtp.gmail.com with ESMTPSA id n90sm6315528pfk.105.2017.07.20.10.41.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Jul 2017 10:41:17 -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 23/28] video: fbdev: gxfb: constify pci_device_id. Date: Thu, 20 Jul 2017 23:09:48 +0530 Message-Id: <1500572393-18844-24-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 2643 1616 16 4275 10b3 video/fbdev/geode/gxfb_core.o File size After adding 'const': text data bss dec hex filename 2707 1552 16 4275 10b3 video/fbdev/geode/gxfb_core.o Signed-off-by: Arvind Yadav --- drivers/video/fbdev/geode/gxfb_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/geode/gxfb_core.c b/drivers/video/fbdev/geode/gxfb_core.c index ec9fc9a..f4f7637 100644 --- a/drivers/video/fbdev/geode/gxfb_core.c +++ b/drivers/video/fbdev/geode/gxfb_core.c @@ -474,7 +474,7 @@ static void gxfb_remove(struct pci_dev *pdev) framebuffer_release(info); } -static struct pci_device_id gxfb_id_table[] = { +static const struct pci_device_id gxfb_id_table[] = { { PCI_DEVICE(PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_GX_VIDEO) }, { 0, } };