From patchwork Tue Dec 16 21:18:02 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 916 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1765919915; bh=f4qovgfyx2gXa18HaZWE2PijZS49QGbEjNLHnLbO2kE=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=mhiUMnphEt4/KxyltVjRL+Ujwoqhfx116YxKEhLlQkdOiEnxdsuI8awCA7ZKiptvf KarNQt6OpY0ZjfLzv1CZzNgvoEx76bVdRPq5jiOzqrK3TnpMt3lrz9yvhTGtMYfE2o vCK1JSXsSuIm3fz1JnVKyP5rvoAvUOsl1gZLoFRH3gx475MnmbrLeUzl7We3sb3EW+ UwTPivzZLvUbakcGJr05NJXWqb9anDImjWOIVk1rPr8MBEUXEpEW6t48XNZOcKDrhA phwY6dfAzPXE8k0xAvmsM+DmcAak8zwwJ0iJs0IrShCEucvQuMv/HF9j1UIj7K/gF+ 1LqdTlIulFVVg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4E7D868B94 for ; Tue, 16 Dec 2025 14:18:35 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id UWPPMoHzyXQR for ; Tue, 16 Dec 2025 14:18:35 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1765919915; bh=f4qovgfyx2gXa18HaZWE2PijZS49QGbEjNLHnLbO2kE=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=mhiUMnphEt4/KxyltVjRL+Ujwoqhfx116YxKEhLlQkdOiEnxdsuI8awCA7ZKiptvf KarNQt6OpY0ZjfLzv1CZzNgvoEx76bVdRPq5jiOzqrK3TnpMt3lrz9yvhTGtMYfE2o vCK1JSXsSuIm3fz1JnVKyP5rvoAvUOsl1gZLoFRH3gx475MnmbrLeUzl7We3sb3EW+ UwTPivzZLvUbakcGJr05NJXWqb9anDImjWOIVk1rPr8MBEUXEpEW6t48XNZOcKDrhA phwY6dfAzPXE8k0xAvmsM+DmcAak8zwwJ0iJs0IrShCEucvQuMv/HF9j1UIj7K/gF+ 1LqdTlIulFVVg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3CD2768B84 for ; Tue, 16 Dec 2025 14:18:35 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1765919913; bh=fdzmfxzGzOZx6ITOaiPJbEFHa3EbB6VvJjf7Yqkc01E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Hoj8gWSo/4AWVe5G9C9eDdYhTtyPUzgB4sA+zncYsL9kFiPClrA1eyqwm1DVbxxSG PbRhLIg4dJyKDEhFGppZmLv5FUfGW4cPFpwG+YujgtGtiFrNNHZUbVJtGc9E++e3go nSCtD+GMpo6aAfjOR1wN4RaiF/CUQG86Z3FstGxvXHIOH9ed4rPPXQFsKp1YuXyp0Y 26Bd2qonF0+TCzAGesBlysZeOgmBZAQkO924bZpexybELHvYYBkf2PpOmZZkjFB8u1 Z4iE3Riy001escSvBYQWkjL1lUhjtjRnllKrLALG2nFHmiAUbvjvhTz3eWupF5ww8t jwt1uNqkuL7GA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6A61068AD5; Tue, 16 Dec 2025 14:18:33 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id B__0ZjT6686R; Tue, 16 Dec 2025 14:18:33 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1765919909; bh=pIUY3gkF+26DKLI6RlCmuKDyhCZpMpuPoao5sAky6bg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iN8ur0QJitJXa/qhBkH+czwyGDvlVh+aLhTKcB6Nm1wCFPkc8ZtpJW9Mg1Vh7j1ks /5vkh9ZcSZWKBHOrkFYDG1m68sAZPHigcceAH0ApOAj/xPsMQcbA8nZm66dNy9gDSP g+H2MYFpbcM6OHDTkuT1iv5mn5CAHeBv2iW3esYn3xe2CWk4hVdC8c1sVq6NM+Lqho 7oXMy4dRXIjqcdL+o6jpxwUtq/s2FyAqXgnR8I5rws+f6hgVcOxkq0HlNJuZKq+Dlv MVW3l4as/pHzQDx9BzEvfoksShrOdDMhHMrYG5leY/rsCERI6Alt9BomxmIeT92KP3 JutBHIOK3zwyw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 1F947689CD; Tue, 16 Dec 2025 14:18:29 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Tue, 16 Dec 2025 14:18:02 -0700 Message-ID: <20251216211817.4131167-2-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251216211817.4131167-1-sjg@u-boot.org> References: <20251216211817.4131167-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: VU5B3LAVJ2ONLEUSF3S6E2SXBZTFSQHZ X-Message-ID-Hash: VU5B3LAVJ2ONLEUSF3S6E2SXBZTFSQHZ X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass , "Claude Opus 4 . 5" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 01/11] ext4l: Extract export.h declarations into their own file List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Create include/linux/export.h with stub definitions for EXPORT_SYMBOL and EXPORT_SYMBOL_GPL macros. This matches the Linux kernel's header organization where export.h is a separate file. Update compat.h to include export.h and remove the duplicate definitions. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- include/linux/compat.h | 3 +-- include/linux/export.h | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 include/linux/export.h diff --git a/include/linux/compat.h b/include/linux/compat.h index 62381451617..12b4cfccdc5 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h @@ -11,6 +11,7 @@ #include #include +#include #include #ifdef CONFIG_XEN @@ -182,8 +183,6 @@ typedef unsigned long blkcnt_t; #define module_put(...) do { } while (0) #define module_init(...) #define module_exit(...) -#define EXPORT_SYMBOL(...) -#define EXPORT_SYMBOL_GPL(...) #define module_param(...) #define module_param_call(...) #define MODULE_PARM_DESC(...) diff --git a/include/linux/export.h b/include/linux/export.h new file mode 100644 index 00000000000..2585bd40d25 --- /dev/null +++ b/include/linux/export.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +#ifndef _LINUX_EXPORT_H +#define _LINUX_EXPORT_H + +/* + * Stub definitions for Linux kernel module exports. + * U-Boot doesn't use modules, so these are no-ops. + */ +#define EXPORT_SYMBOL(sym) +#define EXPORT_SYMBOL_GPL(sym) +#define EXPORT_SYMBOL_NS(sym, ns) +#define EXPORT_SYMBOL_NS_GPL(sym, ns) + +#endif /* _LINUX_EXPORT_H */