From patchwork Thu Jul 20 17:39:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9855521 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 A3B6D600F5 for ; Thu, 20 Jul 2017 17:48:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 944AD2882C for ; Thu, 20 Jul 2017 17:48:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 892A32882D; Thu, 20 Jul 2017 17:48:18 +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 3A5D028832 for ; Thu, 20 Jul 2017 17:48:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934091AbdGTRr7 (ORCPT ); Thu, 20 Jul 2017 13:47:59 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:35047 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965902AbdGTRkQ (ORCPT ); Thu, 20 Jul 2017 13:40:16 -0400 Received: by mail-pg0-f67.google.com with SMTP id d193so3307393pgc.2; Thu, 20 Jul 2017 10:40:16 -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=M5CIGxQk6HDkFsFWWpDqVGYTMXAmm9TtXRZ7byN/wGY=; b=boaQ6H/aafbpbUHjdDQuz/AC5TFAzvR6B/sy+/BovymN/IY+jKb+D8lo5fdeVwuuFn +qDwHtM9XmiFHqatUZwRNKFdI+0m+2V0vipUol/SEAeisucE5uaJgF7MyhIScNhwsUFl NLBiiC4SMsoNq9WRIUvo35RjokaX+XQ8ABAA/eAEHVMd0H5tjsGuJsq+EwdBPKMC+FSP p1+vc/geE1JvO/GubYkqKhwPMgU4AZPvDLAKQfuVjn94+Ij/GZuhfQ1n7uIjqtGeKzXB iUmpQjTQjzMeWoOwAQSE8TSYreWthTFjYeTalh6fhJfAW5rIt54tVrcAQ3xTgAPfB0Lp 3o2A== 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=M5CIGxQk6HDkFsFWWpDqVGYTMXAmm9TtXRZ7byN/wGY=; b=kI6AstgvyCywibbjxEFij7xcxt8E0oyw20edGAl1GxAdPDOCTqHiSXNwHEVXz0OLpW EhOU6r2QS4ISZ6xOnDEv4hPGC4+YbIxNOqZrJ/2iYW07TDJzVvbSXmndIwtJZtnyJhxZ IhrrMK1rD86voZmc+kN9Tf1wewYpXy66SGYEJi651ErIUHXcYk2FTNcafkftQL6vv+2Z dTi+BlS6HVCI5f4piRY6lTR71wfPRN7OxWSm1KUmfP/IMsyKC0COZ1I5JzlPoZwiF6De lLfu9FzWjQbJHrcGISC6kZVeW1dA6XOiwrISuV3KBFqqp/Ofz0xLat4aOEHA7RKDoKjB suUQ== X-Gm-Message-State: AIVw1118PCupyAme3xuPpioRvjcn9UbLTIopYRNHlKjN8AAJgEsATupb hAhhywuM+b5Mig== X-Received: by 10.84.232.15 with SMTP id h15mr5116349plk.189.1500572415810; Thu, 20 Jul 2017 10:40:15 -0700 (PDT) Received: from localhost.localdomain ([103.16.70.17]) by smtp.gmail.com with ESMTPSA id n90sm6315528pfk.105.2017.07.20.10.40.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Jul 2017 10:40:15 -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 03/28] video: fbdev: aty128fb: constify pci_device_id. Date: Thu, 20 Jul 2017 23:09:28 +0530 Message-Id: <1500572393-18844-4-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 11525 2048 8 13581 350d video/fbdev/aty/aty128fb.o File size After adding 'const': text data bss dec hex filename 13061 512 8 13581 350d video/fbdev/aty/aty128fb.o Signed-off-by: Arvind Yadav --- drivers/video/fbdev/aty/aty128fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/aty/aty128fb.c b/drivers/video/fbdev/aty/aty128fb.c index fa07242..ba64e26 100644 --- a/drivers/video/fbdev/aty/aty128fb.c +++ b/drivers/video/fbdev/aty/aty128fb.c @@ -166,7 +166,7 @@ static int aty128_pci_resume(struct pci_dev *pdev); static int aty128_do_resume(struct pci_dev *pdev); /* supported Rage128 chipsets */ -static struct pci_device_id aty128_pci_tbl[] = { +static const struct pci_device_id aty128_pci_tbl[] = { { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RAGE128_LE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, rage_M3_pci }, { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RAGE128_LF,