From patchwork Thu Aug 3 17:09:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 797340 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="dBpUz6a2"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3xNc5X3XVHz9s7v for ; Fri, 4 Aug 2017 03:10:56 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751133AbdHCRKl (ORCPT ); Thu, 3 Aug 2017 13:10:41 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34831 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751230AbdHCRKM (ORCPT ); Thu, 3 Aug 2017 13:10:12 -0400 Received: by mail-pf0-f195.google.com with SMTP id j68so2046708pfc.2; Thu, 03 Aug 2017 10:10:11 -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=Grp2pp1Kp8MUHwrl257vwloe7JE+sGpr8mYw+bg0OkQ=; b=dBpUz6a2GGct+MGt5DyQiWYDgCSF+0b4laS3ZKm0IBrEos1c9gjKc5z+N34gQF4MHp zSBADFELkfh/CI6/4RDM8UV9wKE+5PFFFp6GE5Sgfcmvl3yDUJhiLed2IHLH1lxolUGP Q7CjUxDRase1NiFT9RpB954ksEBvw7ewUeRnuqaYDWWO1jmnDTK1Vu/ingxtL/VQ6Frs axVVMPiSaixfc4538rs0TCnCVJX0d0FFNOTyb/3vXB7xLVxBl9kL0vh1xaCkL+Ck7C6M AxjdgpP97sxWV32269Gc+9yeteqpJH6+B0yAmyhyPstG6MsoUS+yR3MmIr5VsRxqzxaI kNcg== 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=Grp2pp1Kp8MUHwrl257vwloe7JE+sGpr8mYw+bg0OkQ=; b=TiaGA49jIZv54Ho+VxuaTWLt3Yif3QiLmqzvLq0Xtb7FSlgXJmw7QdKvCFFHrdAHrP +cWa4vCLOzfBXscflIXu+SU5Ir9ZXreJbmUVKveDiuPYa3TtI+xmbAQU+4P7ckvIU21r /3u6Y6bWm01aM+QL8Zm/zDngtjjzB+fns5Gr0AinpoIkLuAplfMfSGr3ovfiF161ATKw BzllsuD4D6kw7U5udaW6HlQkjggN6xkJqwMNVcZpyufWIvT/n86akgrHlcDBBGlkq+Zv rQ0zNaBvM6WyG13EKha/2y6lxo94Q9dYqJAAIY5fVqHD9OgVOI54yJEttsQ/VDNuBXZ7 SjCQ== X-Gm-Message-State: AIVw110tvzgJ2L53SKNuzeNFjrmUJ0hK4tjfqL09NtO3xa8a9+AqQ0OK ooSwQDqSdVjlHA== X-Received: by 10.99.186.30 with SMTP id k30mr2166134pgf.87.1501780211436; Thu, 03 Aug 2017 10:10:11 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.88]) by smtp.gmail.com with ESMTPSA id n11sm539917pfg.15.2017.08.03.10.10.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 Aug 2017 10:10:10 -0700 (PDT) From: Arvind Yadav To: bhelgaas@google.com, scott@spiteful.org Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH 4/5] PCI: hotplug: cpcihp_zt5550: constify pci_device_id. Date: Thu, 3 Aug 2017 22:39:15 +0530 Message-Id: <1501780156-24708-5-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1501780156-24708-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1501780156-24708-1-git-send-email-arvind.yadav.cs@gmail.com> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org 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/pci/hotplug/cpcihp_zt5550.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/hotplug/cpcihp_zt5550.c b/drivers/pci/hotplug/cpcihp_zt5550.c index 5f49c3f..2f8659a 100644 --- a/drivers/pci/hotplug/cpcihp_zt5550.c +++ b/drivers/pci/hotplug/cpcihp_zt5550.c @@ -280,7 +280,7 @@ static void zt5550_hc_remove_one(struct pci_dev *pdev) } -static struct pci_device_id zt5550_hc_pci_tbl[] = { +static const struct pci_device_id zt5550_hc_pci_tbl[] = { { PCI_VENDOR_ID_ZIATECH, PCI_DEVICE_ID_ZIATECH_5550_HC, PCI_ANY_ID, PCI_ANY_ID, }, { 0, } };