diff options
author | наб <nabijaczleweli@nabijaczleweli.xyz> | 2022-09-16 00:38:46 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-09-24 14:17:18 +0200 |
commit | 53c2bd679017277fce41101ae86ab51a234c29f7 (patch) | |
tree | d1c68fe7a5d528aad2de8275b350e371480ad73d /include/uapi | |
parent | 766c5a3ecb319cff62612568d05756c85a759998 (diff) | |
download | linux-stable-53c2bd679017277fce41101ae86ab51a234c29f7.tar.gz linux-stable-53c2bd679017277fce41101ae86ab51a234c29f7.tar.bz2 linux-stable-53c2bd679017277fce41101ae86ab51a234c29f7.zip |
a.out: remove define-only CMAGIC, previously magic number
The last user was removed in 5.1 in
commit 08300f4402ab ("a.out: remove core dumping support")
but this is part of the UAPI headers, so this may want to either wait
until a.out is removed entirely, or be removed from the magic number doc
and silently remain in the header
A cursory glance on DCS didn't show any user code actually using this
value
Found with
grep MAGIC Documentation/process/magic-number.rst | while read -r mag _;
do git grep -wF "$mag" | grep -ve '^Documentation.*magic-number.rst:' \
-qe ':#define '"$mag" || git grep -wF "$mag" | while IFS=: read -r f _;
do sed -i '/\b'"$mag"'\b/d' "$f"; done ; done
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Link: https://lore.kernel.org/r/9cbea062df7125ef43e2e0b2a67ede6ad1c5f27e.1663280877.git.nabijaczleweli@nabijaczleweli.xyz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/a.out.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/uapi/linux/a.out.h b/include/uapi/linux/a.out.h index 5fafde3798e5..bb15da96df2a 100644 --- a/include/uapi/linux/a.out.h +++ b/include/uapi/linux/a.out.h @@ -70,9 +70,6 @@ enum machine_type { The first page is unmapped to help trap NULL pointer references */ #define QMAGIC 0314 -/* Code indicating core file. */ -#define CMAGIC 0421 - #if !defined (N_BADMAG) #define N_BADMAG(x) (N_MAGIC(x) != OMAGIC \ && N_MAGIC(x) != NMAGIC \ |