Skip to content

Commit e18afa5

Browse files
committed
Merge branch 'work.quota-compat' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull compat quotactl cleanups from Al Viro: "More Christoph's compat cleanups: quotactl(2)" * 'work.quota-compat' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: quota: simplify the quotactl compat handling compat: add a compat_need_64bit_alignment_fixup() helper compat: lift compat_s64 and compat_u64 to <asm-generic/compat.h>
2 parents 85ed13e + 80bdad3 commit e18afa5

17 files changed

Lines changed: 113 additions & 159 deletions

File tree

‎arch/arm64/include/asm/compat.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ typedef s32 compat_nlink_t;
3535
typedef u16 compat_ipc_pid_t;
3636
typedef u32 compat_caddr_t;
3737
typedef __kernel_fsid_t compat_fsid_t;
38-
typedef s64 compat_s64;
39-
typedef u64 compat_u64;
4038

4139
struct compat_stat {
4240
#ifdef __AARCH64EB__

‎arch/mips/include/asm/compat.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ typedef s32 compat_caddr_t;
2626
typedef struct {
2727
s32 val[2];
2828
} compat_fsid_t;
29-
typedef s64 compat_s64;
30-
typedef u64 compat_u64;
3129

3230
struct compat_stat {
3331
compat_dev_t st_dev;

‎arch/parisc/include/asm/compat.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ typedef u32 compat_dev_t;
2222
typedef u16 compat_nlink_t;
2323
typedef u16 compat_ipc_pid_t;
2424
typedef u32 compat_caddr_t;
25-
typedef s64 compat_s64;
26-
typedef u64 compat_u64;
2725

2826
struct compat_stat {
2927
compat_dev_t st_dev; /* dev_t is 32 bits on parisc */

‎arch/powerpc/include/asm/compat.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ typedef s16 compat_nlink_t;
2727
typedef u16 compat_ipc_pid_t;
2828
typedef u32 compat_caddr_t;
2929
typedef __kernel_fsid_t compat_fsid_t;
30-
typedef s64 compat_s64;
31-
typedef u64 compat_u64;
3230

3331
struct compat_stat {
3432
compat_dev_t st_dev;

‎arch/s390/include/asm/compat.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ typedef u16 compat_nlink_t;
6363
typedef u16 compat_ipc_pid_t;
6464
typedef u32 compat_caddr_t;
6565
typedef __kernel_fsid_t compat_fsid_t;
66-
typedef s64 compat_s64;
67-
typedef u64 compat_u64;
6866

6967
typedef struct {
7068
u32 mask;

‎arch/sparc/include/asm/compat.h‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ typedef s16 compat_nlink_t;
2121
typedef u16 compat_ipc_pid_t;
2222
typedef u32 compat_caddr_t;
2323
typedef __kernel_fsid_t compat_fsid_t;
24-
typedef s64 compat_s64;
25-
typedef u64 compat_u64;
24+
2625
struct compat_stat {
2726
compat_dev_t st_dev;
2827
compat_ino_t st_ino;

‎arch/x86/entry/syscalls/syscall_32.tbl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
128 i386 init_module sys_init_module
143143
129 i386 delete_module sys_delete_module
144144
130 i386 get_kernel_syms
145-
131 i386 quotactl sys_quotactl compat_sys_quotactl32
145+
131 i386 quotactl sys_quotactl
146146
132 i386 getpgid sys_getpgid
147147
133 i386 fchdir sys_fchdir
148148
134 i386 bdflush sys_bdflush

‎arch/x86/include/asm/compat.h‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ typedef u16 compat_nlink_t;
2727
typedef u16 compat_ipc_pid_t;
2828
typedef u32 compat_caddr_t;
2929
typedef __kernel_fsid_t compat_fsid_t;
30-
typedef s64 __attribute__((aligned(4))) compat_s64;
31-
typedef u64 __attribute__((aligned(4))) compat_u64;
3230

3331
struct compat_stat {
3432
compat_dev_t st_dev;
@@ -211,6 +209,7 @@ static inline bool in_compat_syscall(void)
211209
return in_32bit_syscall();
212210
}
213211
#define in_compat_syscall in_compat_syscall /* override the generic impl */
212+
#define compat_need_64bit_alignment_fixup in_ia32_syscall
214213
#endif
215214

216215
struct compat_siginfo;

‎fs/quota/Kconfig‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,3 @@ config QFMT_V2
7070
config QUOTACTL
7171
bool
7272
default n
73-
74-
config QUOTACTL_COMPAT
75-
bool
76-
depends on QUOTACTL && COMPAT_FOR_U64_ALIGNMENT
77-
default y

‎fs/quota/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ obj-$(CONFIG_QFMT_V1) += quota_v1.o
44
obj-$(CONFIG_QFMT_V2) += quota_v2.o
55
obj-$(CONFIG_QUOTA_TREE) += quota_tree.o
66
obj-$(CONFIG_QUOTACTL) += quota.o kqid.o
7-
obj-$(CONFIG_QUOTACTL_COMPAT) += compat.o
87
obj-$(CONFIG_QUOTA_NETLINK_INTERFACE) += netlink.o

0 commit comments

Comments
 (0)