From: Mike Frysinger Date: Mon, 21 May 2007 10:09:22 +0000 (+0800) Subject: Blackfin arch: make sure we declare the revid functions as pure (since they are) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=eb8d5f6c0322e641ec32ed632dd3b02586205673;p=openwrt%2Fstaging%2Fblogic.git Blackfin arch: make sure we declare the revid functions as pure (since they are) Signed-off-by: Mike Frysinger Signed-off-by: Bryan Wu Signed-off-by: Linus Torvalds --- diff --git a/include/asm-blackfin/processor.h b/include/asm-blackfin/processor.h index 0336ff132c16..aba2b30a8ed8 100644 --- a/include/asm-blackfin/processor.h +++ b/include/asm-blackfin/processor.h @@ -104,13 +104,13 @@ unsigned long get_wchan(struct task_struct *p); #define cpu_relax() barrier() /* Get the Silicon Revision of the chip */ -static inline uint32_t bfin_revid(void) +static inline __attribute_pure__ uint32_t bfin_revid(void) { /* stored in the upper 4 bits */ return bfin_read_CHIPID() >> 28; } -static inline uint32_t bfin_compiled_revid(void) +static inline __attribute_pure__ uint32_t bfin_compiled_revid(void) { #if defined(CONFIG_BF_REV_0_0) return 0;