u-boot/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 Blackfin: update anomaly lists to latest public info 2011-07-12 02:17:46 -04:00
mach-bf518 Blackfin: update anomaly lists to latest public info 2011-07-12 02:17:46 -04:00
mach-bf527 Blackfin: update anomaly lists to latest public info 2011-07-12 02:17:46 -04:00
mach-bf533 blackfin: bf60x: add serial support 2013-03-04 13:42:06 +08:00
mach-bf537 Blackfin: update anomaly lists to latest public info 2011-07-12 02:17:46 -04:00
mach-bf538 Blackfin: update anomaly lists to latest public info 2011-07-12 02:17:46 -04:00
mach-bf548 Blackfin: update anomaly lists to latest public info 2011-07-12 02:17:46 -04:00
mach-bf561 blackfin: run core1 from L1 code sram start address in uboot init code on core 0 2013-05-13 15:47:24 +08:00
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 blackfin: Initialize the EMAC VLAN with proper default value 2014-02-07 11:18:06 +08:00
bfin_logo_230x230_gzip.h Blackfin: easylogo: add lzma logos 2012-02-03 20:44:54 -05:00
bfin_logo_230x230_lzma.h Blackfin: easylogo: add lzma logos 2012-02-03 20:44:54 -05:00
bfin_logo_rgb565_230x230_gzip.h Blackfin: easylogo: add lzma logos 2012-02-03 20:44:54 -05:00
bfin_logo_rgb565_230x230_lzma.h Blackfin: easylogo: add lzma logos 2012-02-03 20:44:54 -05:00
bitops.h blackfin: Use the generic bitops headers 2015-11-05 10:52:06 -05:00
blackfin.h Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
blackfin_cdef.h blackfin: bf60x: new processor header files 2013-03-04 13:42:06 +08:00
blackfin_def.h blackfin: bf60x: new processor header files 2013-03-04 13:42:06 +08:00
blackfin_local.h blackfin: add spi and i2c specific get clock functions 2014-02-20 06:46:56 +01:00
byteorder.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cache.h linkage.h: move from blackfin to common includes 2012-02-12 15:03:26 -05:00
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 blackfin: bf60x: support big cplb page 2013-03-04 13:42:07 +08:00
deferred.h Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
delay.h Replace "extern inline" with "static inline" 2015-11-09 18:19:40 -05:00
dma.h blackfin: Change the member's type in dma structures. 2013-05-13 15:47:24 +08:00
entry.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
errno.h Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
global_data.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
gpio.h blackfin: make name_to_gpio be a weak symbol 2014-04-18 10:42:29 -04:00
io.h blackfin: include <linux/compiler.h> rather than define __iomem 2014-12-08 09:35:46 -05:00
linkage.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
mem_map.h Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
portmux.h bfin: Move gpio support for bf54x and bf60x into the generic driver folder. 2013-05-13 16:30:27 +08:00
posix_types.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
processor.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
ptrace.h Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
sdh.h Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
sections.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
serial.h blackfin: Move blackfin serial driver out of blackfin arch folder. 2013-05-13 16:30:26 +08:00
serial1.h blackfin: Move blackfin serial driver out of blackfin arch folder. 2013-05-13 16:30:26 +08:00
serial4.h blackfin: Move blackfin serial driver out of blackfin arch folder. 2013-05-13 16:30:26 +08:00
shared_resources.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
signal.h Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
soft_switch.h blackfin: bf609: add softswitch config command 2013-05-13 16:26:12 +08:00
string.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
system.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
traps.h Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00
twi.h blackfin: rename bfin-twi_i2c driver to adi_i2c 2014-02-20 06:46:56 +01:00
types.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
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 Move architecture-specific includes to arch/$ARCH/include/asm 2010-04-13 09:13:12 +02:00