diff options
| author | Markus Trippelsdorf <[email protected]> | 2016-12-15 12:45:13 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2016-12-19 10:50:24 +0000 |
| commit | 7ebb916782949621ff6819acf373a06902df7679 (patch) | |
| tree | d743bd22bda1c1f7ed45eb25eac089711ff0c0ce /net/unix/af_unix.c | |
| parent | x86/unwind: Dump stack data on warnings (diff) | |
| download | kernel-7ebb916782949621ff6819acf373a06902df7679.tar.gz kernel-7ebb916782949621ff6819acf373a06902df7679.zip | |
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 <[email protected]>
Link: http://lkml.kernel.org/r/20161215124513.GA289@x4
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
