uboot/arch/blackfin/include/asm
Måns Rullgård 44d0677a90 Replace "extern inline" with "static inline"
A number of headers define functions as "extern inline" which is
causing problems with gcc5.  The reason is that starting with
version 5.1, gcc defaults to the standard C99 semantics for the
inline keyword.

Under the traditional GNU inline semantics, an "extern inline"
function would never create an external definition, the same
as inline *without* extern in C99.  In C99, and "extern inline"
definition is simply an external definition with an inline hint.
In short, the meanings of inline with and without extern are
swapped between GNU and C99.

The upshot is that all these definitions in header files create
an external definition wherever those headers are included,
resulting in multiple definition errors at link time.

Changing all these functions to "static inline" fixes the problem
since this works as desired in all gcc versions.  Although the
semantics are slightly different (a static inline definition may
result in an actual function being emitted), it works as intended
in practice.

This patch also removes extern prototype declarations for the
changed functions where they existed.

Signed-off-by: Mans Rullgard <mans@mansr.com>
2015-11-09 18:19:40 -05:00
..
mach-bf506
mach-bf518
mach-bf527
mach-bf533
mach-bf537
mach-bf538
mach-bf548
mach-bf561
mach-bf609 bfin: add register define required by core B on dual core BF609 processor 2014-08-07 15:15:08 +08:00
mach-common
bfin_logo_230x230_gzip.h
bfin_logo_230x230_lzma.h
bfin_logo_rgb565_230x230_gzip.h
bfin_logo_rgb565_230x230_lzma.h
bitops.h blackfin: Use the generic bitops headers 2015-11-05 10:52:06 -05:00
blackfin.h
blackfin_cdef.h
blackfin_def.h
blackfin_local.h
byteorder.h
cache.h
clock.h blackfin: spi clock is in sysclk1 domain instead of sysclk0 2014-08-07 15:15:09 +08:00
config-pre.h blackfin, powerpc: remove redundant definitions of ARRAY_SIZE 2014-07-07 19:47:12 -04:00
config.h generic-board: select SYS_GENERIC_BOARD for some architectures 2015-03-28 09:03:08 -04:00
cplb.h
deferred.h
delay.h Replace "extern inline" with "static inline" 2015-11-09 18:19:40 -05:00
dma.h
entry.h
errno.h
global_data.h
gpio.h
io.h blackfin: include <linux/compiler.h> rather than define __iomem 2014-12-08 09:35:46 -05:00
linkage.h
mem_map.h
portmux.h
posix_types.h
processor.h
ptrace.h
sdh.h
sections.h
serial.h
serial1.h
serial4.h
shared_resources.h
signal.h
soft_switch.h
string.h
system.h
traps.h
twi.h
types.h
u-boot.h blackfin: convert blackfin board_f and board_r to use generic board init functions 2014-08-07 15:15:14 +08:00
unaligned.h