From patchwork Mon Sep 18 16:24:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 815027 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="KgIoRMqN"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3xwrvV1TX5z9s7F for ; Tue, 19 Sep 2017 02:25:10 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756079AbdIRQZJ (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 Received: by mail-pg0-f68.google.com with SMTP id u18so377368pgo.1; Mon, 18 Sep 2017 09:25:08 -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; bh=NKZDg3kFdl04XlxLlciYUEBTTCAz6/BY5iLuNoa7Qtw=; b=KgIoRMqNRrMYTiFhc2PTON4/EjNXZglmIN4VCa36IKxj8SXRLn/ZAn8Pn5uyuAU8SW Ftdgembiq0b7JdD57HcAyL2y1HJvDepnAcSM/lsB57NKUmXu9Lslm9d1izkCgSbepasB pJQXI3l6q3L5wWK/i9n+XM+S0NVCfYppKGj5Y7TsFi7RR/ZYVr09qmeQ7visWD3Bposw N4t7+hMG24Hn7VKalmI2gs5vZhqYluM3XcW4cbVG/4Qka+DBaN1rfxZ7OkmGeGaaR4+x sYirFxdSocd3QSOWVxmuGFLn0mR9f0Es17dwUrn6N1OPx9f7mpe+Xg8t6xW29ey9dxLp M75g== 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; bh=NKZDg3kFdl04XlxLlciYUEBTTCAz6/BY5iLuNoa7Qtw=; b=Vi4BMvbXWy5ywNcjVk4KTtXVp+eow8BFULzOyDDalhEKaaoa+GzYlh+RNphLr97fwi EZoGQMEkJ09o+K/hiUs/3aPBoYIiS6E5vFRRmvOOTw8SAJWwD3SZBojx3FQmVZCh1tmc +aYXDhECn/TmE3Zrd5JQFTxjnswt8nc6TIKAtVCiJ1whMXXf6DWvkF9doF4jEehDoLYT pOFY0Qu6pkRV4uTwaSbQ0MPvEo0gxapZW9KfG/ehJHpeffKc+QCiSLouSne2WLUApn8S FgcwBoOrHa5rXe7xb3QSLHPWKD5+nuyNn1FIJmjk0uDbJIv4BRiYdtF6YbMKRMU3Nx2m GTlA== X-Gm-Message-State: AHPjjUi3I1oOTggnUIQWtIg3SZyEGD+jJeQj7GdSP+Y3WtK69Iq6JE5t ogZGg0Wl/5mI4w== X-Google-Smtp-Source: ADKCNb7KOukKBK2hlWhpVmVvUu+c+Arev/qpQPnxLzdlL8RxVEHEMadOGIr3Y23lYkOheg1sACBKPA== X-Received: by 10.101.91.134 with SMTP id i6mr32413258pgr.428.1505751907622; Mon, 18 Sep 2017 09:25:07 -0700 (PDT) Received: from gmail.com ([117.196.101.13]) by smtp.gmail.com with ESMTPSA id t25sm15325134pfe.96.2017.09.18.09.25.02 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 18 Sep 2017 09:25:06 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Mon, 18 Sep 2017 21:54:59 +0530 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-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org 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, };