From patchwork Mon Apr 27 12:48:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 6280091 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8C817BF4A6 for ; Mon, 27 Apr 2015 12:48:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B18C420445 for ; Mon, 27 Apr 2015 12:48:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D7D1E2040F for ; Mon, 27 Apr 2015 12:48:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932658AbbD0Ms0 (ORCPT ); Mon, 27 Apr 2015 08:48:26 -0400 Received: from mail-pd0-f172.google.com ([209.85.192.172]:35428 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932661AbbD0MsZ (ORCPT ); Mon, 27 Apr 2015 08:48:25 -0400 Received: by pdbqd1 with SMTP id qd1so127608093pdb.2; Mon, 27 Apr 2015 05:48:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=WZpvSBkaMsNEJvSSuZEnau3V++nurOwSuF5cc5PM8Fo=; b=nDs2SRJej4x+RDRDgVIGckTXxOXZbauzlv8iS6fh2USjd63IEym1cxtgLStovJPOmx bqqaCGWs+SsEE2popuWHZoZZwqOMf0YWOv8fTHByzY4RfQR306k3sdq4mPVhnnYlYFDX /IEzJdtSp9JTBRVRBNWRiKaYx+yLhFNg/SToXuvbva5JJrMEzpR8U4dz6+oBTTbfmZcG cnYEF8o/iFWA78bKj3iayN0JSVrRwVANWlsBJHstpYGKtUY8Oe7MxJcLDLLj5+YV5dxU 74i9U+VFAy75/1ndYvo5q0wGVYgf6tm+DUPtQ4jn5e4+VVMfYVYHJCZGRn+4HF40wcmo zSgA== X-Received: by 10.68.97.131 with SMTP id ea3mr21670690pbb.165.1430138905358; Mon, 27 Apr 2015 05:48:25 -0700 (PDT) Received: from localhost.localdomain ([125.130.175.98]) by mx.google.com with ESMTPSA id q4sm19395775pdo.42.2015.04.27.05.48.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Apr 2015 05:48:24 -0700 (PDT) From: Krzysztof Kozlowski To: "Rafael J. Wysocki" , Len Brown , Pavel Machek , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, sfi-devel@simplefirmware.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/3] x86, ACPI: Constify irq_domain_ops Date: Mon, 27 Apr 2015 21:48:07 +0900 Message-Id: <1430138889-3310-1-git-send-email-k.kozlowski.k@gmail.com> X-Mailer: git-send-email 2.1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The irq_domain_ops are not modified by the driver and the irqdomain core code accepts pointer to a const data. Signed-off-by: Krzysztof Kozlowski Acked-by: Pavel Machek --- arch/x86/kernel/acpi/boot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index dbe76a14c3c9..1de4071c7eca 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c @@ -439,7 +439,7 @@ static void mp_unregister_gsi(u32 gsi) mp_unmap_irq(irq); } -static struct irq_domain_ops acpi_irqdomain_ops = { +static const struct irq_domain_ops acpi_irqdomain_ops = { .map = mp_irqdomain_map, .unmap = mp_irqdomain_unmap, };