summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2024-07-27 16:42:01 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2024-09-01 20:33:32 +0900
commit4f32f799a950c7fffa17971177be42c79d74b69f (patch)
tree5ba4aec34655b7a62bb34cebd66d069914f3e7a0 /scripts
parent431c1646e1f86b949fa3685efc50b660a364c2b6 (diff)
downloadlinux-4f32f799a950c7fffa17971177be42c79d74b69f.tar.gz
linux-4f32f799a950c7fffa17971177be42c79d74b69f.tar.bz2
linux-4f32f799a950c7fffa17971177be42c79d74b69f.zip
modpost: remove unused HOST_ELFCLASS
HOST_ELFCLASS is output to elfconfig.h, but it is not used in modpost. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mod/mk_elfconfig.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/scripts/mod/mk_elfconfig.c b/scripts/mod/mk_elfconfig.c
index 680eade89be1..aca96b3aada0 100644
--- a/scripts/mod/mk_elfconfig.c
+++ b/scripts/mod/mk_elfconfig.c
@@ -39,12 +39,6 @@ main(int argc, char **argv)
exit(1);
}
- if (sizeof(unsigned long) == 4) {
- printf("#define HOST_ELFCLASS ELFCLASS32\n");
- } else if (sizeof(unsigned long) == 8) {
- printf("#define HOST_ELFCLASS ELFCLASS64\n");
- }
-
endian_test.s = 0x0102;
if (memcmp(endian_test.c, "\x01\x02", 2) == 0)
printf("#define HOST_ELFDATA ELFDATA2MSB\n");