lkml.org 
[lkml]   [2015]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC] fixmap: change temp variable name
Date
Change temp variable name addr to ____addr,
so that not conflict with the caller's variable name,
it will build error if call like this:
__set_fixmap_offset(idx, addr, flags)

Signed-off-by: yalin wang <yalin.wang2010@gmail.com>
---
include/asm-generic/fixmap.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/asm-generic/fixmap.h b/include/asm-generic/fixmap.h
index 1cbb833..91ecaed 100644
--- a/include/asm-generic/fixmap.h
+++ b/include/asm-generic/fixmap.h
@@ -72,10 +72,10 @@ static inline unsigned long virt_to_fix(const unsigned long vaddr)
/* Return a pointer with offset calculated */
#define __set_fixmap_offset(idx, phys, flags) \
({ \
- unsigned long addr; \
+ unsigned long ____addr; \
__set_fixmap(idx, phys, flags); \
- addr = fix_to_virt(idx) + ((phys) & (PAGE_SIZE - 1)); \
- addr; \
+ ____addr = fix_to_virt(idx) + ((phys) & (PAGE_SIZE - 1)); \
+ ____addr; \
})

#define set_fixmap_offset(idx, phys) \
--
1.9.1


\
 
 \ /
  Last update: 2015-10-12 10:21    [W:0.038 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site