From patchwork Wed Jan 14 22:56:11 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1515 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=1768431503; bh=ggis0HkvdWItXGkbIY/AgOzSFR3C92EBOvHzSPYUM38=; 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=Nyz9RrP83EceO5I5+kTYr/wKNixRocZ2aRV3ivY7Ey5aqwimZ4OU6m/b2FFwG2hCb a6Pk1nQKn84U+VrtTZTh2JUgUwH/XOt21XL4SsVPZNM/mv5HZVRx/LBhl2/oEIGbND VIN/ISjtNzadZI3opIFqNDKsH7oA+/ODHtXIz5xgYJcqfsBIv12Nj+IfuoAa8E6Yd/ 8WKwTCE5Ub2IzuvPRd8yV/++PG7Ac+6sUlkoQILBqjN1qjz9Ykw47+NmPjNXo/uGn6 dgD5JVVaVHVzcuI94nd3eHZoFIqG4QJw/bR+reQZEVnqqlu3ATKXh62wdLZSvfwNxa A2r2cC2Z3Dflw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 60A4A6935F for ; Wed, 14 Jan 2026 15:58:23 -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 bXXZ9SBP_XBF for ; Wed, 14 Jan 2026 15:58:23 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768431503; bh=ggis0HkvdWItXGkbIY/AgOzSFR3C92EBOvHzSPYUM38=; 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=Nyz9RrP83EceO5I5+kTYr/wKNixRocZ2aRV3ivY7Ey5aqwimZ4OU6m/b2FFwG2hCb a6Pk1nQKn84U+VrtTZTh2JUgUwH/XOt21XL4SsVPZNM/mv5HZVRx/LBhl2/oEIGbND VIN/ISjtNzadZI3opIFqNDKsH7oA+/ODHtXIz5xgYJcqfsBIv12Nj+IfuoAa8E6Yd/ 8WKwTCE5Ub2IzuvPRd8yV/++PG7Ac+6sUlkoQILBqjN1qjz9Ykw47+NmPjNXo/uGn6 dgD5JVVaVHVzcuI94nd3eHZoFIqG4QJw/bR+reQZEVnqqlu3ATKXh62wdLZSvfwNxa A2r2cC2Z3Dflw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 50C9469345 for ; Wed, 14 Jan 2026 15:58:23 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768431502; bh=s3Byb8nbGRFL1eGJG4CaUA8igJgzLdUux+gm9IIYwI8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WLEZfD1KBY/FGDiQZ6S2pmsbJmSSO+nNsNkKy+auzWN0tVMoTYLCIdzySrAxeG0UR 1s0d0pC5889SNtaQQwkU+TlzW0CNFF3j2cAvQnYDb0e5gDIuY6d5JV5/2et6Vwh2FY XmiCSKFTs5XOmBOl6SNk6j0pjoOGRbMx53P/z3RRzN2H9FK3Lxbmrc8XWgrGgcD/YR cM3xICTK1XxUKNlucjzC/T28H8+WRwo4haIMda1ZaSaATKlYsLCchsk2wT5BQvcZkI qJ4pBoX0yzjJu8qXmZcS/Ow/brOCDon9pi4YUQMaLsyBWKldkt3qGvpNV5lZXzZWAU gnvP1G58NeT6w== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 53DC969345; Wed, 14 Jan 2026 15:58:22 -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 hDd_aY4sjpHh; Wed, 14 Jan 2026 15:58:22 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768431497; bh=rVlBMUj1qC6zN7cfFULoxyJ4ZA/AKeHB50G6v37+0Fs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q3p8Doqhpl/js1mQ41WaLZyOL9GzjpSstI9Dfmu35I6GGXsm/52JFM1yl6K0wAmwX 5CYFPAPuOQsf6v+gpdY5IqEOFbToUKiwCWUUFcNBVEyqEVR/gqtxlhY3F0apdAEFBg T/V/nrS8jIOh6UKe2h1PzQePJvlFzKh44a7PFNMqLp6nRPfErR94jmVBeqmH+GVa90 LjBdSCEFX5fAla3RS1DzXaDvYGvwqbWAzynUrhw/14KwngxHb6GxNT+0Y5N3IGlsCw k6UILYY6A+mGj9cg1Eu8w7sjBX/85uWBUZimAnboyjJ7arthEAHX3RB0uZvA72XAxI AggKEKAC9/9uQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 2DD2E6913F; Wed, 14 Jan 2026 15:58:17 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Wed, 14 Jan 2026 15:56:11 -0700 Message-ID: <20260114225635.3407989-22-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260114225635.3407989-1-sjg@u-boot.org> References: <20260114225635.3407989-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: YHVFMC5YV43IZ3M2FLS4GTMEMSGOYT6C X-Message-ID-Hash: YHVFMC5YV43IZ3M2FLS4GTMEMSGOYT6C 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 21/34] ext4l: Move module stubs to linux/module.h 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 The ext4l code defines MODULE_ALIAS_FS() and filesystem registration macros register_filesystem() and unregister_filesystem() locally instead of in the common module header. Move these to linux/module.h where they belong with the other module-related stubs. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- fs/ext4l/ext4_uboot.h | 12 ++---------- include/linux/module.h | 5 +++++ 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 44f1d2fabc8..4c214fa5bdc 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -1866,16 +1866,8 @@ struct kstatfs { /* struct seq_file is in linux/seq_file.h */ -/* Module stubs */ -struct module; -#ifndef THIS_MODULE -#define THIS_MODULE NULL -#endif -#define MODULE_ALIAS_FS(name) - -/* register/unregister filesystem */ -#define register_filesystem(fs) ({ (void)(fs); 0; }) -#define unregister_filesystem(fs) ({ (void)(fs); 0; }) +/* Module stubs and register_filesystem are in linux/module.h */ +#include /* EXT4_GOING flags */ #define EXT4_GOING_FLAGS_DEFAULT 0 diff --git a/include/linux/module.h b/include/linux/module.h index fba06096cbc..834f7d66d49 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -33,5 +33,10 @@ struct module; #define MODULE_ALIAS(alias) #define MODULE_SOFTDEP(dep) #define MODULE_INFO(tag, info) +#define MODULE_ALIAS_FS(name) + +/* Filesystem registration - not used in U-Boot */ +#define register_filesystem(fs) ({ (void)(fs); 0; }) +#define unregister_filesystem(fs) ({ (void)(fs); 0; }) #endif /* _LINUX_MODULE_H */