From nobody Mon Feb 9 16:50:50 2026 Received: from smtp95.iad3a.emailsrvr.com (smtp95.iad3a.emailsrvr.com [173.203.187.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D6F872D2489 for ; Tue, 4 Nov 2025 15:36:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=173.203.187.95 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762270610; cv=none; b=g9qCK303Ya/S13Yaf/WWv2aXxGc6kJUVyZ+cbxBZUAKVYqINKPG6h+IAiExSKlcXZZzdQcAR3E0VqAtYkbqsmh7POXWi/yVXBK73w+i1p+FQbKX9tzsWEqNARYEmuTsiiHa1u+dC0x2bRRUYSyx1Al4YiGmy1x5/EaE4keRZepw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762270610; c=relaxed/simple; bh=q5BXmQyABzZtTUsmyyPhSP2uIiu39uFKL6bnKo8+Rcc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EXA42kuP3eHLSSygQGG3lS8osXtukOCdfsc73Z7QXZFwViVhIip/RHI0XRyUvmHnh5IKpi6o3KuA9/krLXQV44ftLi68SpoItCO9hdWSdTQyrKFDnAQXLlteZG8yUdqOyDZDOUHOJjb1AF1kI6spOcRW0lq4RTwqnjkT34pUB7g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mev.co.uk; spf=pass smtp.mailfrom=mev.co.uk; dkim=pass (1024-bit key) header.d=mev.co.uk header.i=@mev.co.uk header.b=Gkrwou6W; arc=none smtp.client-ip=173.203.187.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mev.co.uk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mev.co.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mev.co.uk header.i=@mev.co.uk header.b="Gkrwou6W" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mev.co.uk; s=20221208-6x11dpa4; t=1762270232; bh=q5BXmQyABzZtTUsmyyPhSP2uIiu39uFKL6bnKo8+Rcc=; h=From:To:Subject:Date:From; b=Gkrwou6WRybb1YsE7j820UhLyH6OiuOVvY4SodJA695n5pwsJkkOdcKmvJr0HZJLn 4JOgasESoCqw9aIk1TlmDaCuD6kk6TDT/FjNJIernCKGbgoJBI/nBz/y5GApTf44dO 7HnXPyRy7cQrMKQNmXRbeuKnfo4LEjWznAS/v3U8= X-Auth-ID: abbotti@mev.co.uk Received: by smtp4.relay.iad3a.emailsrvr.com (Authenticated sender: abbotti-AT-mev.co.uk) with ESMTPSA id F064C55B9; Tue, 4 Nov 2025 10:30:31 -0500 (EST) From: Ian Abbott To: linux-fpga@vger.kernel.org Cc: Moritz Fischer , Xu Yilun , Tom Rix , linux-kernel@vger.kernel.org, Ian Abbott Subject: [PATCH 4/4] fpga: region: Add dummy definitions of API functions Date: Tue, 4 Nov 2025 15:27:05 +0000 Message-ID: <20251104153013.154463-5-abbotti@mev.co.uk> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251104153013.154463-1-abbotti@mev.co.uk> References: <20251104153013.154463-1-abbotti@mev.co.uk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Classification-ID: 7af648e7-5513-437d-9d71-25d484e80853-5-1 Content-Type: text/plain; charset="utf-8" Add dummy definitions of the FPGA region API functions for build testing. Signed-off-by: Ian Abbott --- include/linux/fpga/fpga-region.h | 44 +++++++++++++++++++++++++++++--- 1 file changed, 40 insertions(+), 4 deletions(-) diff --git a/include/linux/fpga/fpga-region.h b/include/linux/fpga/fpga-reg= ion.h index 5fbc05fe70a6..db4c7c1b9151 100644 --- a/include/linux/fpga/fpga-region.h +++ b/include/linux/fpga/fpga-region.h @@ -6,6 +6,7 @@ #include #include #include +#include =20 struct fpga_region; =20 @@ -54,23 +55,58 @@ struct fpga_region { =20 #define to_fpga_region(d) container_of(d, struct fpga_region, dev) =20 +#define fpga_region_register_full(parent, info) \ + __fpga_region_register_full(parent, info, THIS_MODULE) + +#define fpga_region_register(parent, mgr, get_bridges) \ + __fpga_region_register(parent, mgr, get_bridges, THIS_MODULE) + +#ifdef CONFIG_FPGA_REGION struct fpga_region * fpga_region_class_find(struct device *start, const void *data, int (*match)(struct device *, const void *)); =20 int fpga_region_program_fpga(struct fpga_region *region); =20 -#define fpga_region_register_full(parent, info) \ - __fpga_region_register_full(parent, info, THIS_MODULE) struct fpga_region * __fpga_region_register_full(struct device *parent, const struct fpga_regio= n_info *info, struct module *owner); =20 -#define fpga_region_register(parent, mgr, get_bridges) \ - __fpga_region_register(parent, mgr, get_bridges, THIS_MODULE) struct fpga_region * __fpga_region_register(struct device *parent, struct fpga_manager *mgr, int (*get_bridges)(struct fpga_region *), struct module *owner); void fpga_region_unregister(struct fpga_region *region); =20 +#else +static inline struct fpga_region * +fpga_region_class_find(struct device *start, const void *data, + int (*match)(struct device *, const void *)) +{ + return NULL; +} + +static inline int fpga_region_program_fpga(struct fpga_region *region) +{ + return -EOPNOTSUPP; +} + +static inline struct fpga_region * +__fpga_region_register_full(struct device *parent, const struct fpga_regio= n_info *info, + struct module *owner) +{ + return ERR_PTR(-EOPNOTSUPP); +} + +static inline struct fpga_region * +__fpga_region_register(struct device *parent, struct fpga_manager *mgr, + int (*get_bridges)(struct fpga_region *), struct module *owner) +{ + return ERR_PTR(-EOPNOTSUPP); +} + +static inline void fpga_region_unregister(struct fpga_region *region) +{ +} +#endif + #endif /* _FPGA_REGION_H */ --=20 2.51.0