diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2011-01-17 20:26:30 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-01-17 20:26:30 +0000 |
commit | 4a6648f44eefbfbea38a1de56f8a8e44a8892941 (patch) | |
tree | 7c08329446b2ae1532227b9186bef7746d31b096 /tests/cris/check_addcm.c | |
parent | 29718712eb2e53c09d28f08e39f6514d690f6fd3 (diff) | |
download | qemu-4a6648f44eefbfbea38a1de56f8a8e44a8892941.zip qemu-4a6648f44eefbfbea38a1de56f8a8e44a8892941.tar.gz qemu-4a6648f44eefbfbea38a1de56f8a8e44a8892941.tar.bz2 |
Replace 'extern inline' with 'static inline'
Acked-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'tests/cris/check_addcm.c')
-rw-r--r-- | tests/cris/check_addcm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/cris/check_addcm.c b/tests/cris/check_addcm.c index 9ffea29..7928bc9 100644 --- a/tests/cris/check_addcm.c +++ b/tests/cris/check_addcm.c @@ -5,13 +5,15 @@ #include "crisutils.h" /* need to avoid acr as source here. */ -extern inline int cris_addc_m(int a, const int *b) { +static inline int cris_addc_m(int a, const int *b) +{ asm volatile ("addc [%1], %0\n" : "+r" (a) : "r" (b)); return a; } /* 'b' is a crisv32 constrain to avoid postinc with $acr. */ -extern inline int cris_addc_pi_m(int a, int **b) { +static inline int cris_addc_pi_m(int a, int **b) +{ asm volatile ("addc [%1+], %0\n" : "+r" (a), "+b" (*b)); return a; } |