Re: [PATCH] objtool: fix build with future Make

2018-03-26 Thread Masahiro Yamada
2018-03-26 7:32 GMT+09:00 Rasmus Villemoes : > I tried building using a freshly built Make (4.2.1-69-g8a731d1), but the > objtool build broke with > > orc_dump.c: In function ‘orc_dump’: > orc_dump.c:106:2: error: ‘elf_getshnum’ is deprecated > [-Werror=deprecated-declarations] > if (elf_getshdr

Re: [PATCH] objtool: fix build with future Make

2018-03-25 Thread Randy Dunlap
On 03/25/2018 03:32 PM, Rasmus Villemoes wrote: > I tried building using a freshly built Make (4.2.1-69-g8a731d1), but the > objtool build broke with > > orc_dump.c: In function ‘orc_dump’: > orc_dump.c:106:2: error: ‘elf_getshnum’ is deprecated > [-Werror=deprecated-declarations] > if (elf_get

[PATCH] objtool: fix build with future Make

2018-03-25 Thread Rasmus Villemoes
I tried building using a freshly built Make (4.2.1-69-g8a731d1), but the objtool build broke with orc_dump.c: In function ‘orc_dump’: orc_dump.c:106:2: error: ‘elf_getshnum’ is deprecated [-Werror=deprecated-declarations] if (elf_getshdrnum(elf, &nr_sections)) { Turns out that with that new Ma