mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
74 lines
2.5 KiB
Diff
74 lines
2.5 KiB
Diff
|
From 284fae8f7785a969c8e8b0ba986ab17017f0a0b5 Mon Sep 17 00:00:00 2001
|
||
|
From: Jeroen Hofstee <jeroen@myspectrum.nl>
|
||
|
Date: Sun, 22 Jun 2014 23:10:39 +0200
|
||
|
Subject: [PATCH 07/11] 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 385faed..fc87233 100644
|
||
|
--- 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(void * vaddr)
|
||
|
#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--)
|
||
|
--
|
||
|
2.10.2
|
||
|
|