Skip to content

Commit 42aadec

Browse files
committed
stat: remove no-longer-used helper macros
The choose_32_64() macros were added to deal with an odd inconsistency between the 32-bit and 64-bit layout of 'struct stat' way back when in commit a52dd97 ("vfs: de-crapify "cp_new_stat()" function"). Then a decade later Mikulas noticed that said inconsistency had been a mistake in the early x86-64 port, and shouldn't have existed in the first place. So commit 932aba1 ("stat: fix inconsistency between struct stat and struct compat_stat") removed the uses of the helpers. But the helpers remained around, unused. Get rid of them. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 45c3c62 commit 42aadec

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

fs/stat.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -419,12 +419,6 @@ SYSCALL_DEFINE2(fstat, unsigned int, fd, struct __old_kernel_stat __user *, stat
419419

420420
#ifdef __ARCH_WANT_NEW_STAT
421421

422-
#if BITS_PER_LONG == 32
423-
# define choose_32_64(a,b) a
424-
#else
425-
# define choose_32_64(a,b) b
426-
#endif
427-
428422
#ifndef INIT_STRUCT_STAT_PADDING
429423
# define INIT_STRUCT_STAT_PADDING(st) memset(&st, 0, sizeof(st))
430424
#endif

0 commit comments

Comments
 (0)