diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-02-25 10:27:43 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-02-25 10:27:59 -0300 |
commit | e67fd31db62f85f33f5695716b260407f31c11f0 (patch) | |
tree | 792098e91af85c31f4be79748eb981ee1e28153d /libre/uboot-chiliboard-linux-libre/0002-ARM-asm-io.h-use-static-inline.patch | |
parent | 2c83ecbd26706dbdaaa7ea9405cf9f3f7703f5ee (diff) | |
download | abslibre-e67fd31db62f85f33f5695716b260407f31c11f0.tar.gz abslibre-e67fd31db62f85f33f5695716b260407f31c11f0.tar.bz2 abslibre-e67fd31db62f85f33f5695716b260407f31c11f0.zip |
uboot4extlinux-chiliboard: add new package to [libre]
Diffstat (limited to 'libre/uboot-chiliboard-linux-libre/0002-ARM-asm-io.h-use-static-inline.patch')
-rw-r--r-- | libre/uboot-chiliboard-linux-libre/0002-ARM-asm-io.h-use-static-inline.patch | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/libre/uboot-chiliboard-linux-libre/0002-ARM-asm-io.h-use-static-inline.patch b/libre/uboot-chiliboard-linux-libre/0002-ARM-asm-io.h-use-static-inline.patch deleted file mode 100644 index 6ec3d82fc..000000000 --- a/libre/uboot-chiliboard-linux-libre/0002-ARM-asm-io.h-use-static-inline.patch +++ /dev/null @@ -1,76 +0,0 @@ -From a29b67a36a2b59acfc9cb7adc6e3bc06c490d4ee Mon Sep 17 00:00:00 2001 -From: Jeroen Hofstee <jeroen@myspectrum.nl> -Date: Sun, 22 Jun 2014 23:10:39 +0200 -Subject: [PATCH 2/6] 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> ---- - arch/arm/include/asm/io.h | 12 ++++++------ - 1 file changed, 6 insertions(+), 6 deletions(-) - -diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h -index 214f3ea..dc6138a 100644 ---- a/arch/arm/include/asm/io.h -+++ b/arch/arm/include/asm/io.h -@@ -77,7 +77,7 @@ static inline phys_addr_t virt_to_phys(void * vaddr) - #define __arch_putl(v,a) (*(volatile unsigned int *)(a) = (v)) - #define __arch_putq(v,a) (*(volatile unsigned long long *)(a) = (v)) - --extern inline void __raw_writesb(unsigned long addr, const void *data, -+static inline void __raw_writesb(unsigned long addr, const void *data, - int bytelen) - { - uint8_t *buf = (uint8_t *)data; -@@ -85,7 +85,7 @@ extern inline void __raw_writesb(unsigned long addr, const void *data, - __arch_putb(*buf++, addr); - } - --extern inline void __raw_writesw(unsigned long addr, const void *data, -+static inline void __raw_writesw(unsigned long addr, const void *data, - int wordlen) - { - uint16_t *buf = (uint16_t *)data; -@@ -93,7 +93,7 @@ extern inline void __raw_writesw(unsigned long addr, const void *data, - __arch_putw(*buf++, addr); - } - --extern inline void __raw_writesl(unsigned long addr, const void *data, -+static inline void __raw_writesl(unsigned long addr, const void *data, - int longlen) - { - uint32_t *buf = (uint32_t *)data; -@@ -101,21 +101,21 @@ extern inline void __raw_writesl(unsigned long addr, const void *data, - __arch_putl(*buf++, addr); - } - --extern inline void __raw_readsb(unsigned long addr, void *data, int bytelen) -+static inline void __raw_readsb(unsigned long addr, void *data, int bytelen) - { - uint8_t *buf = (uint8_t *)data; - while(bytelen--) - *buf++ = __arch_getb(addr); - } - --extern inline void __raw_readsw(unsigned long addr, void *data, int wordlen) -+static inline void __raw_readsw(unsigned long addr, void *data, int wordlen) - { - uint16_t *buf = (uint16_t *)data; - while(wordlen--) - *buf++ = __arch_getw(addr); - } - --extern inline void __raw_readsl(unsigned long addr, void *data, int longlen) -+static inline void __raw_readsl(unsigned long addr, void *data, int longlen) - { - uint32_t *buf = (uint32_t *)data; - while(longlen--) --- -2.5.0 - |