cleanup inlines
[buildroot.git] / toolchain / uClibc / uClibc.071-cleanup-inline.00.patch
blob5a571e0c0b77a0df71f480cf86077d8d76f3e881
1 Index: uClibc/libm/e_lgamma_r.c
2 ===================================================================
3 --- uClibc/libm/e_lgamma_r.c (revision 23764)
4 +++ uClibc/libm/e_lgamma_r.c (working copy)
5 @@ -164,7 +164,7 @@ static double zero= 0.00000000000000000
7 static
8 #ifdef __GNUC__
9 -inline
10 +__inline__
11 #endif
12 #ifdef __STDC__
13 double sin_pi(double x)
14 Index: uClibc/ldso/ldso/arm/dl-startup.h
15 ===================================================================
16 --- uClibc/ldso/ldso/arm/dl-startup.h (revision 23764)
17 +++ uClibc/ldso/ldso/arm/dl-startup.h (working copy)
18 @@ -136,7 +136,7 @@ __asm__(
19 #define GET_ARGV(ARGVP, ARGS) ARGVP = (((unsigned long*)ARGS)+1)
21 /* Handle relocation of the symbols in the dynamic loader. */
22 -static inline
23 +static __always_inline
24 void PERFORM_BOOTSTRAP_RELOC(ELF_RELOC *rpnt, unsigned long *reloc_addr,
25 unsigned long symbol_addr, unsigned long load_addr, Elf32_Sym *symtab)
27 Index: uClibc/ldso/ldso/frv/dl-syscalls.h
28 ===================================================================
29 --- uClibc/ldso/ldso/frv/dl-syscalls.h (revision 23764)
30 +++ uClibc/ldso/ldso/frv/dl-syscalls.h (working copy)
31 @@ -30,8 +30,8 @@ static __inline__ _syscall6(__ptr_t, __s
32 # endif
34 #include <bits/uClibc_page.h> /* for PAGE_SIZE */
35 -inline static void *_dl_memset(void*,int,size_t);
36 -inline static ssize_t _dl_pread(int fd, void *buf, size_t count, off_t offset);
37 +static __always_inline void *_dl_memset(void*,int,size_t);
38 +static __always_inline ssize_t _dl_pread(int fd, void *buf, size_t count, off_t offset);
40 static __ptr_t
41 _dl_mmap(__ptr_t addr, size_t len, int prot, int flags, int fd, __off_t offset)
42 @@ -138,11 +138,11 @@ _dl_mmap(__ptr_t addr, size_t len, int p
43 #include <unistd.h>
45 #define __NR___syscall_lseek __NR_lseek
46 -inline static unsigned long _dl_read(int fd, const void *buf, unsigned long count);
47 +static __always_inline unsigned long _dl_read(int fd, const void *buf, unsigned long count);
49 -inline static _syscall3(__off_t, __syscall_lseek, int, fd, __off_t, offset,
50 +static __always_inline _syscall3(__off_t, __syscall_lseek, int, fd, __off_t, offset,
51 int, whence);
52 -inline static ssize_t
53 +static __always_inline ssize_t
54 _dl_pread(int fd, void *buf, size_t count, off_t offset)
56 __off_t orig = __syscall_lseek (fd, 0, SEEK_CUR);
57 @@ -163,10 +163,10 @@ _dl_pread(int fd, void *buf, size_t coun
59 #else
60 #define __NR___syscall_pread __NR_pread
61 -inline static _syscall5(ssize_t, __syscall_pread, int, fd, void *, buf,
62 +static __always_inline _syscall5(ssize_t, __syscall_pread, int, fd, void *, buf,
63 size_t, count, off_t, offset_hi, off_t, offset_lo);
65 -inline static ssize_t
66 +static __always_inline ssize_t
67 _dl_pread(int fd, void *buf, size_t count, off_t offset)
69 return(__syscall_pread(fd,buf,count,__LONG_LONG_PAIR (offset >> 31, offset)));
70 Index: uClibc/ldso/ldso/frv/dl-inlines.h
71 ===================================================================
72 --- uClibc/ldso/ldso/frv/dl-inlines.h (revision 23764)
73 +++ uClibc/ldso/ldso/frv/dl-inlines.h (working copy)
74 @@ -10,7 +10,7 @@
76 /* Initialize a DL_LOADADDR_TYPE given a got pointer and a complete
77 load map. */
78 -inline static void
79 +static __always_inline void
80 __dl_init_loadaddr_map (struct elf32_fdpic_loadaddr *loadaddr, void *got_value,
81 struct elf32_fdpic_loadmap *map)
83 @@ -31,7 +31,7 @@ __dl_init_loadaddr_map (struct elf32_fdp
84 /* Figure out how many LOAD segments there are in the given headers,
85 and allocate a block for the load map big enough for them.
86 got_value will be properly initialized later on, with INIT_GOT. */
87 -inline static int
88 +static __always_inline int
89 __dl_init_loadaddr (struct elf32_fdpic_loadaddr *loadaddr, Elf32_Phdr *ppnt,
90 int pcnt)
92 @@ -57,7 +57,7 @@ __dl_init_loadaddr (struct elf32_fdpic_l
95 /* Incrementally initialize a load map. */
96 -inline static void
97 +static __always_inline void
98 __dl_init_loadaddr_hdr (struct elf32_fdpic_loadaddr loadaddr, void *addr,
99 Elf32_Phdr *phdr, int maxsegs)
101 @@ -83,12 +83,12 @@ __dl_init_loadaddr_hdr (struct elf32_fdp
102 #endif
105 -inline static void __dl_loadaddr_unmap
106 +static __always_inline void __dl_loadaddr_unmap
107 (struct elf32_fdpic_loadaddr loadaddr, struct funcdesc_ht *funcdesc_ht);
109 /* Figure out whether the given address is in one of the mapped
110 segments. */
111 -inline static int
112 +static __always_inline int
113 __dl_addr_in_loadaddr (void *p, struct elf32_fdpic_loadaddr loadaddr)
115 struct elf32_fdpic_loadmap *map = loadaddr.map;
116 @@ -102,7 +102,7 @@ __dl_addr_in_loadaddr (void *p, struct e
117 return 0;
120 -inline static void * _dl_funcdesc_for (void *entry_point, void *got_value);
121 +static __always_inline void * _dl_funcdesc_for (void *entry_point, void *got_value);
123 /* The hashcode handling code below is heavily inspired in libiberty's
124 hashtab code, but with most adaptation points and support for
125 @@ -111,7 +111,7 @@ inline static void * _dl_funcdesc_for (v
126 Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
127 Contributed by Vladimir Makarov (vmakarov@cygnus.com). */
129 -inline static unsigned long
130 +static __always_inline unsigned long
131 higher_prime_number (unsigned long n)
133 /* These are primes that are near, but slightly smaller than, a
134 @@ -186,13 +186,13 @@ struct funcdesc_ht
135 size_t n_elements;
138 -inline static int
139 +static __always_inline int
140 hash_pointer (const void *p)
142 return (int) ((long)p >> 3);
145 -inline static struct funcdesc_ht *
146 +static __always_inline struct funcdesc_ht *
147 htab_create (void)
149 struct funcdesc_ht *ht = _dl_malloc (sizeof (struct funcdesc_ht));
150 @@ -213,7 +213,7 @@ htab_create (void)
152 /* This is only called from _dl_loadaddr_unmap, so it's safe to call
153 _dl_free(). See the discussion below. */
154 -inline static void
155 +static __always_inline void
156 htab_delete (struct funcdesc_ht *htab)
158 int i;
159 @@ -233,7 +233,7 @@ htab_delete (struct funcdesc_ht *htab)
160 This function also assumes there are no deleted entries in the table.
161 HASH is the hash value for the element to be inserted. */
163 -inline static struct funcdesc_value **
164 +static __always_inline struct funcdesc_value **
165 find_empty_slot_for_expand (struct funcdesc_ht *htab, int hash)
167 size_t size = htab->size;
168 @@ -265,7 +265,7 @@ find_empty_slot_for_expand (struct funcd
169 this function will return zero, indicating that the table could not be
170 expanded. If all goes well, it will return a non-zero value. */
172 -inline static int
173 +static __always_inline int
174 htab_expand (struct funcdesc_ht *htab)
176 struct funcdesc_value **oentries;
177 @@ -323,7 +323,7 @@ htab_expand (struct funcdesc_ht *htab)
178 When inserting an entry, NULL may be returned if memory allocation
179 fails. */
181 -inline static struct funcdesc_value **
182 +static __always_inline struct funcdesc_value **
183 htab_find_slot (struct funcdesc_ht *htab, void *ptr, int insert)
185 unsigned int index;
186 @@ -399,7 +399,7 @@ _dl_funcdesc_for (void *entry_point, voi
187 return _dl_stabilize_funcdesc (*entry);
190 -inline static void const *
191 +static __always_inline void const *
192 _dl_lookup_address (void const *address)
194 struct elf_resolve *rpnt;
195 Index: uClibc/ldso/ldso/cris/dl-startup.h
196 ===================================================================
197 --- uClibc/ldso/ldso/cris/dl-startup.h (revision 23764)
198 +++ uClibc/ldso/ldso/cris/dl-startup.h (working copy)
199 @@ -53,7 +53,7 @@ __asm__("" \
202 /* Handle relocation of the symbols in the dynamic loader. */
203 -static inline
204 +static __always_inline
205 void PERFORM_BOOTSTRAP_RELOC(ELF_RELOC *rpnt, unsigned long *reloc_addr,
206 unsigned long symbol_addr, unsigned long load_addr, Elf32_Sym *symtab)
208 Index: uClibc/ldso/ldso/sh/dl-syscalls.h
209 ===================================================================
210 --- uClibc/ldso/ldso/sh/dl-syscalls.h (revision 23764)
211 +++ uClibc/ldso/ldso/sh/dl-syscalls.h (working copy)
212 @@ -9,6 +9,6 @@ extern int _dl_errno;
213 #warning !!! gcc 4.1 and later have problems with __always_inline so redefined as inline
214 # ifdef __always_inline
215 # undef __always_inline
216 -# define __always_inline inline
217 +# define __always_inline __inline__
218 # endif
219 #endif
220 Index: uClibc/ldso/ldso/bfin/dl-syscalls.h
221 ===================================================================
222 --- uClibc/ldso/ldso/bfin/dl-syscalls.h (revision 23764)
223 +++ uClibc/ldso/ldso/bfin/dl-syscalls.h (working copy)
224 @@ -44,8 +44,8 @@ static __inline__ _syscall6(__ptr_t, __s
225 # endif
227 #include <bits/uClibc_page.h> /* for PAGE_SIZE */
228 -inline static void *_dl_memset(void*,int,size_t);
229 -inline static ssize_t _dl_pread(int fd, void *buf, size_t count, off_t offset);
230 +static __always_inline void *_dl_memset(void*,int,size_t);
231 +static __always_inline ssize_t _dl_pread(int fd, void *buf, size_t count, off_t offset);
233 static __ptr_t
234 _dl_mmap(__ptr_t addr, size_t len, int prot, int flags, int fd, __off_t offset)
235 @@ -152,11 +152,11 @@ _dl_mmap(__ptr_t addr, size_t len, int p
236 #include <unistd.h>
238 #define __NR___syscall_lseek __NR_lseek
239 -inline static unsigned long _dl_read(int fd, const void *buf, unsigned long count);
240 +static __always_inline unsigned long _dl_read(int fd, const void *buf, unsigned long count);
242 -inline static _syscall3(__off_t, __syscall_lseek, int, fd, __off_t, offset,
243 +static __always_inline _syscall3(__off_t, __syscall_lseek, int, fd, __off_t, offset,
244 int, whence);
245 -inline static ssize_t
246 +static __always_inline ssize_t
247 _dl_pread(int fd, void *buf, size_t count, off_t offset)
249 __off_t orig = __syscall_lseek (fd, 0, SEEK_CUR);
250 @@ -177,10 +177,10 @@ _dl_pread(int fd, void *buf, size_t coun
252 #else
253 #define __NR___syscall_pread __NR_pread
254 -inline static _syscall5(ssize_t, __syscall_pread, int, fd, void *, buf,
255 +static __always_inline _syscall5(ssize_t, __syscall_pread, int, fd, void *, buf,
256 size_t, count, off_t, offset_hi, off_t, offset_lo);
258 -inline static ssize_t
259 +static __always_inline ssize_t
260 _dl_pread(int fd, void *buf, size_t count, off_t offset)
262 return(__syscall_pread(fd,buf,count,__LONG_LONG_PAIR (offset >> 31, offset)));
263 @@ -190,18 +190,18 @@ _dl_pread(int fd, void *buf, size_t coun
265 #ifdef __NR_sram_alloc
266 #define __NR__dl_sram_alloc __NR_sram_alloc
267 -inline static _syscall2(__ptr_t, _dl_sram_alloc,
268 +static __always_inline _syscall2(__ptr_t, _dl_sram_alloc,
269 size_t, len, unsigned long, flags);
270 #endif
272 #ifdef __NR_sram_free
273 #define __NR__dl_sram_free __NR_sram_free
274 -inline static _syscall1(int, _dl_sram_free, __ptr_t, addr);
275 +static __always_inline _syscall1(int, _dl_sram_free, __ptr_t, addr);
276 #endif
278 #ifdef __NR_dma_memcpy
279 #define __NR__dl_dma_memcpy __NR_dma_memcpy
280 -inline static _syscall3(__ptr_t, _dl_dma_memcpy,
281 +static __always_inline _syscall3(__ptr_t, _dl_dma_memcpy,
282 __ptr_t, dest, __ptr_t, src, size_t, len);
283 #endif
285 Index: uClibc/ldso/ldso/bfin/dl-inlines.h
286 ===================================================================
287 --- uClibc/ldso/ldso/bfin/dl-inlines.h (revision 23764)
288 +++ uClibc/ldso/ldso/bfin/dl-inlines.h (working copy)
289 @@ -26,7 +26,7 @@ USA. */
291 /* Initialize a DL_LOADADDR_TYPE given a got pointer and a complete
292 load map. */
293 -inline static void
294 +static __always_inline void
295 __dl_init_loadaddr_map (struct elf32_fdpic_loadaddr *loadaddr, Elf32_Addr dl_boot_got_pointer,
296 struct elf32_fdpic_loadmap *map)
298 @@ -47,7 +47,7 @@ __dl_init_loadaddr_map (struct elf32_fdp
299 /* Figure out how many LOAD segments there are in the given headers,
300 and allocate a block for the load map big enough for them.
301 got_value will be properly initialized later on, with INIT_GOT. */
302 -inline static int
303 +static __always_inline int
304 __dl_init_loadaddr (struct elf32_fdpic_loadaddr *loadaddr, Elf32_Phdr *ppnt,
305 int pcnt)
307 @@ -73,7 +73,7 @@ __dl_init_loadaddr (struct elf32_fdpic_l
310 /* Incrementally initialize a load map. */
311 -inline static void
312 +static __always_inline void
313 __dl_init_loadaddr_hdr (struct elf32_fdpic_loadaddr loadaddr, void *addr,
314 Elf32_Phdr *phdr, int maxsegs)
316 @@ -99,12 +99,12 @@ __dl_init_loadaddr_hdr (struct elf32_fdp
317 #endif
320 -inline static void __dl_loadaddr_unmap
321 +static __always_inline void __dl_loadaddr_unmap
322 (struct elf32_fdpic_loadaddr loadaddr, struct funcdesc_ht *funcdesc_ht);
324 /* Figure out whether the given address is in one of the mapped
325 segments. */
326 -inline static int
327 +static __always_inline int
328 __dl_addr_in_loadaddr (void *p, struct elf32_fdpic_loadaddr loadaddr)
330 struct elf32_fdpic_loadmap *map = loadaddr.map;
331 @@ -118,7 +118,7 @@ __dl_addr_in_loadaddr (void *p, struct e
332 return 0;
335 -inline static void * _dl_funcdesc_for (void *entry_point, void *got_value);
336 +static __always_inline void * _dl_funcdesc_for (void *entry_point, void *got_value);
338 /* The hashcode handling code below is heavily inspired in libiberty's
339 hashtab code, but with most adaptation points and support for
340 @@ -127,7 +127,7 @@ inline static void * _dl_funcdesc_for (v
341 Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
342 Contributed by Vladimir Makarov (vmakarov@cygnus.com). */
344 -inline static unsigned long
345 +static __always_inline unsigned long
346 higher_prime_number (unsigned long n)
348 /* These are primes that are near, but slightly smaller than, a
349 @@ -202,13 +202,13 @@ struct funcdesc_ht
350 size_t n_elements;
353 -inline static int
354 +static __always_inline int
355 hash_pointer (const void *p)
357 return (int) ((long)p >> 3);
360 -inline static struct funcdesc_ht *
361 +static __always_inline struct funcdesc_ht *
362 htab_create (void)
364 struct funcdesc_ht *ht = _dl_malloc (sizeof (struct funcdesc_ht));
365 @@ -229,7 +229,7 @@ htab_create (void)
367 /* This is only called from _dl_loadaddr_unmap, so it's safe to call
368 _dl_free(). See the discussion below. */
369 -inline static void
370 +static __always_inline void
371 htab_delete (struct funcdesc_ht *htab)
373 int i;
374 @@ -249,7 +249,7 @@ htab_delete (struct funcdesc_ht *htab)
375 This function also assumes there are no deleted entries in the table.
376 HASH is the hash value for the element to be inserted. */
378 -inline static struct funcdesc_value **
379 +static __always_inline struct funcdesc_value **
380 find_empty_slot_for_expand (struct funcdesc_ht *htab, int hash)
382 size_t size = htab->size;
383 @@ -281,7 +281,7 @@ find_empty_slot_for_expand (struct funcd
384 this function will return zero, indicating that the table could not be
385 expanded. If all goes well, it will return a non-zero value. */
387 -inline static int
388 +static __always_inline int
389 htab_expand (struct funcdesc_ht *htab)
391 struct funcdesc_value **oentries;
392 @@ -339,7 +339,7 @@ htab_expand (struct funcdesc_ht *htab)
393 When inserting an entry, NULL may be returned if memory allocation
394 fails. */
396 -inline static struct funcdesc_value **
397 +static __always_inline struct funcdesc_value **
398 htab_find_slot (struct funcdesc_ht *htab, void *ptr, int insert)
400 unsigned int index;
401 @@ -415,7 +415,7 @@ _dl_funcdesc_for (void *entry_point, voi
402 return _dl_stabilize_funcdesc (*entry);
405 -inline static void const *
406 +static __always_inline void const *
407 _dl_lookup_address (void const *address)
409 struct elf_resolve *rpnt;
410 @@ -487,7 +487,7 @@ __dl_loadaddr_unmap (struct elf32_fdpic_
411 htab_delete (funcdesc_ht);
414 -inline static int
415 +static __always_inline int
416 __dl_is_special_segment (Elf32_Ehdr *epnt,
417 Elf32_Phdr *ppnt)
419 @@ -515,7 +515,7 @@ __dl_is_special_segment (Elf32_Ehdr *epn
420 return 0;
423 -inline static char *
424 +static __always_inline char *
425 __dl_map_segment (Elf32_Ehdr *epnt,
426 Elf32_Phdr *ppnt,
427 int infile,
428 Index: uClibc/libc/stdlib/stdlib.c
429 ===================================================================
430 --- uClibc/libc/stdlib/stdlib.c (revision 23764)
431 +++ uClibc/libc/stdlib/stdlib.c (working copy)
432 @@ -936,7 +936,7 @@ libc_hidden_def(_stdlib_mb_cur_max)
433 * To note, until now all the supported encoding are stateless.
436 -static inline int is_stateful(unsigned char encoding)
437 +static __always_inline int is_stateful(unsigned char encoding)
439 switch (encoding)
441 Index: uClibc/libc/sysdeps/linux/powerpc/ioctl.c
442 ===================================================================
443 --- uClibc/libc/sysdeps/linux/powerpc/ioctl.c (revision 23764)
444 +++ uClibc/libc/sysdeps/linux/powerpc/ioctl.c (working copy)
445 @@ -31,7 +31,7 @@ libc_hidden_proto(tcgetattr)
446 using the new-style struct termios, and translate them to old-style. */
448 #define __NR___syscall_ioctl __NR_ioctl
449 -static inline
450 +static __always_inline
451 _syscall3(int, __syscall_ioctl, int, fd, unsigned long int, request, void *, arg)
454 Index: uClibc/libc/sysdeps/linux/common/sysctl.c
455 ===================================================================
456 --- uClibc/libc/sysdeps/linux/common/sysctl.c (revision 23764)
457 +++ uClibc/libc/sysdeps/linux/common/sysctl.c (working copy)
458 @@ -24,7 +24,7 @@ struct __sysctl_args {
459 unsigned long __unused[4];
462 -static inline
463 +static __always_inline
464 _syscall1(int, _sysctl, struct __sysctl_args *, args)
466 int sysctl(int *name, int nlen, void *oldval, size_t * oldlenp,
467 Index: uClibc/libc/sysdeps/linux/common/getcwd.c
468 ===================================================================
469 --- uClibc/libc/sysdeps/linux/common/getcwd.c (revision 23764)
470 +++ uClibc/libc/sysdeps/linux/common/getcwd.c (working copy)
471 @@ -30,7 +30,7 @@ libc_hidden_proto(stat)
472 #ifdef __NR_getcwd
474 # define __NR___syscall_getcwd __NR_getcwd
475 -static inline
476 +static __always_inline
477 _syscall2(int, __syscall_getcwd, char *, buf, unsigned long, size)
479 #else
480 @@ -144,7 +144,7 @@ oops:
481 return 0;
484 -static inline
485 +static __always_inline
486 int __syscall_getcwd(char * buf, unsigned long size)
488 int len;
489 Index: uClibc/libc/sysdeps/linux/common/getdents.c
490 ===================================================================
491 --- uClibc/libc/sysdeps/linux/common/getdents.c (revision 23764)
492 +++ uClibc/libc/sysdeps/linux/common/getdents.c (working copy)
493 @@ -39,7 +39,7 @@ struct kernel_dirent
494 ssize_t __getdents (int fd, char *buf, size_t nbytes) attribute_hidden;
496 #define __NR___syscall_getdents __NR_getdents
497 -static inline _syscall3(int, __syscall_getdents, int, fd, unsigned char *, kdirp, size_t, count);
498 +static __always_inline _syscall3(int, __syscall_getdents, int, fd, unsigned char *, kdirp, size_t, count);
500 #ifdef __ASSUME_GETDENTS32_D_TYPE
501 ssize_t __getdents (int fd, char *buf, size_t nbytes)
502 Index: uClibc/libc/sysdeps/linux/common/sigprocmask.c
503 ===================================================================
504 --- uClibc/libc/sysdeps/linux/common/sigprocmask.c (revision 23764)
505 +++ uClibc/libc/sysdeps/linux/common/sigprocmask.c (working copy)
506 @@ -19,7 +19,7 @@ libc_hidden_proto(sigprocmask)
507 #ifdef __NR_rt_sigprocmask
509 # define __NR___rt_sigprocmask __NR_rt_sigprocmask
510 -static inline
511 +static __always_inline
512 _syscall4(int, __rt_sigprocmask, int, how, const sigset_t *, set,
513 sigset_t *, oldset, size_t, size)
515 @@ -46,7 +46,7 @@ int sigprocmask(int how, const sigset_t
516 #else
518 # define __NR___syscall_sigprocmask __NR_sigprocmask
519 -static inline
520 +static __always_inline
521 _syscall3(int, __syscall_sigprocmask, int, how, const sigset_t *, set,
522 sigset_t *, oldset)
524 Index: uClibc/libc/sysdeps/linux/common/ppoll.c
525 ===================================================================
526 --- uClibc/libc/sysdeps/linux/common/ppoll.c (revision 23764)
527 +++ uClibc/libc/sysdeps/linux/common/ppoll.c (working copy)
528 @@ -25,7 +25,7 @@
529 libc_hidden_proto(ppoll)
531 # define __NR___libc_ppoll __NR_ppoll
532 -static inline
533 +static __always_inline
534 _syscall4(int, __libc_ppoll, struct pollfd *, fds,
535 nfds_t, nfds, const struct timespec *, timeout,
536 const __sigset_t *, sigmask)
537 Index: uClibc/libc/sysdeps/linux/common/ioctl.c
538 ===================================================================
539 --- uClibc/libc/sysdeps/linux/common/ioctl.c (revision 23764)
540 +++ uClibc/libc/sysdeps/linux/common/ioctl.c (working copy)
541 @@ -14,7 +14,7 @@
542 libc_hidden_proto(ioctl)
544 #define __NR___syscall_ioctl __NR_ioctl
545 -static inline
546 +static __always_inline
547 _syscall3(int, __syscall_ioctl, int, fd, int, request, void *, arg)
549 int ioctl(int fd, unsigned long int request, ...)
550 Index: uClibc/libc/sysdeps/linux/common/getrlimit.c
551 ===================================================================
552 --- uClibc/libc/sysdeps/linux/common/getrlimit.c (revision 23764)
553 +++ uClibc/libc/sysdeps/linux/common/getrlimit.c (working copy)
554 @@ -21,7 +21,7 @@ libc_hidden_proto(getrlimit)
556 /* just call ugetrlimit() */
557 # define __NR___syscall_ugetrlimit __NR_ugetrlimit
558 -static inline
559 +static __always_inline
560 _syscall2(int, __syscall_ugetrlimit, enum __rlimit_resource, resource,
561 struct rlimit *, rlim)
562 int getrlimit(__rlimit_resource_t resource, struct rlimit *rlimits)
563 @@ -39,7 +39,7 @@ _syscall2(int, getrlimit, __rlimit_resou
565 /* we have to handle old style getrlimit() */
566 # define __NR___syscall_getrlimit __NR_getrlimit
567 -static inline
568 +static __always_inline
569 _syscall2(int, __syscall_getrlimit, int, resource, struct rlimit *, rlim)
571 int getrlimit(__rlimit_resource_t resource, struct rlimit *rlimits)
572 Index: uClibc/libc/sysdeps/linux/common/setrlimit.c
573 ===================================================================
574 --- uClibc/libc/sysdeps/linux/common/setrlimit.c (revision 23764)
575 +++ uClibc/libc/sysdeps/linux/common/setrlimit.c (working copy)
576 @@ -21,7 +21,7 @@ libc_hidden_proto(setrlimit)
578 /* just call usetrlimit() */
579 # define __NR___syscall_usetrlimit __NR_usetrlimit
580 -static inline
581 +static __always_inline
582 _syscall2(int, __syscall_usetrlimit, enum __rlimit_resource, resource,
583 const struct rlimit *, rlim)
584 int setrlimit(__rlimit_resource_t resource, struct rlimit *rlimits)
585 @@ -39,7 +39,7 @@ _syscall2(int, setrlimit, __rlimit_resou
587 /* we have to handle old style setrlimit() */
588 # define __NR___syscall_setrlimit __NR_setrlimit
589 -static inline
590 +static __always_inline
591 _syscall2(int, __syscall_setrlimit, int, resource, const struct rlimit *, rlim)
593 int setrlimit(__rlimit_resource_t resource, const struct rlimit *rlimits)
594 Index: uClibc/libc/sysdeps/linux/common/__syscall_fcntl.c
595 ===================================================================
596 --- uClibc/libc/sysdeps/linux/common/__syscall_fcntl.c (revision 23764)
597 +++ uClibc/libc/sysdeps/linux/common/__syscall_fcntl.c (working copy)
598 @@ -21,7 +21,7 @@ libc_hidden_proto(__libc_fcntl64)
599 #endif
601 #define __NR___syscall_fcntl __NR_fcntl
602 -static inline
603 +static __always_inline
604 _syscall3(int, __syscall_fcntl, int, fd, int, cmd, long, arg)
606 int __libc_fcntl(int fd, int cmd, ...)
607 Index: uClibc/libc/sysdeps/linux/frv/crtreloc.c
608 ===================================================================
609 --- uClibc/libc/sysdeps/linux/frv/crtreloc.c (revision 23764)
610 +++ uClibc/libc/sysdeps/linux/frv/crtreloc.c (working copy)
611 @@ -34,7 +34,7 @@ Cambridge, MA 02139, USA. */
613 /* Compute the runtime address of pointer in the range [p,e), and then
614 map the pointer pointed by it. */
615 -inline static void ***
616 +static __always_inline void ***
617 reloc_range_indirect (void ***p, void ***e,
618 const struct elf32_fdpic_loadmap *map)
620 @@ -79,7 +79,7 @@ __self_reloc (const struct elf32_fdpic_l
621 need. */
623 /* Remap pointers in [p,e). */
624 -inline static void**
625 +static __always_inline void**
626 reloc_range (void **p, void **e,
627 const struct elf32_fdpic_loadmap *map)
629 Index: uClibc/libc/sysdeps/linux/frv/bits/elf-fdpic.h
630 ===================================================================
631 --- uClibc/libc/sysdeps/linux/frv/bits/elf-fdpic.h (revision 23764)
632 +++ uClibc/libc/sysdeps/linux/frv/bits/elf-fdpic.h (working copy)
633 @@ -64,7 +64,7 @@ struct elf32_fdpic_loadaddr {
635 /* Map a pointer's VMA to its corresponding address according to the
636 load map. */
637 -inline static void *
638 +static __always_inline void *
639 __reloc_pointer (void *p,
640 const struct elf32_fdpic_loadmap *map)
642 Index: uClibc/libc/sysdeps/linux/e1/bits/fenvinline.h
643 ===================================================================
644 --- uClibc/libc/sysdeps/linux/e1/bits/fenvinline.h (revision 23764)
645 +++ uClibc/libc/sysdeps/linux/e1/bits/fenvinline.h (working copy)
646 @@ -124,7 +124,7 @@ static __inline__ feclearexcept(int __ex
647 * excepts. You can test for an exception either after
648 * an FP instruction or within a SIGFPE handler
650 -inline int fetestexcept(int __excepts)
651 +__inline__ int fetestexcept(int __excepts)
653 unsigned int G2, G2en, G2dis;
654 unsigned int enabled_excepts, disabled_excepts;
655 Index: uClibc/libc/sysdeps/linux/bfin/crtreloc.c
656 ===================================================================
657 --- uClibc/libc/sysdeps/linux/bfin/crtreloc.c (revision 23764)
658 +++ uClibc/libc/sysdeps/linux/bfin/crtreloc.c (working copy)
659 @@ -41,7 +41,7 @@ union word {
661 /* Compute the runtime address of pointer in the range [p,e), and then
662 map the pointer pointed by it. */
663 -inline static void ***
664 +static __always_inline void ***
665 reloc_range_indirect (void ***p, void ***e,
666 const struct elf32_fdpic_loadmap *map)
668 @@ -102,7 +102,7 @@ __self_reloc (const struct elf32_fdpic_l
669 need. */
671 /* Remap pointers in [p,e). */
672 -inline static void**
673 +static __always_inline void**
674 reloc_range (void **p, void **e,
675 const struct elf32_fdpic_loadmap *map)
677 Index: uClibc/libc/sysdeps/linux/bfin/bits/elf-fdpic.h
678 ===================================================================
679 --- uClibc/libc/sysdeps/linux/bfin/bits/elf-fdpic.h (revision 23764)
680 +++ uClibc/libc/sysdeps/linux/bfin/bits/elf-fdpic.h (working copy)
681 @@ -64,7 +64,7 @@ struct elf32_fdpic_loadaddr {
683 /* Map a pointer's VMA to its corresponding address according to the
684 load map. */
685 -inline static void *
686 +static __always_inline void *
687 __reloc_pointer (void *p,
688 const struct elf32_fdpic_loadmap *map)
690 Index: uClibc/libpthread/linuxthreads/sysdeps/unix/sysv/linux/allocalim.h
691 ===================================================================
692 --- uClibc/libpthread/linuxthreads/sysdeps/unix/sysv/linux/allocalim.h (revision 23764)
693 +++ uClibc/libpthread/linuxthreads/sysdeps/unix/sysv/linux/allocalim.h (working copy)
694 @@ -19,7 +19,7 @@
696 #include <limits.h>
698 -extern inline int __libc_use_alloca (size_t size)
699 +__extern_always_inline int __libc_use_alloca (size_t size)
701 return (__builtin_expect (size <= PTHREAD_STACK_MIN / 4, 1)
702 || __libc_alloca_cutoff (size));