From: Masahiro Yamada Date: Sat, 27 Jul 2024 07:42:01 +0000 (+0900) Subject: modpost: remove unused HOST_ELFCLASS X-Git-Tag: v6.12~336^2~50 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f32f799a950c7fffa17971177be42c79d74b69f;p=platform%2Fkernel%2Flinux-amlogic.git modpost: remove unused HOST_ELFCLASS HOST_ELFCLASS is output to elfconfig.h, but it is not used in modpost. Signed-off-by: Masahiro Yamada Reviewed-by: Nicolas Schier --- 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");