X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-arm%2Fprocessor.h;h=1bbf16182d62ab4bfabd3c13e065d8280c38ccd9;hb=cb46984504048db946cd551c261df4e70d59a8ea;hp=b442e8e2a8094cc7952ef03ed398b773d45c820b;hpb=c99767974ebd2a719d849fdeaaa1674456f5283f;p=linux-2.6-omap-h63xx.git diff --git a/include/asm-arm/processor.h b/include/asm-arm/processor.h index b442e8e2a80..1bbf16182d6 100644 --- a/include/asm-arm/processor.h +++ b/include/asm-arm/processor.h @@ -103,14 +103,14 @@ extern int kernel_thread(int (*fn)(void *), void *arg, unsigned long flags); #if __LINUX_ARM_ARCH__ >= 5 #define ARCH_HAS_PREFETCH -#define prefetch(ptr) \ - ({ \ - __asm__ __volatile__( \ - "pld\t%0" \ - : \ - : "o" (*(char *)(ptr)) \ - : "cc"); \ - }) +static inline void prefetch(const void *ptr) +{ + __asm__ __volatile__( + "pld\t%0" + : + : "o" (*(char *)ptr) + : "cc"); +} #define ARCH_HAS_PREFETCHW #define prefetchw(ptr) prefetch(ptr)