Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1194480rwd; Tue, 16 May 2023 13:16:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5mQzkrtVekCAXWdPvCCquHi6Qgd4dgu4Oqd1U2QPRS37CxHi55M19vOAPyS3lUl0hb1WBc X-Received: by 2002:a05:6a00:1905:b0:64a:f8c9:a42c with SMTP id y5-20020a056a00190500b0064af8c9a42cmr15726069pfi.18.1684268175009; Tue, 16 May 2023 13:16:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684268174; cv=none; d=google.com; s=arc-20160816; b=gebq2pMl6n1WMyvUn9KKCSFduxwTVISx2LqsCK2UxEkepRBVGjUH4/f7qfxLtIwdTk YVEgGtDjEPDPy9BW66hJinI3tKKdxgVH2eL5KcloJNokLj/lW0YDIuYNbFxXnjFNSq8F eBtYsahfFDn7KQ0vnTel1829PJ+7DfSwtihL965BQvpobriceprSDgkFPEejzz6FGxWV ZDSQVgKSsp12sc6B22O6s8BX9+fD6S3/bCyLmSqs7ZUxysD1LoEtLxzNhKH62xAH+YM4 ar1nVwoy6jHyCMSupA623SFNqrL0qRt2QW/kbpIlMHTUpmia5S8Bgva8pygu/G5luv7E y2qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=vA/cABhBVASxvDqgVY8tJtBA1bqQ/h8hODAJc4kq3es=; b=pK+FAgQr76/CIMxaESm8jAbOPbqhH7o1RughRsKcgAdwp+ry6lpAYLF8IB9BuLlJ/U ++MsOMxAHjYZ7eri5aqTtx6Z6fr9JwbWwP0ysONFj3T1ys7D+B4tXVnbDBlCxsJRu8Bh SdDxmKHXfq/f2jiK9EkFT4tMFFuWRTKaU29FY/2iDo282eVgue8tNoyYuvksfnfac4Rw gDsf6zugItQvMVV140GdZ5e6ahazIR+bDpU3k9EhSAkJTBTXZCjWFd1qXHA9vpvaILj8 fqBxHjL1mSINQ1WgH8s3MPk3PFL0TIVtK3C3bOe2/+NoNktn1yj57kD7R6mHM+nwdBpu 0t1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=h9D4f8rC; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j16-20020a63e750000000b0051fb6ca1e69si6338298pgk.180.2023.05.16.13.15.58; Tue, 16 May 2023 13:16: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=fail header.i=@kernel.org header.s=k20201202 header.b=h9D4f8rC; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230056AbjEPUGN (ORCPT + 99 others); Tue, 16 May 2023 16:06:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230050AbjEPUGK (ORCPT ); Tue, 16 May 2023 16:06:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BED56582 for ; Tue, 16 May 2023 13:06:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AD8D4618C9 for ; Tue, 16 May 2023 20:06:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7AD3C433D2; Tue, 16 May 2023 20:05:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684267560; bh=7dX4GIh606KqYGe9dKO1nnlkYackAgVvqWFkxj3MV3c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h9D4f8rCdLfFdDw7qINtml7i1SoNHf4q3RadsfMLORAPy7fjCpDtEOLXrddBoM1hd YSgauh0A1hrL20xIDd8dWKSdcTKkfJ6SwFT9V9nWm2IuFzMa2RuqCQvzpR/HNIh3qq HN1eqL0zUFzObo4wk8Ck90RjbgZUN9LEFpCF6E/S3vNWpHVzxc1rIlmY43hyB3ZeKM r7CfpAAwhsWIDh5jCyrsg4t10D24wDWpUZsAzERYils/hQi+dsxSIvWPfzmCmrT3+H h3C6UBMzjtVaIKlO/ux/MIRZYLZnT4R7dEC6BuOolurl2NDQ5BnZ17OkTfrq8pinzx X5mkIqwUPx1Iw== From: Arnd Bergmann Cc: Arnd Bergmann , Hanjun Guo , Joerg Roedel , Robin Murphy , Shameer Kolothum , linux-kernel@vger.kernel.org Subject: [PATCH 5/5] irqchip: gicv3: add a iort_pmsi_get_dev_id() prototype Date: Tue, 16 May 2023 22:05:08 +0200 Message-Id: <20230516200516.554663-5-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230516200516.554663-1-arnd@kernel.org> References: <20230516200516.554663-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann 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 --- 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 b43be0987b19..6b70d02bc5f9 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, -- 2.39.2