History

modpost: remove unused HOST_ELFCLASS

HOST_ELFCLASS is output to elfconfig.h, but it is not used in modpost.

Masahiro Yamada committed 2 years ago

Commit 4f32f791 parent 431c1641 file · +0 −6Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/mod/mk_elfconfig.c+0−6
@@ -39,12 +39,6 @@ main(int argc, char **argv) · 38 unmodified lines
39 exit(1);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 endian_test.s = 0x0102;42 endian_test.s = 0x0102;
49 if (memcmp(endian_test.c, "\x01\x02", 2) == 0)43 if (memcmp(endian_test.c, "\x01\x02", 2) == 0)
50 printf("#define HOST_ELFDATA ELFDATA2MSB\n");44 printf("#define HOST_ELFDATA ELFDATA2MSB\n");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t