mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
kmap_types.h: rename D macro
I tend to use a 'D' debugging macro a lot during debugging. When I define it before includes I often get conflicts with kmap_types.h's use of 'D' too. It's not very nice when a global include pollutes the name space like this. Rename the kmap_types.h D to KMAP_D. It is only used temporarily in the header so has no effect on anything else. Signed-off-by: Andi Kleen <ak@linux.intel.com> Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
a49c59c042
commit
b28cfd2c06
1 changed files with 24 additions and 23 deletions
|
@ -2,34 +2,35 @@
|
||||||
#define _ASM_GENERIC_KMAP_TYPES_H
|
#define _ASM_GENERIC_KMAP_TYPES_H
|
||||||
|
|
||||||
#ifdef __WITH_KM_FENCE
|
#ifdef __WITH_KM_FENCE
|
||||||
# define D(n) __KM_FENCE_##n ,
|
# define KMAP_D(n) __KM_FENCE_##n ,
|
||||||
#else
|
#else
|
||||||
# define D(n)
|
# define KMAP_D(n)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
enum km_type {
|
enum km_type {
|
||||||
D(0) KM_BOUNCE_READ,
|
KMAP_D(0) KM_BOUNCE_READ,
|
||||||
D(1) KM_SKB_SUNRPC_DATA,
|
KMAP_D(1) KM_SKB_SUNRPC_DATA,
|
||||||
D(2) KM_SKB_DATA_SOFTIRQ,
|
KMAP_D(2) KM_SKB_DATA_SOFTIRQ,
|
||||||
D(3) KM_USER0,
|
KMAP_D(3) KM_USER0,
|
||||||
D(4) KM_USER1,
|
KMAP_D(4) KM_USER1,
|
||||||
D(5) KM_BIO_SRC_IRQ,
|
KMAP_D(5) KM_BIO_SRC_IRQ,
|
||||||
D(6) KM_BIO_DST_IRQ,
|
KMAP_D(6) KM_BIO_DST_IRQ,
|
||||||
D(7) KM_PTE0,
|
KMAP_D(7) KM_PTE0,
|
||||||
D(8) KM_PTE1,
|
KMAP_D(8) KM_PTE1,
|
||||||
D(9) KM_IRQ0,
|
KMAP_D(9) KM_IRQ0,
|
||||||
D(10) KM_IRQ1,
|
KMAP_D(10) KM_IRQ1,
|
||||||
D(11) KM_SOFTIRQ0,
|
KMAP_D(11) KM_SOFTIRQ0,
|
||||||
D(12) KM_SOFTIRQ1,
|
KMAP_D(12) KM_SOFTIRQ1,
|
||||||
D(13) KM_SYNC_ICACHE,
|
KMAP_D(13) KM_SYNC_ICACHE,
|
||||||
D(14) KM_SYNC_DCACHE,
|
KMAP_D(14) KM_SYNC_DCACHE,
|
||||||
D(15) KM_UML_USERCOPY, /* UML specific, for copy_*_user - used in do_op_one_page */
|
/* UML specific, for copy_*_user - used in do_op_one_page */
|
||||||
D(16) KM_IRQ_PTE,
|
KMAP_D(15) KM_UML_USERCOPY,
|
||||||
D(17) KM_NMI,
|
KMAP_D(16) KM_IRQ_PTE,
|
||||||
D(18) KM_NMI_PTE,
|
KMAP_D(17) KM_NMI,
|
||||||
D(19) KM_TYPE_NR
|
KMAP_D(18) KM_NMI_PTE,
|
||||||
|
KMAP_D(19) KM_TYPE_NR
|
||||||
};
|
};
|
||||||
|
|
||||||
#undef D
|
#undef KMAP_D
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue