Commit 056a6f84 authored by Mao Minkai's avatar Mao Minkai Committed by guzitao
Browse files

sw64: rename _PFN_BITS to __PFN_BITS

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/IB73UR



--------------------------------

Rename _PFN_BITS to __PFN_BITS to avoid "_PFN_BITS" redefined when
CONFIG_ZSMALLOC is enabled.

Signed-off-by: default avatarMao Minkai <maominkai@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent bc551495
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -200,8 +200,8 @@ static inline void set_p4d(p4d_t *p4dp, p4d_t p4d)

#define PFN_PTE_SHIFT	_PFN_SHIFT

#define _PFN_BITS	(MAX_PHYSMEM_BITS - PAGE_SHIFT)
#define _PFN_MASK	(GENMASK(_PFN_BITS - 1, 0) << _PFN_SHIFT)
#define __PFN_BITS	(MAX_PHYSMEM_BITS - PAGE_SHIFT)
#define _PFN_MASK	(GENMASK(__PFN_BITS - 1, 0) << _PFN_SHIFT)

#define _PAGE_TABLE	(_PAGE_VALID | __DIRTY_BITS | __ACCESS_BITS)
#define _PAGE_CHG_MASK	(_PFN_MASK | __DIRTY_BITS | __ACCESS_BITS | _PAGE_SPECIAL | _PAGE_LEAF | _PAGE_CONT)