From patchwork Sat Jun 17 06:39:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 109423 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1819380vqr; Fri, 16 Jun 2023 23:54:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4G7fbQnHEaK2hF1VnZXRwlCNsyjcmaSbvn6B5ffzlBGNSB2AzLuZxjO8HRtLFUdfXRzItt X-Received: by 2002:a17:902:9a82:b0:1a6:d15f:3ce1 with SMTP id w2-20020a1709029a8200b001a6d15f3ce1mr4078240plp.34.1686984852561; Fri, 16 Jun 2023 23:54:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686984852; cv=none; d=google.com; s=arc-20160816; b=kAZBDJDcWXcHFnZ/kLaC7JE5bdvj8Go2rIBt0fQZpHG5uU4/vbJs8DZhbR7wsEbm3Y Itu+gULd1p6x5cFXLWWg5bDLaEMyfdoiPt0QkFFowu+Rokpw9F/wQDOxCFv4/gWgLuuh jNA/feZs0eHpv8JjvtJX2bH4zaxZVM+TN3uSEzIq8XeY5+JVsvBClV0lyLPAgf4gv7Td DwDRigsQmJZzX9OGcU4wa8J709bgnxjS0LjxCIlgEfFc3TnlHW0MZ7UrXunLK4/w0WZz 45EY2gufdda6OTfUTWWKpOwYB7YOyFNG6rUNWmJfOmfJH2sFaR8H4nQRoUV4WQbDOkQ+ L4bw== 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.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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u5-20020a170902e5c500b001b50186212dsi7120280plf.541.2023.06.16.23.54.00; Fri, 16 Jun 2023 23:54:12 -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.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 S245744AbjFQGkT (ORCPT + 99 others); Sat, 17 Jun 2023 02:40:19 -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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768931828765601985?= X-GMAIL-MSGID: =?utf-8?q?1768931828765601985?= 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,