Replace __attribute_pure__ with __pure

To be consistent with the use of attributes in the rest of the kernel
replace all use of __attribute_pure__ with __pure and delete the definition
of __attribute_pure__.

Signed-off-by: Ralf Baechle <[email protected]>
Cc: Russell King <[email protected]>
Acked-by: Mauro Carvalho Chehab <[email protected]>
Cc: Bryan Wu <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Ralf Baechle 2007-10-18 03:07:07 -07:00 • committed by Linus Torvalds
commit e8c44319c6
8 changed files with 27 additions and 31 deletions

View file

@ -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 __attribute_pure__ uint32_t bfin_revid(void)
static inline uint32_t __pure bfin_revid(void)
{
/* stored in the upper 4 bits */
return bfin_read_CHIPID() >> 28;
}
static inline __attribute_pure__ uint32_t bfin_compiled_revid(void)
static inline uint32_t __pure bfin_compiled_revid(void)
{
#if defined(CONFIG_BF_REV_0_0)
return 0;