Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756133AbdIRQZJ (ORCPT ); Mon, 18 Sep 2017 12:25:09 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:34010 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755990AbdIRQZI (ORCPT ); Mon, 18 Sep 2017 12:25:08 -0400 X-Google-Smtp-Source: ADKCNb7KOukKBK2hlWhpVmVvUu+c+Arev/qpQPnxLzdlL8RxVEHEMadOGIr3Y23lYkOheg1sACBKPA== From: Bhumika Goyal To: julia.lawall@lip6.fr, bhelgaas@google.com, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] x86/pci/intel_mid_pci: make intel_mid_pci_ops const and __initconst Date: Mon, 18 Sep 2017 21:54:55 +0530 Message-Id: <1505751895-9799-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 746 Lines: 24 Make this const as it is only used during a copy operation. This usage is inside init function and the structure is not referenced after initialisation, so make it __initconst too. Signed-off-by: Bhumika Goyal --- arch/x86/pci/intel_mid_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/pci/intel_mid_pci.c b/arch/x86/pci/intel_mid_pci.c index b901ece..63fbe8f 100644 --- a/arch/x86/pci/intel_mid_pci.c +++ b/arch/x86/pci/intel_mid_pci.c @@ -279,7 +279,7 @@ static void intel_mid_pci_irq_disable(struct pci_dev *dev) } } -static struct pci_ops intel_mid_pci_ops = { +static const struct pci_ops intel_mid_pci_ops __initconst = { .read = pci_read, .write = pci_write, }; -- 1.9.1