]> git.dujemihanovic.xyz Git - linux.git/commit
stat: remove no-longer-used helper macros
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 3 Sep 2023 18:09:56 +0000 (11:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 17 Sep 2023 17:46:12 +0000 (10:46 -0700)
commit42aadec8c739727fce8e2c1ee71e72cb0f82ed3f
tree027cf760c599b658c3644215effe60a92c5b6255
parent45c3c627222f061a12e2f40612b80c17e915faf8
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>
fs/stat.c