Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 a52dd971f947 ("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 932aba1e1690 ("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>

-6
-6
fs/stat.c
··· 419 419 420 420 #ifdef __ARCH_WANT_NEW_STAT 421 421 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 - 428 422 #ifndef INIT_STRUCT_STAT_PADDING 429 423 # define INIT_STRUCT_STAT_PADDING(st) memset(&st, 0, sizeof(st)) 430 424 #endif