From: Simon Glass <simon.glass@canonical.com> 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 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- 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 <linux/module.h> /* 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 */ -- 2.43.0