ext4l: Extract export.h declarations into their own file
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 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com>
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/err.h>
|
||||
#include <linux/export.h>
|
||||
#include <linux/kernel.h>
|
||||
|
||||
#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(...)
|
||||
|
||||
14
include/linux/export.h
Normal file
14
include/linux/export.h
Normal file
@@ -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 */
|
||||
Reference in New Issue
Block a user