Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753815AbdG3F10 (ORCPT ); Sun, 30 Jul 2017 01:27:26 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:36692 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751360AbdG3F06 (ORCPT ); Sun, 30 Jul 2017 01:26:58 -0400 From: Arvind Yadav To: arnd@arndb.de, gregkh@linuxfoundation.org, oakad@yahoo.com Cc: linux-kernel@vger.kernel.org Subject: [PATCH 4/4] misc: ioc4: constify pci_device_id. Date: Sun, 30 Jul 2017 10:56:37 +0530 Message-Id: <1501392397-10062-5-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1501392397-10062-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1501392397-10062-1-git-send-email-arvind.yadav.cs@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 753 Lines: 24 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. Signed-off-by: Arvind Yadav --- drivers/misc/ioc4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/ioc4.c b/drivers/misc/ioc4.c index 8758d03..ec083227 100644 --- a/drivers/misc/ioc4.c +++ b/drivers/misc/ioc4.c @@ -454,7 +454,7 @@ ioc4_remove(struct pci_dev *pdev) kfree(idd); } -static struct pci_device_id ioc4_id_table[] = { +static const struct pci_device_id ioc4_id_table[] = { {PCI_VENDOR_ID_SGI, PCI_DEVICE_ID_SGI_IOC4, PCI_ANY_ID, PCI_ANY_ID, 0x0b4000, 0xFFFFFF}, {0} -- 2.7.4