@@ -45,7 +45,7 @@ static struct nd_region *to_region(struct pmem_device *pmem)
45
45
return to_nd_region (to_dev (pmem )-> parent );
46
46
}
47
47
48
- static phys_addr_t to_phys (struct pmem_device * pmem , phys_addr_t offset )
48
+ static phys_addr_t pmem_to_phys (struct pmem_device * pmem , phys_addr_t offset )
49
49
{
50
50
return pmem -> phys_addr + offset ;
51
51
}
@@ -63,7 +63,7 @@ static phys_addr_t to_offset(struct pmem_device *pmem, sector_t sector)
63
63
static void pmem_mkpage_present (struct pmem_device * pmem , phys_addr_t offset ,
64
64
unsigned int len )
65
65
{
66
- phys_addr_t phys = to_phys (pmem , offset );
66
+ phys_addr_t phys = pmem_to_phys (pmem , offset );
67
67
unsigned long pfn_start , pfn_end , pfn ;
68
68
69
69
/* only pmem in the linear map supports HWPoison */
@@ -97,7 +97,7 @@ static void pmem_clear_bb(struct pmem_device *pmem, sector_t sector, long blks)
97
97
static long __pmem_clear_poison (struct pmem_device * pmem ,
98
98
phys_addr_t offset , unsigned int len )
99
99
{
100
- phys_addr_t phys = to_phys (pmem , offset );
100
+ phys_addr_t phys = pmem_to_phys (pmem , offset );
101
101
long cleared = nvdimm_clear_poison (to_dev (pmem ), phys , len );
102
102
103
103
if (cleared > 0 ) {
0 commit comments