From patchwork Mon Apr 27 12:54:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 6280541 Return-Path: X-Original-To: patchwork-linux-mediatek@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 19EEBBF4A6 for ; Mon, 27 Apr 2015 12:58:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E5C192040F for ; Mon, 27 Apr 2015 12:58:05 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 29847203B7 for ; Mon, 27 Apr 2015 12:58:05 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ymibs-0004gz-OM; Mon, 27 Apr 2015 12:58:04 +0000 Received: from mail-pa0-x232.google.com ([2607:f8b0:400e:c03::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YmiZH-0001D3-BO; Mon, 27 Apr 2015 12:55:23 +0000 Received: by pacyx8 with SMTP id yx8so128529989pac.1; Mon, 27 Apr 2015 05:55:02 -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=zYRB9RQ0MfOcCdEnB0AhWeqfG2CkdT9CLeNDBGI8mjI=; b=zajlljCXY8hGyfJ+u70EOcRtXzig5Powe98sD8/rYvRK3PcYafBFOX26y414xMKxuF AGxTlYsEqevZcbHX1ZgWveTn7K8EuONeVIhgyjdI11fuSz4q5WPuoEXLSeCOjagIvzHy 0eFm62abmu9VWEw8XcJ6jw6Ss/0/1BXgBdyG1CAvXpAVIUaDHFIDmpRlTMZaIQrHXvOs 2ssEGEg4Hh/nAdwmLBuaN+LiRxWBKcb+G9v4OEVwZJqW/PVEXbp8n/790tumdQFtK9D9 gDfVrUj+B3vh87rrlrqaRKHTTIt9Qe9UE3e1KAoJmX6Z6BnBgT5kkvMhdRHQ+09cRinB KE2w== X-Received: by 10.70.90.162 with SMTP id bx2mr21883276pdb.60.1430139302499; Mon, 27 Apr 2015 05:55:02 -0700 (PDT) Received: from localhost.localdomain ([125.130.175.98]) by mx.google.com with ESMTPSA id ol3sm10480691pbb.70.2015.04.27.05.54.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Apr 2015 05:55:01 -0700 (PDT) From: Krzysztof Kozlowski To: Thomas Gleixner , Jason Cooper , Kukjin Kim , Stephen Warren , Lee Jones , Matthias Brugger , Maxime Ripard , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 1/2] genirq: MSI: Constify irq_domain_ops Date: Mon, 27 Apr 2015 21:54:23 +0900 Message-Id: <1430139264-4362-1-git-send-email-k.kozlowski.k@gmail.com> X-Mailer: git-send-email 2.1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150427_055523_470685_13BD9601 X-CRM114-Status: UNSURE ( 8.37 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) Cc: Krzysztof Kozlowski X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, 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. The irqdomain core code accepts pointer to a const data. Signed-off-by: Krzysztof Kozlowski --- kernel/irq/msi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/irq/msi.c b/kernel/irq/msi.c index 474de5cb394d..7bf1f1bbb7fa 100644 --- a/kernel/irq/msi.c +++ b/kernel/irq/msi.c @@ -124,7 +124,7 @@ static void msi_domain_free(struct irq_domain *domain, unsigned int virq, irq_domain_free_irqs_top(domain, virq, nr_irqs); } -static struct irq_domain_ops msi_domain_ops = { +static const struct irq_domain_ops msi_domain_ops = { .alloc = msi_domain_alloc, .free = msi_domain_free, .activate = msi_domain_activate,