Add Linux compatibility header stubs needed to compile extents_status.c: - backing-dev.h: Backing device info stub - dax.h: Direct Access (DAX) stubs - iomap.h: I/O mapping operations and structures - mman.h: Memory mapping flags - mount.h: VFS mount structures - pagevec.h: Page vector batching - pfn_t.h: Page frame number type - posix_acl_xattr.h: POSIX ACL xattr definitions - proc_fs.h: Proc filesystem stub - uio.h: User I/O vector definitions - xattr.h: Extended attributes - trace/events/ext4.h: Trace event stubs Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com>
54 lines
1.1 KiB
C
54 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_DAX_H
|
|
#define _LINUX_DAX_H
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/pfn_t.h>
|
|
|
|
struct address_space;
|
|
struct dax_device;
|
|
struct vm_area_struct;
|
|
struct iomap_ops;
|
|
struct kiocb;
|
|
struct iov_iter;
|
|
struct vm_fault;
|
|
|
|
typedef unsigned int vm_fault_t;
|
|
|
|
#define VM_FAULT_SIGBUS 0x0002
|
|
#define VM_FAULT_NOPAGE 0x0100
|
|
|
|
/* DAX is not supported in U-Boot - provide stubs */
|
|
static inline ssize_t
|
|
dax_iomap_rw(struct kiocb *iocb, struct iov_iter *iter,
|
|
const struct iomap_ops *ops)
|
|
{
|
|
return -EOPNOTSUPP;
|
|
}
|
|
|
|
static inline vm_fault_t
|
|
dax_iomap_fault(struct vm_fault *vmf, unsigned int order, pfn_t *pfnp,
|
|
int *errp, const struct iomap_ops *ops)
|
|
{
|
|
return VM_FAULT_SIGBUS;
|
|
}
|
|
|
|
static inline vm_fault_t
|
|
dax_finish_sync_fault(struct vm_fault *vmf, unsigned int order, pfn_t pfn)
|
|
{
|
|
return VM_FAULT_SIGBUS;
|
|
}
|
|
|
|
static inline bool dax_mapping(struct address_space *mapping)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
static inline bool daxdev_mapping_supported(struct vm_area_struct *vma,
|
|
struct dax_device *dax_dev)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
#endif /* _LINUX_DAX_H */
|