From patchwork Thu Jul 20 17:39:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9855443 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 702FB600F5 for ; Thu, 20 Jul 2017 17:42:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E19328715 for ; Thu, 20 Jul 2017 17:42:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 52C8428818; Thu, 20 Jul 2017 17:42:12 +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 0BE2F28715 for ; Thu, 20 Jul 2017 17:42:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966134AbdGTRl3 (ORCPT ); Thu, 20 Jul 2017 13:41:29 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:37388 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966110AbdGTRl2 (ORCPT ); Thu, 20 Jul 2017 13:41:28 -0400 Received: by mail-pg0-f66.google.com with SMTP id t8so3312230pgs.4; Thu, 20 Jul 2017 10:41:27 -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=aP+iwTKJ6MMfEVCQMGbLG9TSJmU6qmgVFY+ec7RWt70=; b=jsy2GdJ0Wwred2vw9cPGdIwBJeaTQuqT23jqCJg06CcKuBezd5dWOM+1S60u9hYdOP FR4up9Tr/BhimidGQevtAj6xW+8PDV6IbpyOkkEh/Fxaw/eGzRKXZefMR7JL8WQNou1U 6N0Dx+neATpOT5M0z1fju2uDoDq/L57019gSYu/hSe3q0I0z17/udrrZxmu9QT+itBsI ypfLlZJLcFXQANnExdh2ffeiROI7phiGFiVN7jTlvJk9HBlDdDXAOB/FBVpRY+1bBi/R 3jEf1UUN4kTpUYoCTkzHcRGdu1WDWstHXd1WjNfUflm07x7MIxk0HZRv6nTUS8eR5N2x Q3jg== 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=aP+iwTKJ6MMfEVCQMGbLG9TSJmU6qmgVFY+ec7RWt70=; b=JExfyNn2TYEsVwtQQL6bFArgmJWt4qXchJdZovoi91OfUom3CoJxlsT+emvfsH5tw/ 4oNTx77Zz+El0EZ42dLMdJNBbKkGKUoAdClxQqHeGFDczFRx08oJYKPe4JwLu/3pzlF6 VXcHatoR3I4oSxznbmzXmO8/ZQDHa3Nc3ewFSs21OzHpI5gRtpRAC++YOBIavurtPXob ootTufoxOxTABY1nOYx5jHPmixhIl++UrBkfzTvnaZwCpADajpScA6GmOwJWHOE49BIb yBMyiBpGBfaOH4xCcM1mUHhRkcUoW1cwyh1yvLTX4tbXSGg68tNtLHJps5KHR/Ota2OG pVRw== X-Gm-Message-State: AIVw113i1CQxuoTrU3NfKulwgHd19CLZ9yc+Ar3IONYGJSvLF3zQsreh uhfmpkRBfnwmyA== X-Received: by 10.98.252.87 with SMTP id e84mr4708966pfh.184.1500572487553; Thu, 20 Jul 2017 10:41:27 -0700 (PDT) Received: from localhost.localdomain ([103.16.70.17]) by smtp.gmail.com with ESMTPSA id n90sm6315528pfk.105.2017.07.20.10.41.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Jul 2017 10:41:27 -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 26/28] video: fbdev: pm3fb: constify pci_device_id. Date: Thu, 20 Jul 2017 23:09:51 +0530 Message-Id: <1500572393-18844-27-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 10332 596 16 10944 2ac0 drivers/video/fbdev/pm3fb.o File size After adding 'const': text data bss dec hex filename 10396 532 16 10944 2ac0 drivers/video/fbdev/pm3fb.o Signed-off-by: Arvind Yadav --- drivers/video/fbdev/pm3fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/pm3fb.c b/drivers/video/fbdev/pm3fb.c index 6ff5077..6130aa5 100644 --- a/drivers/video/fbdev/pm3fb.c +++ b/drivers/video/fbdev/pm3fb.c @@ -1479,7 +1479,7 @@ static void pm3fb_remove(struct pci_dev *dev) } } -static struct pci_device_id pm3fb_id_table[] = { +static const struct pci_device_id pm3fb_id_table[] = { { PCI_VENDOR_ID_3DLABS, 0x0a, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, { 0, }