fs: uapi: add a public linux/statfs.h header
PATCH 1/1 fs: uapi: add a public linux/statfs.h header
Currently the statfs UAPI definitions are only available from the asm/ namespace, which is not meant to be used directly by applications.
Add a public UAPI header and adapt the internal linux/statfs.h to it.
Signed-off-by Thomas Weißschuh <[email protected]>
--- include/linux/statfs.h | 3 ++- include/uapi/linux/statfs.h | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-)
include/linux/statfs.h +2 -1
@@ -2,8 +2,9 @@#ifndef _LINUX_STATFS_H#define _LINUX_STATFS_H +#include <uapi/linux/statfs.h> +#include <linux/types.h> -#include <asm/statfs.h> #include <asm/byteorder.h> struct kstatfs {
include/uapi/linux/statfs.h new file +7 -0
@@ -0,0 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +#ifndef _UAPI_LINUX_STATFS_H +#define _UAPI_LINUX_STATFS_H + +#include <asm/statfs.h> + +#endif /* _UAPI_LINUX_STATFS_H */
---
base-commit: dbf00d8d23b43a7a1d717e704c50651731d01d71
change-id: 20260401-uapi-statfs-94417524d5d4
Best regards,
Signature · 1 line
Thomas Weißschuh <[email protected]>