mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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:
parent
c80544dc0b
commit
e8c44319c6
8 changed files with 27 additions and 31 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue