Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3163642imw; Mon, 11 Jul 2022 03:17:14 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vTt5qgzoUEVF9N1vUyBgh+/wbawqQTcILeiEw3zouNVgBwSIWuloR8fRorSaMTXxZVbnap X-Received: by 2002:aa7:dd4b:0:b0:43a:d508:7cb9 with SMTP id o11-20020aa7dd4b000000b0043ad5087cb9mr5964156edw.218.1657534634485; Mon, 11 Jul 2022 03:17:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657534634; cv=none; d=google.com; s=arc-20160816; b=IQ7FPa+CdiW/2PRTQ+vlJOu2RNoL6kg9MjhWIizW/89KUumRDXYoLHsjTBzMvWNPkF MBxbCtsbzrXMeYpWkJie2Fn6KdU8AlNuPKH8NOZIklksAYncN9Ko/yJm0po4Y0LoVO2S RqjPBq3HmVbUdXYArum6Ln+2Iz4jGXPx/HHf+WfIHiElIC184T1Sql4A7fvnMfDFFfMD aPrRiJ2g4Fj2TrOaj9ZT6LkX9ksTboMU0x9LoScBJxyKRX/+ScZ80Hkr8PgEq5f3hq3M ezn/xPcPmrtU/dcOHAVdJV15GX8aVfZJ/0cAj8alAUO7dcY9nsEaMDlUjRJr5oFzopa0 dbYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=lbBJhKVx5aMwTkvMy1IDVxxzwjunJNxbD3Dkq9aWZ4g=; b=o8rwOFEZRrZwCeP3T09gXnOGhX0x+XLK3CwWjgLyIHwH9MdjpVBUjZqM38ly8KsMpr 5AjWoPvlBMp03xIi/TqWuEITlAWltO32rJ5icJ2I1F7lLZSmQ/SKcdEFBuJVPmtfvDTY 8rHpvCAbpoRKCU7+l5RUiD3o4tPVs9C6HqYYtQyzyriq4r45XjqzlPsgECR39XGP71/A 8Wn4tCw8nIcrDeTvXsKIGVqR2MKjnPkusaCRGXiyz3IXEYI8VU0oQmWcUSV1It3qgGVF YiDGlGhhw+BLO/1fe6VSoUngdIRdPKs9+OOH49q3wLkeK6bH4nkY4avsZn+oC03t6pNM 0FXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="Uw4qGT/t"; dkim=neutral (no key) header.i=@linutronix.de header.b=LTpzIaJk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t15-20020a1709064f0f00b00718bf77195dsi7999720eju.489.2022.07.11.03.16.46; Mon, 11 Jul 2022 03:17:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="Uw4qGT/t"; dkim=neutral (no key) header.i=@linutronix.de header.b=LTpzIaJk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231933AbiGKJif (ORCPT + 99 others); Mon, 11 Jul 2022 05:38:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233003AbiGKJho (ORCPT ); Mon, 11 Jul 2022 05:37:44 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F0564E872 for ; Mon, 11 Jul 2022 02:19:39 -0700 (PDT) Date: Mon, 11 Jul 2022 09:19:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1657531177; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lbBJhKVx5aMwTkvMy1IDVxxzwjunJNxbD3Dkq9aWZ4g=; b=Uw4qGT/tv5kjxRkIOyYFWNcUaIPe9lkeK06IW1NcSXYWAam4ZeU67wHpwTmUo54yd7Y9pm o1FfIaiCrIKkTxknRejMkMHaFVY+cx5qkksXgqImkG1M4+zGzcWhJJkPImEU8RoTEHHplP pgQ2IoASHZTExDpyjpEkLfa1RzmELYPZ/VHYMPlFJR6WyQTI02sduEC4t+62x29VScTXLv 4fEzHyeM6ZFkK08SPwJ3Em1m5KQncVLj/Vh4UTwzT96kv/0dNaEKzwNRGWEE9t4Por3rE5 lx+pw1DYM0V6hHXgfEbV8dIhaSioS6RmxgkJLyxioc9GNDQG/2ZQmwwiHQOJLQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1657531177; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lbBJhKVx5aMwTkvMy1IDVxxzwjunJNxbD3Dkq9aWZ4g=; b=LTpzIaJkvI8YkXHjDbsa0C2b30+H0w4kzGiGSkJFYl1jXzkE05nv0lgPGp4yBz+0v4GBld bHhg7Iw6Xp0NdZCw== From: "irqchip-bot for Michael Walle" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-next] genirq: Allow irq_set_chip_handler_name_locked() to take a const irq_chip Cc: Michael Walle , Marc Zyngier , tglx@linutronix.de In-Reply-To: <20220706151553.1580790-1-michael@walle.cc> References: <20220706151553.1580790-1-michael@walle.cc> MIME-Version: 1.0 Message-ID: <165753117562.15455.14225696524286000343.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: ef6e5d61eb7a0a30f776a829274573094185d03d Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/ef6e5d61eb7a0a30f776a829274573094185d03d Author: Michael Walle AuthorDate: Wed, 06 Jul 2022 17:15:52 +02:00 Committer: Marc Zyngier CommitterDate: Mon, 11 Jul 2022 10:12:49 +01:00 genirq: Allow irq_set_chip_handler_name_locked() to take a const irq_chip Similar to commit 393e1280f765 ("genirq: Allow irq_chip registration functions to take a const irq_chip"), allow the irq_set_chip_handler_name_locked() function to take a const irq_chip argument. Signed-off-by: Michael Walle Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20220706151553.1580790-1-michael@walle.cc --- include/linux/irqdesc.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/linux/irqdesc.h b/include/linux/irqdesc.h index a775845..1cd4e36 100644 --- a/include/linux/irqdesc.h +++ b/include/linux/irqdesc.h @@ -209,14 +209,15 @@ static inline void irq_set_handler_locked(struct irq_data *data, * Must be called with irq_desc locked and valid parameters. */ static inline void -irq_set_chip_handler_name_locked(struct irq_data *data, struct irq_chip *chip, +irq_set_chip_handler_name_locked(struct irq_data *data, + const struct irq_chip *chip, irq_flow_handler_t handler, const char *name) { struct irq_desc *desc = irq_data_to_desc(data); desc->handle_irq = handler; desc->name = name; - data->chip = chip; + data->chip = (struct irq_chip *)chip; } bool irq_check_status_bit(unsigned int irq, unsigned int bitmask);