glibc/sysdeps
Joseph Myers c2d8f0b704 Avoid "inline" after return type in function definitions.
One group of warnings seen with -Wextra is warnings for static or
inline not at the start of a declaration (-Wold-style-declaration).

This patch fixes various such cases for inline, ensuring it comes at
the start of the declaration (after any static).  A common case of the
fix is "static inline <type> __always_inline"; the definition of
__always_inline starts with __inline, so the natural change is to
"static __always_inline <type>".  Other cases of the warning may be
harder to fix (one pattern is a function definition that gets
rewritten to be static by an including file, "#define funcname static
wrapped_funcname" or similar), but it seems worth fixing these cases
with inline anyway.

Tested for x86_64.

	* elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
	before return type, without separate inline.
	* elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
	* elf/dl-tunables.h (tunable_is_name): Likewise.
	* malloc/malloc.c (do_set_trim_threshold): Likewise.
	(do_set_top_pad): Likewise.
	(do_set_mmap_threshold): Likewise.
	(do_set_mmaps_max): Likewise.
	(do_set_mallopt_check): Likewise.
	(do_set_perturb_byte): Likewise.
	(do_set_arena_test): Likewise.
	(do_set_arena_max): Likewise.
	(do_set_tcache_max): Likewise.
	(do_set_tcache_count): Likewise.
	(do_set_tcache_unsorted_limit): Likewise.
	* nis/nis_subr.c (count_dots): Likewise.
	* nptl/allocatestack.c (advise_stack_range): Likewise.
	* sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
	(do_sin): Likewise.
	(reduce_sincos): Likewise.
	(do_sincos): Likewise.
	* sysdeps/unix/sysv/linux/x86/elision-conf.c
	(do_set_elision_enable): Likewise.
	(TUNABLE_CALLBACK_FNDECL): Likewise.
2019-02-06 17:16:43 +00:00
..
aarch64 aarch64: Optimized memchr specific to AmpereComputing emag 2019-02-01 08:14:21 -05:00
alpha alpha: Fix __remqu corrupting $f3 register 2019-01-24 10:28:13 -08:00
arm arm: Use "nr" constraint for Systemtap probes [BZ #24164] 2019-02-05 13:01:08 +01:00
csky
generic arm: Use "nr" constraint for Systemtap probes [BZ #24164] 2019-02-05 13:01:08 +01:00
gnu
hppa
htl hurd: advertise *_setpshared as not supported 2019-01-02 22:21:34 +01:00
hurd
i386 Fix handling of collating elements in fnmatch (bug 17396, bug 16976) 2019-02-04 15:45:02 +01:00
ia64 Fix a few typos in comments 2019-01-12 13:44:51 +00:00
ieee754 Avoid "inline" after return type in function definitions. 2019-02-06 17:16:43 +00:00
init_array
m68k
mach hurd: Check at_flags passed to faccessat 2019-01-22 22:47:10 +01:00
microblaze
mips Update MIPS libm-test-ulps. 2019-01-02 17:25:33 +00:00
nios2
nptl nptl: Cleanup cancellation macros 2019-01-03 18:38:16 -02:00
posix Cleanup clock_*time includes 2019-02-01 12:24:52 +00:00
powerpc powerpc: Fix tiny bug in strncmp.c 2019-01-16 12:18:58 -02:00
pthread
riscv RISC-V: Update nofpu ULPs 2019-01-24 13:55:05 -05:00
s390 S390: Fix introduction of __wmemcmp and weak wmemcmp symbols. 2019-02-06 09:10:31 +01:00
sh
sparc soft-fp: Properly check _FP_W_TYPE_SIZE [BZ #24066] 2019-01-07 09:04:39 -08:00
unix Avoid "inline" after return type in function definitions. 2019-02-06 17:16:43 +00:00
wordsize-32
wordsize-64
x86
x86_64 Fix handling of collating elements in fnmatch (bug 17396, bug 16976) 2019-02-04 15:45:02 +01:00