OpenWrt – Blame information for rev 4
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
4 | office | 1 | From: Jeroen Hofstee <jeroen@myspectrum.nl> |
2 | Date: Sun, 22 Jun 2014 21:10:39 +0000 (+0200) |
||
3 | Subject: ARM:asm:io.h use static inline |
||
4 | X-Git-Tag: v2014.10-rc2~47 |
||
5 | X-Git-Url: http://git.denx.de/?p=u-boot.git;a=commitdiff_plain;h=8863aa5c984460ce1112d8db895cbf8b13a6ac9d |
||
6 | |||
7 | ARM:asm:io.h use static inline |
||
8 | |||
9 | When compiling u-boot with W=1 the extern inline void for |
||
10 | read* is likely causing the most noise. gcc / clang will |
||
11 | warn there is never a actual declaration for these functions. |
||
12 | Instead of declaring these extern make them static inline so |
||
13 | it is actually declared. |
||
14 | |||
15 | cc: Albert ARIBAUD <albert.u.boot@aribaud.net> |
||
16 | Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl> |
||
17 | --- |
||
18 | |||
19 | --- a/arch/arm/include/asm/io.h |
||
20 | +++ b/arch/arm/include/asm/io.h |
||
21 | @@ -75,7 +75,7 @@ static inline phys_addr_t virt_to_phys(v |
||
22 | #define __arch_putw(v,a) (*(volatile unsigned short *)(a) = (v)) |
||
23 | #define __arch_putl(v,a) (*(volatile unsigned int *)(a) = (v)) |
||
24 | |||
25 | -extern inline void __raw_writesb(unsigned long addr, const void *data, |
||
26 | +static inline void __raw_writesb(unsigned long addr, const void *data, |
||
27 | int bytelen) |
||
28 | { |
||
29 | uint8_t *buf = (uint8_t *)data; |
||
30 | @@ -83,7 +83,7 @@ extern inline void __raw_writesb(unsigne |
||
31 | __arch_putb(*buf++, addr); |
||
32 | } |
||
33 | |||
34 | -extern inline void __raw_writesw(unsigned long addr, const void *data, |
||
35 | +static inline void __raw_writesw(unsigned long addr, const void *data, |
||
36 | int wordlen) |
||
37 | { |
||
38 | uint16_t *buf = (uint16_t *)data; |
||
39 | @@ -91,7 +91,7 @@ extern inline void __raw_writesw(unsigne |
||
40 | __arch_putw(*buf++, addr); |
||
41 | } |
||
42 | |||
43 | -extern inline void __raw_writesl(unsigned long addr, const void *data, |
||
44 | +static inline void __raw_writesl(unsigned long addr, const void *data, |
||
45 | int longlen) |
||
46 | { |
||
47 | uint32_t *buf = (uint32_t *)data; |
||
48 | @@ -99,21 +99,21 @@ extern inline void __raw_writesl(unsigne |
||
49 | __arch_putl(*buf++, addr); |
||
50 | } |
||
51 | |||
52 | -extern inline void __raw_readsb(unsigned long addr, void *data, int bytelen) |
||
53 | +static inline void __raw_readsb(unsigned long addr, void *data, int bytelen) |
||
54 | { |
||
55 | uint8_t *buf = (uint8_t *)data; |
||
56 | while(bytelen--) |
||
57 | *buf++ = __arch_getb(addr); |
||
58 | } |
||
59 | |||
60 | -extern inline void __raw_readsw(unsigned long addr, void *data, int wordlen) |
||
61 | +static inline void __raw_readsw(unsigned long addr, void *data, int wordlen) |
||
62 | { |
||
63 | uint16_t *buf = (uint16_t *)data; |
||
64 | while(wordlen--) |
||
65 | *buf++ = __arch_getw(addr); |
||
66 | } |
||
67 | |||
68 | -extern inline void __raw_readsl(unsigned long addr, void *data, int longlen) |
||
69 | +static inline void __raw_readsl(unsigned long addr, void *data, int longlen) |
||
70 | { |
||
71 | uint32_t *buf = (uint32_t *)data; |
||
72 | while(longlen--) |