diff options
author | Ross Zwisler <ross.zwisler@linux.intel.com> | 2015-08-18 15:55:41 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2015-08-20 14:07:24 -0400 |
commit | e2e05394e4a3420dab96f728df4531893494e15d (patch) | |
tree | ba7d067880cf626ca90856ad6ba703b8c99fc276 /arch/powerpc/sysdev/axonram.c | |
parent | 2765cfbb342c727c3fd47b165196cb16da158022 (diff) |
pmem, dax: have direct_access use __pmem annotation
Update the annotation for the kaddr pointer returned by direct_access()
so that it is a __pmem pointer. This is consistent with the PMEM driver
and with how this direct_access() pointer is used in the DAX code.
Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'arch/powerpc/sysdev/axonram.c')
-rw-r--r-- | arch/powerpc/sysdev/axonram.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/powerpc/sysdev/axonram.c b/arch/powerpc/sysdev/axonram.c index ee90db17b097..a2be2a66dab6 100644 --- a/arch/powerpc/sysdev/axonram.c +++ b/arch/powerpc/sysdev/axonram.c | |||
@@ -141,13 +141,14 @@ axon_ram_make_request(struct request_queue *queue, struct bio *bio) | |||
141 | */ | 141 | */ |
142 | static long | 142 | static long |
143 | axon_ram_direct_access(struct block_device *device, sector_t sector, | 143 | axon_ram_direct_access(struct block_device *device, sector_t sector, |
144 | void **kaddr, unsigned long *pfn, long size) | 144 | void __pmem **kaddr, unsigned long *pfn, long size) |
145 | { | 145 | { |
146 | struct axon_ram_bank *bank = device->bd_disk->private_data; | 146 | struct axon_ram_bank *bank = device->bd_disk->private_data; |
147 | loff_t offset = (loff_t)sector << AXON_RAM_SECTOR_SHIFT; | 147 | loff_t offset = (loff_t)sector << AXON_RAM_SECTOR_SHIFT; |
148 | void *addr = (void *)(bank->ph_addr + offset); | ||
148 | 149 | ||
149 | *kaddr = (void *)(bank->ph_addr + offset); | 150 | *kaddr = (void __pmem *)addr; |
150 | *pfn = virt_to_phys(*kaddr) >> PAGE_SHIFT; | 151 | *pfn = virt_to_phys(addr) >> PAGE_SHIFT; |
151 | 152 | ||
152 | return bank->size - offset; | 153 | return bank->size - offset; |
153 | } | 154 | } |