diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2015-11-20 23:38:39 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2015-11-20 23:38:39 +0000 |
commit | 3e06890c31c5f4a026af2dedd73d5d4f3918ac10 (patch) | |
tree | 277ca46945dde3a7d1598b224816b6e00a3c63f2 /package/boot/uboot-omap/patches/410-use-static-inline.patch | |
parent | afaddd5a51b4c7308c9425824225f207941d251b (diff) | |
download | master-187ad058-3e06890c31c5f4a026af2dedd73d5d4f3918ac10.tar.gz master-187ad058-3e06890c31c5f4a026af2dedd73d5d4f3918ac10.tar.bz2 master-187ad058-3e06890c31c5f4a026af2dedd73d5d4f3918ac10.zip |
uboot-omap: fix build with gcc-5
This fixes some problems with gcc-5.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47539 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/boot/uboot-omap/patches/410-use-static-inline.patch')
-rw-r--r-- | package/boot/uboot-omap/patches/410-use-static-inline.patch | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/package/boot/uboot-omap/patches/410-use-static-inline.patch b/package/boot/uboot-omap/patches/410-use-static-inline.patch new file mode 100644 index 0000000000..e030cac3e6 --- /dev/null +++ b/package/boot/uboot-omap/patches/410-use-static-inline.patch @@ -0,0 +1,69 @@ +From: Jeroen Hofstee <jeroen@myspectrum.nl> +Date: Sun, 22 Jun 2014 21:10:39 +0000 (+0200) +Subject: ARM:asm:io.h use static inline +X-Git-Tag: v2014.10-rc2~47 +X-Git-Url: http://git.denx.de/?p=u-boot.git;a=commitdiff_plain;h=8863aa5c984460ce1112d8db895cbf8b13a6ac9d + +ARM:asm:io.h use static inline + +When compiling u-boot with W=1 the extern inline void for +read* is likely causing the most noise. gcc / clang will +warn there is never a actual declaration for these functions. +Instead of declaring these extern make them static inline so +it is actually declared. + +cc: Albert ARIBAUD <albert.u.boot@aribaud.net> +Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl> +--- + +--- a/arch/arm/include/asm/io.h ++++ b/arch/arm/include/asm/io.h +@@ -75,42 +75,42 @@ static inline phys_addr_t virt_to_phys(v + #define __arch_putw(v,a) (*(volatile unsigned short *)(a) = (v)) + #define __arch_putl(v,a) (*(volatile unsigned int *)(a) = (v)) + +-extern inline void __raw_writesb(unsigned int addr, const void *data, int bytelen) ++static inline void __raw_writesb(unsigned int addr, const void *data, int bytelen) + { + uint8_t *buf = (uint8_t *)data; + while(bytelen--) + __arch_putb(*buf++, addr); + } + +-extern inline void __raw_writesw(unsigned int addr, const void *data, int wordlen) ++static inline void __raw_writesw(unsigned int addr, const void *data, int wordlen) + { + uint16_t *buf = (uint16_t *)data; + while(wordlen--) + __arch_putw(*buf++, addr); + } + +-extern inline void __raw_writesl(unsigned int addr, const void *data, int longlen) ++static inline void __raw_writesl(unsigned int addr, const void *data, int longlen) + { + uint32_t *buf = (uint32_t *)data; + while(longlen--) + __arch_putl(*buf++, addr); + } + +-extern inline void __raw_readsb(unsigned int addr, void *data, int bytelen) ++static inline void __raw_readsb(unsigned int addr, void *data, int bytelen) + { + uint8_t *buf = (uint8_t *)data; + while(bytelen--) + *buf++ = __arch_getb(addr); + } + +-extern inline void __raw_readsw(unsigned int addr, void *data, int wordlen) ++static inline void __raw_readsw(unsigned int addr, void *data, int wordlen) + { + uint16_t *buf = (uint16_t *)data; + while(wordlen--) + *buf++ = __arch_getw(addr); + } + +-extern inline void __raw_readsl(unsigned int addr, void *data, int longlen) ++static inline void __raw_readsl(unsigned int addr, void *data, int longlen) + { + uint32_t *buf = (uint32_t *)data; + while(longlen--) |