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

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>

-6
-6
scripts/mod/mk_elfconfig.c
··· 39 39 exit(1); 40 40 } 41 41 42 - if (sizeof(unsigned long) == 4) { 43 - printf("#define HOST_ELFCLASS ELFCLASS32\n"); 44 - } else if (sizeof(unsigned long) == 8) { 45 - printf("#define HOST_ELFCLASS ELFCLASS64\n"); 46 - } 47 - 48 42 endian_test.s = 0x0102; 49 43 if (memcmp(endian_test.c, "\x01\x02", 2) == 0) 50 44 printf("#define HOST_ELFDATA ELFDATA2MSB\n");