Add the multiblock allocator (mballoc.c) to the build. This implements the ext4 block allocation routines. Stubs added for: - Per-CPU operations (simplified to single-threaded) - XArray operations - RCU list operations - Block device properties - Various trace functions - Atomic operations (atomic_sub, atomic64_sub, atomic_inc_return) - WARN_RATELIMIT, folio_get, array_index_nospec - seq_operations for procfs - DEFINE_RAW_FLEX macro Remove stub functions that are now properly implemented: - ext4_mb_new_blocks - ext4_free_blocks - ext4_discard_preallocations - ext4_mb_mark_bb Add ext4_fc_replay_check_excluded stub for fast commit replay. Add file member to struct seq_file for procfs compatibility. Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com>
87 lines
1.8 KiB
C
87 lines
1.8 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* workqueue.h --- work queue handling for Linux.
|
|
*
|
|
* Stub definitions for Linux kernel workqueue support.
|
|
* U-Boot doesn't use workqueues.
|
|
*/
|
|
#ifndef _LINUX_WORKQUEUE_H
|
|
#define _LINUX_WORKQUEUE_H
|
|
|
|
struct work_struct {
|
|
void (*func)(struct work_struct *);
|
|
};
|
|
|
|
struct delayed_work {
|
|
struct work_struct work;
|
|
};
|
|
|
|
struct workqueue_struct;
|
|
|
|
/* Use macros for functions taking callback pointers to avoid requiring
|
|
* the callback to be declared (some callers have them in #ifdef blocks)
|
|
*/
|
|
#define INIT_WORK(work, func) do { } while (0)
|
|
#define INIT_DELAYED_WORK(work, func) do { } while (0)
|
|
|
|
static inline void schedule_work(struct work_struct *work)
|
|
{
|
|
}
|
|
|
|
static inline int schedule_delayed_work(struct delayed_work *work,
|
|
unsigned long delay)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int cancel_work_sync(struct work_struct *work)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int cancel_delayed_work(struct delayed_work *work)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int cancel_delayed_work_sync(struct delayed_work *work)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int flush_work(struct work_struct *work)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int flush_delayed_work(struct delayed_work *work)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int queue_work(struct workqueue_struct *wq,
|
|
struct work_struct *work)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline int queue_delayed_work(struct workqueue_struct *wq,
|
|
struct delayed_work *work,
|
|
unsigned long delay)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
#define alloc_workqueue(fmt, flags, max, ...) ((struct workqueue_struct *)1)
|
|
#define create_singlethread_workqueue(name) ((struct workqueue_struct *)1)
|
|
|
|
static inline void destroy_workqueue(struct workqueue_struct *wq)
|
|
{
|
|
}
|
|
|
|
/* System workqueues - all stubs in U-Boot */
|
|
#define system_dfl_wq ((struct workqueue_struct *)1)
|
|
#define system_wq ((struct workqueue_struct *)1)
|
|
|
|
#endif /* _LINUX_WORKQUEUE_H */
|