Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3675364rwd; Fri, 16 Jun 2023 23:41:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7LbYBtbEOd6foAVMQU3tyFQTEGUEY77g+cvnFFT7mcVaEcpV3htPpwnP7WCPHT9TZGmSPC X-Received: by 2002:a05:6a00:1a94:b0:653:91c1:1611 with SMTP id e20-20020a056a001a9400b0065391c11611mr4430131pfv.14.1686984081172; Fri, 16 Jun 2023 23:41:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686984081; cv=none; d=google.com; s=arc-20160816; b=KCiUd/b68vvK/ajIsjuxXXz+egvDmzh1lwHIoRBY5Y6gNltnzX1vwnZS43pY6JFtj2 A3LNUOqR64/UPoyrxCyn4jMe7FVe7Wx8wDPxOd5yKjQ3PJyhT0dIRPXW84+b3ot7HE/c U/ep37xQSzkybuMwaAj6pnhbpHyuOxZKpXkWbvI5K1uD4v+8lCmX94g95JGPv1tnKjQz p3AOGm+Nc4JswY1ZgSt+vZ73u+IkLrVjWoAdQHuS/9IVn4/nJLtiH59w7dBsiIAAjX1c Ao1J1DE8kvCuYT7OC9kf2YVulfFEn8bBjBjjldObt7FTCDhtNztDHQlnUV2HbzlGHzmS 1JCA== 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=s5pSv7CsvLRB031YGG+oJjdEDdCG65BQTlz1N1na0lo=; b=Zo4fQz3WMeXNY8SZwNQd5zS9KtObkcO+YY7jwUWbQVHJQ7LDN7A98hv1tiZBKDQkBW pRpu4U+DI76Op71mbgQjjVtWnHDhBV42xIjq4PoBOrkZigk0dihCEJH+QhjJXa1fwOfR R7PFyx4vv7NpvTO9b9s0BF1V4C+sVQwLLEZvYG1C2hHvW0s8FlFRkXT2KZCJPr1SYPIe FceGcfPp7GrbsEA7ybogfKKWYIXHewH5dsH9zyJrp3IOB9S5gPUaCsSaqxXh5gF1iWtI FCggeCNt/FhB4BLI8Y94PHlk9TBk3d742kRlp7rAczPkd7LXQqbcXuAz1Ztc7dP//FD5 UQzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4U7pWFM9; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=Bcd6598X; 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 q19-20020aa79613000000b006642e5dd54dsi13519568pfg.116.2023.06.16.23.41.06; Fri, 16 Jun 2023 23:41:21 -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=4U7pWFM9; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=Bcd6598X; 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 S234302AbjFQGkS (ORCPT + 99 others); Sat, 17 Jun 2023 02:40:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233938AbjFQGj6 (ORCPT ); Sat, 17 Jun 2023 02:39:58 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 814A5294C for ; Fri, 16 Jun 2023 23:39:51 -0700 (PDT) Date: Sat, 17 Jun 2023 06:39:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1686983990; 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=s5pSv7CsvLRB031YGG+oJjdEDdCG65BQTlz1N1na0lo=; b=4U7pWFM9zb0Cm89rXGJOLUTeCDIsSmvDlGlTvTXucz638y2AY1zj+0OK9IUFkSfl1UNxcY UtnHefLP7wpetj1EcaUeGXune5L9RigXMr5S/z9dqQjiNiBlLCz7lvevEdctXpS+ZGJhUF cPDZb969tFButNVebuEohgLpDeRs9E89r5Nn1Ws5TZiPel43v1o9+pmk9Je5enIDNiBnc/ CctUWOk65zg0UIYjoD524FRE9/EtNhtLaD9Iw+6KpnVSy9q5GBChKhipQlAqKSc7te1rEl US3J7caaYCI9MXN4e0k+z/jY9A0I6o8VnyragVV7yelMI/lNB+XA6M+Iand50g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1686983990; 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=s5pSv7CsvLRB031YGG+oJjdEDdCG65BQTlz1N1na0lo=; b=Bcd6598Xieba30vOX8bc8xLz3Voa8kDomKCVPLHqonDhSmPZsBZLTWUJ7/UQZLRD7SEXjp IvWQrf6gVQd3jyDA== From: "irqchip-bot for Arnd Bergmann" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-next] irqchip/gicv3: Add a iort_pmsi_get_dev_id() prototype Cc: Arnd Bergmann , Hanjun Guo , Marc Zyngier , tglx@linutronix.de In-Reply-To: <20230516200516.554663-5-arnd@kernel.org> References: <20230516200516.554663-5-arnd@kernel.org> MIME-Version: 1.0 Message-ID: <168698398963.404.14767196667583828029.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,URIBL_BLOCKED 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: 415e84294798d1cb041c902168393054cc4ad211 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/415e84294798d1cb041c902168393054cc4ad211 Author: Arnd Bergmann AuthorDate: Tue, 16 May 2023 22:05:08 +02:00 Committer: Marc Zyngier CommitterDate: Sat, 17 Jun 2023 07:21:24 +01:00 irqchip/gicv3: Add a iort_pmsi_get_dev_id() prototype iort_pmsi_get_dev_id() has a __weak definition in the driver, and an override in arm64 specific code, but the declaration is conditional and not always seen when the copy in the driver gets built: drivers/irqchip/irq-gic-v3-its-platform-msi.c:41:12: error: no previous prototype for 'iort_pmsi_get_dev_id' [-Werror=missing-prototypes] Move the existing declaration out of the #ifdef block to ensure it can be seen in all configurations. Signed-off-by: Arnd Bergmann Reviewed-by: Hanjun Guo Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20230516200516.554663-5-arnd@kernel.org --- include/linux/acpi_iort.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/acpi_iort.h b/include/linux/acpi_iort.h index b43be09..6b70d02 100644 --- a/include/linux/acpi_iort.h +++ b/include/linux/acpi_iort.h @@ -26,13 +26,14 @@ int iort_register_domain_token(int trans_id, phys_addr_t base, struct fwnode_handle *fw_node); void iort_deregister_domain_token(int trans_id); struct fwnode_handle *iort_find_domain_token(int trans_id); +int iort_pmsi_get_dev_id(struct device *dev, u32 *dev_id); + #ifdef CONFIG_ACPI_IORT void acpi_iort_init(void); u32 iort_msi_map_id(struct device *dev, u32 id); struct irq_domain *iort_get_device_domain(struct device *dev, u32 id, enum irq_domain_bus_token bus_token); void acpi_configure_pmsi_domain(struct device *dev); -int iort_pmsi_get_dev_id(struct device *dev, u32 *dev_id); void iort_get_rmr_sids(struct fwnode_handle *iommu_fwnode, struct list_head *head); void iort_put_rmr_sids(struct fwnode_handle *iommu_fwnode,