uboot/arch/powerpc/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
..
arch-mpc83xx
arch-mpc85xx Correct License and Copyright information on few files 2015-08-12 20:47:46 -04:00
arch-ppc4xx powerpc: ppc4xx: Add a gpio.h header file 2015-02-12 10:35:31 -07:00
4xx_pci.h
4xx_pcie.h
5xx_immap.h
8xx_immap.h
atomic.h Replace "extern inline" with "static inline" 2015-11-09 18:19:40 -05:00
bitops.h Replace "extern inline" with "static inline" 2015-11-09 18:19:40 -05:00
byteorder.h Replace "extern inline" with "static inline" 2015-11-09 18:19:40 -05:00
cache.h mpc85xx/t104x: Enable L2 and CPC cache when resume 2014-07-22 16:25:55 -07:00
config.h crypto/fsl: Add fixup for crypto node 2015-01-23 22:29:14 -06:00
config_mpc85xx.h powerpc/mpc85xx: Correct CONFIG_USB_MAX_CONTROLLER_COUNT for p1025 2015-07-28 14:41:16 -07:00
config_mpc86xx.h
cpm_85xx.h
cpm_8260.h
e300.h
errno.h
fsl_dma.h
fsl_errata.h powerpc/t2080: enable erratum_a007186 for t2080 rev1.1 2015-04-20 10:15:29 -07:00
fsl_fdt.h t1040d4rdb: assign muxed pins to qe-tdm when set hwconfig qe-tdm 2015-11-02 08:48:20 -08:00
fsl_i2c.h
fsl_law.h powerpc: Remove __ilog2_u64 and ffs4 from bitops 2015-11-05 16:47:05 -05:00
fsl_lbc.h
fsl_liodn.h net/fman: Support both new and legacy FMan Compatibles 2015-09-01 20:57:15 -05:00
fsl_mpc83xx_serdes.h
fsl_pci.h fsl/pci: Set CFG_READY for PCIe v3.0 and later 2015-05-04 09:24:23 -07:00
fsl_portals.h
fsl_secure_boot.h SECURE_BOOT: Disable IE Key feature for RAMBOOT 2015-09-01 21:38:02 -05:00
fsl_serdes.h arch/powerpc: Add SGMII support for the L2 Switch ports 2015-01-16 09:32:26 -08:00
fsl_srio.h powerpc: Remove __ilog2_u64 and ffs4 from bitops 2015-11-05 16:47:05 -05:00
global_data.h Revert "powerpc: ppc4xx: remove lwmon5 support" 2015-10-11 17:12:09 -04:00
gpio.h
immap_83xx.h
immap_85xx.h net: Move some header files to include/ 2015-10-29 10:34:00 -07:00
immap_86xx.h
immap_512x.h powerpc: mpc512x: fix boot breakage 2014-10-27 14:35:53 +01:00
immap_8260.h
interrupt.h
io.h Replace "extern inline" with "static inline" 2015-11-09 18:19:40 -05:00
iopin_8xx.h Replace "extern inline" with "static inline" 2015-11-09 18:19:40 -05:00
iopin_8260.h Replace "extern inline" with "static inline" 2015-11-09 18:19:40 -05:00
linkage.h powerpc: Add linkage.h file 2015-02-12 10:35:32 -07:00
m8260_pci.h
mc146818rtc.h
mmu.h PPC: 85xx: Generalize DDR TLB mapping function 2014-04-22 17:58:45 -07:00
mp.h
mpc8xxx_spi.h
mpc85xx_gpio.h powerpc/mpc85xx: Fix compiling error for common/cmd_gpio.c 2015-05-04 09:26:09 -07:00
mpc512x.h
mpc8349_pci.h
pci_io.h
posix_types.h
ppc4xx-ebc.h powerpc: ppc4xx: remove board support for bluestone 2014-10-10 09:44:43 -04:00
ppc4xx-emac.h
ppc4xx-gpio.h
ppc4xx-i2c.h ppc4xx: Handle i2c stuck on combined xfer 2014-11-10 06:44:30 +01:00
ppc4xx-isram.h powerpc: ppc4xx: remove board support for bluestone 2014-10-10 09:44:43 -04:00
ppc4xx-mal.h
ppc4xx-sdram.h powerpc: ppc4xx: remove board support for bluestone 2014-10-10 09:44:43 -04:00
ppc4xx-uic.h powerpc: ppc4xx: remove board support for bluestone 2014-10-10 09:44:43 -04:00
ppc4xx.h powerpc: ppc4xx: remove board support for bluestone 2014-10-10 09:44:43 -04:00
ppc4xx_config.h
ppc405.h
ppc405ep.h
ppc405ex.h
ppc405ez.h
ppc405gp.h
ppc440.h
ppc440ep_gr.h
ppc440epx_grx.h
ppc440gp.h
ppc440gx.h
ppc440sp.h
ppc440spe.h
ppc460ex_gt.h ppc: amcc: Omit unneeded ns16550 CONFIG if using driver model 2015-02-12 10:35:31 -07:00
ppc460sx.h
processor.h powerpc/mpc85xx: Add DSP side awareness for Freescale Heterogeneous SoCs 2015-03-04 10:15:29 -08:00
ptrace.h
sections.h
sigcontext.h
signal.h
spl.h
status_led.h powerpc: mpc8260: consolidate CONFIG_MPC8260 and CONFIG_8260 2014-03-07 10:59:06 -05:00
string.h
types.h fsl_sec: Add hardware accelerated SHA256 and SHA1 2014-10-16 14:17:07 -07:00
u-boot.h ppc: Zap Hymod board 2014-10-27 14:35:55 +01:00
unaligned.h
xilinx_irq.h