kernel_optimize_test/arch/x86/tools
Markus Trippelsdorf 7ebb916782 x86/tools: Fix gcc-7 warning in relocs.c
gcc-7 warns:

In file included from arch/x86/tools/relocs_64.c:17:0:
arch/x86/tools/relocs.c: In function ‘process_64’:
arch/x86/tools/relocs.c:953:2: warning: argument 1 null where non-null expected [-Wnonnull]
  qsort(r->offset, r->count, sizeof(r->offset[0]), cmp_relocs);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from arch/x86/tools/relocs.h:6:0,
                 from arch/x86/tools/relocs_64.c:1:
/usr/include/stdlib.h:741:13: note: in a call to function ‘qsort’ declared here         
 extern void qsort 

This happens because relocs16 is not used for ELF_BITS == 64, 
so there is no point in trying to sort it.

Make the sort_relocs(&relocs16) call 32bit only.

Signed-off-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Link: http://lkml.kernel.org/r/20161215124513.GA289@x4
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2016-12-19 11:50:24 +01:00
..
.gitignore
chkobjdump.awk
distill.awk
gen-insn-attr-x86.awk x86/insn: Add AVX-512 support to the instruction decoder 2016-07-21 09:37:11 -03:00
insn_sanity.c x86/decoder: Use stderr if insn sanity test fails 2016-10-26 08:41:06 +02:00
Makefile x86/build: Supress "Nothing to be done for ..." messages 2014-04-14 11:44:36 +02:00
relocs_32.c
relocs_64.c
relocs_common.c
relocs.c x86/tools: Fix gcc-7 warning in relocs.c 2016-12-19 11:50:24 +01:00
relocs.h x86/build: Annotate die() with noreturn to fix build warning on clang 2016-11-28 07:47:22 +01:00
test_get_len.c x86/decoder: Use stdout if insn decoder test is successful 2016-10-26 08:41:06 +02:00