u-boot-2016/include
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
..
andestech
asm-generic include: Add generic bitops headers 2015-11-05 10:51:57 -05:00
bedbug
configs nios2: trim CONFIG_SYS_MEMTEST_END 2015-11-06 12:56:46 +08:00
cramfs
dm dm: adc: add simple ADC uclass implementation 2015-11-02 10:38:00 +09:00
dt-bindings am437x: Add am437x_gp_evm_defconfig using CONFIG_DM 2015-10-22 14:44:00 -04:00
faraday
fsl-mc
jffs2
linux compat: Remove is_power_of_2() definition 2015-11-05 16:46:59 -05:00
lzma
mtd cfi_flash: use specific width types for cword 2015-10-27 11:51:53 +01:00
net
pcmcia
power sandbox: add ADC unit tests 2015-11-02 10:38:00 +09:00
samsung exynos5-dt-types: add board detection for Odroid XU3/XU3L/XU4. 2015-11-02 10:38:00 +09:00
synopsys
test
u-boot
usb
zfs
.gitignore
_exports.h malloc_simple: Add Kconfig option for using only malloc_simple in the SPL 2015-10-20 18:40:27 +02:00
aboot.h
ACEX1K.h
adc.h dm: adc: add simple ADC uclass implementation 2015-11-02 10:38:00 +09:00
addr_map.h
aes.h
ahci.h
ali512x.h
altera.h
ambapp.h
android_image.h
ansi.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
api_public.h
armcoremodule.h
asm-offsets.h
ata.h
atmel_hlcdc.h
atmel_lcd.h
atmel_lcdc.h
atmel_mci.h
autoboot.h
axp152.h sunxi: power: Unify axp pmic function names 2015-10-20 18:40:27 +02:00
axp209.h sunxi: power: Add support for disabling axp209 regulators 2015-10-20 18:40:27 +02:00
axp221.h sunxi: power: Unify axp pmic function names 2015-10-20 18:40:27 +02:00
axp_pmic.h sunxi: power: Unify axp pmic function names 2015-10-20 18:40:27 +02:00
bcd.h
bios_emul.h
bitfield.h include/bitfield: Add new bitfield operations 2015-09-21 08:29:46 -07:00
bmp_layout.h
bootcount.h
bootm.h
bootretry.h
bootstage.h
bouncebuf.h
bus_vcxk.h
bzlib.h
cbfs.h
circbuf.h
cli.h
cli_hush.h
clk.h
cmd_spl.h
command.h
common.h armv8/fsl_lsch2: Add fsl_lsch2 SoC 2015-10-29 10:34:00 -07:00
common_timing_params.h
commproc.h
compiler.h
config_cmd_all.h cmd: Convert CONFIG_CMD_ELF to Kconfig 2015-10-21 07:46:25 -06:00
config_defaults.h
config_distro_bootcmd.h distro_bootcmd: Add support for booting from ubifs 2015-10-24 13:50:33 -04:00
config_distro_defaults.h cmd: Convert CONFIG_CMD_ELF to Kconfig 2015-10-21 07:46:25 -06:00
config_fallbacks.h
config_fsl_secboot.h
config_phylib_all_drivers.h
config_uncmd_spl.h
cortina.h
cpsw.h drivers: net: cpsw: convert driver to adopt device driver model 2015-10-22 14:18:35 -04:00
cpu.h dm: cpu: Add a new get_count method to cpu uclass 2015-07-14 18:03:16 -06:00
crc.h
cros_ec.h
cros_ec_message.h
dataflash.h
ddr_spd.h
debug_uart.h debug_uart: Add an option to announce the debug UART 2015-10-21 07:46:50 -06:00
dfu.h
dialog_pmic.h
display_options.h
displayport.h
div64.h
dm-demo.h
dm.h
dm9000.h
dp83848.h
ds1722.h
ds4510.h
dtt.h
dwc3-omap-uboot.h
dwc3-uboot.h
dwmmc.h
e500.h
ec_commands.h
edid.h
efi.h
efi_api.h
elf.h
env_attr.h
env_callback.h
env_default.h
env_flags.h
environment.h
errno.h
ethsw.h
exports.h malloc_simple: Add Kconfig option for using only malloc_simple in the SPL 2015-10-20 18:40:27 +02:00
ext4fs.h
ext_common.h
exynos_lcd.h
fat.h
fb_mmc.h
fdt.h
fdt_simplefb.h
fdt_support.h
fdtdec.h Merge git://git.denx.de/u-boot-socfpga 2015-11-05 07:46:28 -05:00
fis.h
flash.h
fm_eth.h net/fm: fix MDIO controller base on FMAN2 2015-10-29 10:34:00 -07:00
fpga.h fpga: Export fpga_get_desc for SPL 2015-01-21 10:25:02 +01:00
fs.h ubifs: Add generic fs support 2015-10-24 13:50:32 -04:00
fsl_csu.h armv7/ls1021a: move ns_access to common file 2015-10-29 10:33:58 -07:00
fsl_dcu_fb.h
fsl_ddr.h
fsl_ddr_dimm_params.h
fsl_ddr_sdram.h drivers/ddr/fsl_ddr: Make SR_IE configurable 2015-10-30 09:19:41 -07:00
fsl_ddrc_version.h
fsl_debug_server.h
fsl_devdis.h
fsl_diu_fb.h
fsl_dspi.h
fsl_dtsec.h net: Move some header files to include/ 2015-10-29 10:34:00 -07:00
fsl_esdhc.h armv8/ls1043ardb: esdhc: Add esdhc support for ls1043ardb 2015-10-29 10:34:01 -07:00
fsl_fman.h net: Move some header files to include/ 2015-10-29 10:34:00 -07:00
fsl_ifc.h
fsl_immap.h
fsl_mdio.h
fsl_memac.h
fsl_pmic.h
fsl_sec.h crypto/fsl: SEC driver cleanup for 64 bit and endianness 2015-10-29 10:33:57 -07:00
fsl_sec_mon.h
fsl_secboot_err.h
fsl_sfp.h
fsl_tgec.h net: Move some header files to include/ 2015-10-29 10:34:00 -07:00
fsl_usb.h
fsl_validate.h Pointers in ESBC header made 32 bit 2015-10-29 10:33:57 -07:00
fsl_wdog.h imx_watchdog: Add a header file for watchdog registers 2015-10-12 12:56:26 -04:00
fuse.h
g_dnl.h
gdsys_fpga.h
gt64120.h
hash.h
hw_sha.h
hwconfig.h
i2c.h
i2c_eeprom.h
i2s.h
i8042.h
ide.h
image.h Add support for LZ4 decompression algorithm 2015-10-11 17:12:10 -04:00
imx_thermal.h
initcall.h
input.h
inttypes.h
iomux.h
ioports.h
iotrace.h
ipu_pixfmt.h
key_matrix.h
keyboard.h
kgdb.h
lattice.h
lcd.h
lcd_console.h
lcdvideo.h
ld9040.h
led-display.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
led.h
libata.h
libfdt.h
libfdt_env.h
libtizen.h
linker_lists.h Fix incorrect comments in linker_lists.h 2015-07-28 10:36:23 -06:00
linux_logo.h
lmb.h
logbuff.h
lxt971a.h
lynxkdi.h
malloc.h malloc_simple: Add Kconfig option for using only malloc_simple in the SPL 2015-10-20 18:40:27 +02:00
mapmem.h
mb862xx.h
mc9sdz60.h
mc13783.h
mc13892.h
mc34704.h
MCD_dma.h
MCD_progCheck.h
MCD_tasksInit.h
memalign.h
menu.h
micrel.h
mii_phy.h
miiphy.h net: mdio: Add mdio_free() and mdio_unregister() API 2015-10-29 14:05:50 -05:00
mipi_display.h
misc.h dm: implement a Miscellaneous uclass 2015-10-23 07:37:03 +08:00
mk48t59.h
mmc.h
mpc5xx.h
mpc5xxx.h
mpc5xxx_sdma.h
mpc8xx.h
mpc8xx_irq.h
mpc83xx.h
mpc85xx.h
mpc86xx.h
mpc106.h
mpc823_lcd.h
mpc8260.h Replace "extern inline" with "static inline" 2015-11-09 18:19:40 -05:00
mpc8260_irq.h
msc01.h
mtd_node.h
mv88e6352.h
mvebu_mmc.h
mvmfp.h
nand.h
net.h net: Increase the size of the net_boot_file_name buffer 2015-10-29 14:05:47 -05:00
netdev.h
ns16550.h
ns87308.h
onenand_uboot.h
os.h
palmas.h
part.h
part_efi.h
pc_keyb.h
pca953x.h
pca9564.h
pca9698.h
pci.h dm: Rename dev_get_parentdata() to dev_get_parent_priv() 2015-10-23 09:42:28 -06:00
pci_gt64120.h
pci_ids.h x86: pci: Add PCI IDs for Wildcat Point 2015-10-21 07:46:27 -06:00
pci_msc01.h
pci_rom.h
pcmcia.h
phy.h
phys2bus.h
physmem.h
post.h
ppc_asm.tmpl
ppc_defs.h
ps2mult.h
pwm.h
pxa_lcd.h
radeon.h
ram.h
rc4.h
regmap.h
reiserfs.h
remoteproc.h drivers: Introduce a simplified remoteproc framework 2015-10-22 14:18:38 -04:00
reset.h
rtc.h
rtc_def.h
s6e63d6.h
s_record.h
SA-1100.h
samsung-usb-phy-uboot.h
sandbox-adc.h sandbox: adc: Add missing header file 2015-11-05 12:58:04 +09:00
sandboxblockdev.h
sandboxfs.h
sata.h
scf0403_lcd.h
scsi.h
sdhci.h
search.h
sed156x.h
sed13806.h
serial.h serial: remove altera serial initializations 2015-10-23 07:37:03 +08:00
sh_pfc.h
sh_tmu.h
sja1000.h
slre.h
sm501.h
smsc_lpc47m.h
sound.h
sparse_defs.h
sparse_format.h
spartan2.h
spartan3.h
spd.h
spd_sdram.h
spi.h dm: Rename dev_get_parentdata() to dev_get_parent_priv() 2015-10-23 09:42:28 -06:00
spi_flash.h sf: Add SPI NOR protection mechanism 2015-11-05 16:47:06 -05:00
spl.h
splash.h
status_led.h allow LED initialization without STATUS_LED_BOOT 2015-10-24 13:50:02 -04:00
stdio_dev.h video: Drop DEV_EXT_VIDEO flag 2015-11-05 08:24:42 +01:00
stdlib.h
stratixII.h
sx151x.h
sym53c8xx.h
syscon.h
systemace.h
tca642x.h
tegra-kbc.h
thermal.h
thor.h
ti-usb-phy-uboot.h
timer.h dm: implement a Timer uclass 2015-10-23 07:37:03 +08:00
timestamp.h
tmu.h
tpm.h dm: tpm: Remove every compilation switch for TPM driver model 2015-10-23 09:42:28 -06:00
tps6586x.h
trace.h
tsec.h
tsi108.h
tsi148.h
twl4030.h
twl6030.h
tws.h
ubi_uboot.h
ubifs_uboot.h ubifs: Add functions for generic fs use 2015-10-24 13:50:32 -04:00
universe.h
usb.h dm: Rename dev_get_parentdata() to dev_get_parent_priv() 2015-10-23 09:42:28 -06:00
usb_cdc_acm.h
usb_defs.h
usb_ether.h
usb_mass_storage.h
usbdescriptors.h
usbdevice.h
usbroothubdes.h
uuid.h
vbe.h
version.h
video.h
video_bridge.h
video_easylogo.h
video_fb.h
video_font.h
video_font_4x6.h
video_font_data.h
video_logo.h
virtex2.h
vsc7385.h
vsc9953.h
vsprintf.h
vxworks.h cmd: bootvx: Pass E820 information to an x86 VxWorks kernel 2015-10-21 07:46:26 -06:00
w83c553f.h
watchdog.h
xilinx.h
xyzModem.h
zfs_common.h
zynqpl.h