diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-03-06 13:31:36 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-03-06 13:31:36 -0500 |
commit | 8dcd175bc3d50b78413c56d5b17d4bddd77412ef (patch) | |
tree | 2c2fb25759b43f2e73830f07ef3b444d76825280 /mm/dmapool.c | |
parent | afe6fe7036c6efdcb46cabc64bec9b6e4a005210 (diff) | |
parent | fff04900ea79915939ef6a3aad78fca6511a3034 (diff) |
Merge branch 'akpm' (patches from Andrew)
Merge misc updates from Andrew Morton:
- a few misc things
- ocfs2 updates
- most of MM
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (159 commits)
tools/testing/selftests/proc/proc-self-syscall.c: remove duplicate include
proc: more robust bulk read test
proc: test /proc/*/maps, smaps, smaps_rollup, statm
proc: use seq_puts() everywhere
proc: read kernel cpu stat pointer once
proc: remove unused argument in proc_pid_lookup()
fs/proc/thread_self.c: code cleanup for proc_setup_thread_self()
fs/proc/self.c: code cleanup for proc_setup_self()
proc: return exit code 4 for skipped tests
mm,mremap: bail out earlier in mremap_to under map pressure
mm/sparse: fix a bad comparison
mm/memory.c: do_fault: avoid usage of stale vm_area_struct
writeback: fix inode cgroup switching comment
mm/huge_memory.c: fix "orig_pud" set but not used
mm/hotplug: fix an imbalance with DEBUG_PAGEALLOC
mm/memcontrol.c: fix bad line in comment
mm/cma.c: cma_declare_contiguous: correct err handling
mm/page_ext.c: fix an imbalance with kmemleak
mm/compaction: pass pgdat to too_many_isolated() instead of zone
mm: remove zone_lru_lock() function, access ->lru_lock directly
...
Diffstat (limited to 'mm/dmapool.c')
-rw-r--r-- | mm/dmapool.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/mm/dmapool.c b/mm/dmapool.c index 6d4b97e7e9e9..76a160083506 100644 --- a/mm/dmapool.c +++ b/mm/dmapool.c | |||
@@ -114,10 +114,9 @@ static DEVICE_ATTR(pools, 0444, show_pools, NULL); | |||
114 | * @size: size of the blocks in this pool. | 114 | * @size: size of the blocks in this pool. |
115 | * @align: alignment requirement for blocks; must be a power of two | 115 | * @align: alignment requirement for blocks; must be a power of two |
116 | * @boundary: returned blocks won't cross this power of two boundary | 116 | * @boundary: returned blocks won't cross this power of two boundary |
117 | * Context: !in_interrupt() | 117 | * Context: not in_interrupt() |
118 | * | 118 | * |
119 | * Returns a dma allocation pool with the requested characteristics, or | 119 | * Given one of these pools, dma_pool_alloc() |
120 | * null if one can't be created. Given one of these pools, dma_pool_alloc() | ||
121 | * may be used to allocate memory. Such memory will all have "consistent" | 120 | * may be used to allocate memory. Such memory will all have "consistent" |
122 | * DMA mappings, accessible by the device and its driver without using | 121 | * DMA mappings, accessible by the device and its driver without using |
123 | * cache flushing primitives. The actual size of blocks allocated may be | 122 | * cache flushing primitives. The actual size of blocks allocated may be |
@@ -127,6 +126,9 @@ static DEVICE_ATTR(pools, 0444, show_pools, NULL); | |||
127 | * cross that size boundary. This is useful for devices which have | 126 | * cross that size boundary. This is useful for devices which have |
128 | * addressing restrictions on individual DMA transfers, such as not crossing | 127 | * addressing restrictions on individual DMA transfers, such as not crossing |
129 | * boundaries of 4KBytes. | 128 | * boundaries of 4KBytes. |
129 | * | ||
130 | * Return: a dma allocation pool with the requested characteristics, or | ||
131 | * %NULL if one can't be created. | ||
130 | */ | 132 | */ |
131 | struct dma_pool *dma_pool_create(const char *name, struct device *dev, | 133 | struct dma_pool *dma_pool_create(const char *name, struct device *dev, |
132 | size_t size, size_t align, size_t boundary) | 134 | size_t size, size_t align, size_t boundary) |
@@ -313,7 +315,7 @@ EXPORT_SYMBOL(dma_pool_destroy); | |||
313 | * @mem_flags: GFP_* bitmask | 315 | * @mem_flags: GFP_* bitmask |
314 | * @handle: pointer to dma address of block | 316 | * @handle: pointer to dma address of block |
315 | * | 317 | * |
316 | * This returns the kernel virtual address of a currently unused block, | 318 | * Return: the kernel virtual address of a currently unused block, |
317 | * and reports its dma address through the handle. | 319 | * and reports its dma address through the handle. |
318 | * If such a memory block can't be allocated, %NULL is returned. | 320 | * If such a memory block can't be allocated, %NULL is returned. |
319 | */ | 321 | */ |
@@ -498,6 +500,9 @@ static int dmam_pool_match(struct device *dev, void *res, void *match_data) | |||
498 | * | 500 | * |
499 | * Managed dma_pool_create(). DMA pool created with this function is | 501 | * Managed dma_pool_create(). DMA pool created with this function is |
500 | * automatically destroyed on driver detach. | 502 | * automatically destroyed on driver detach. |
503 | * | ||
504 | * Return: a managed dma allocation pool with the requested | ||
505 | * characteristics, or %NULL if one can't be created. | ||
501 | */ | 506 | */ |
502 | struct dma_pool *dmam_pool_create(const char *name, struct device *dev, | 507 | struct dma_pool *dmam_pool_create(const char *name, struct device *dev, |
503 | size_t size, size_t align, size_t allocation) | 508 | size_t size, size_t align, size_t allocation) |