Skip to content

Commit b7701a5

Browse files
rppttorvalds
authored andcommitted
mm: docs: fixup punctuation
so that kernel-doc will properly recognize the parameter and function descriptions. Link: http://lkml.kernel.org/r/1516700871-22279-2-git-send-email-rppt@linux.vnet.ibm.com Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com> Cc: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent f734076 commit b7701a5

5 files changed

Lines changed: 27 additions & 27 deletions

File tree

‎mm/ksm.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2302,7 +2302,7 @@ static struct rmap_item *scan_get_next_rmap_item(struct page **page)
23022302

23032303
/**
23042304
* ksm_do_scan - the ksm scanner main worker function.
2305-
* @scan_npages - number of pages we want to scan before we return.
2305+
* @scan_npages: number of pages we want to scan before we return.
23062306
*/
23072307
static void ksm_do_scan(unsigned int scan_npages)
23082308
{

‎mm/memcontrol.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5818,8 +5818,8 @@ bool mem_cgroup_charge_skmem(struct mem_cgroup *memcg, unsigned int nr_pages)
58185818

58195819
/**
58205820
* mem_cgroup_uncharge_skmem - uncharge socket memory
5821-
* @memcg - memcg to uncharge
5822-
* @nr_pages - number of pages to uncharge
5821+
* @memcg: memcg to uncharge
5822+
* @nr_pages: number of pages to uncharge
58235823
*/
58245824
void mem_cgroup_uncharge_skmem(struct mem_cgroup *memcg, unsigned int nr_pages)
58255825
{

‎mm/mlock.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ static void __munlock_isolation_failed(struct page *page)
157157

158158
/**
159159
* munlock_vma_page - munlock a vma page
160-
* @page - page to be unlocked, either a normal page or THP page head
160+
* @page: page to be unlocked, either a normal page or THP page head
161161
*
162162
* returns the size of the page as a page mask (0 for normal page,
163163
* HPAGE_PMD_NR - 1 for THP head page)

‎mm/nommu.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1836,7 +1836,7 @@ int __access_remote_vm(struct task_struct *tsk, struct mm_struct *mm,
18361836
}
18371837

18381838
/**
1839-
* @access_remote_vm - access another process' address space
1839+
* access_remote_vm - access another process' address space
18401840
* @mm: the mm_struct of the target address space
18411841
* @addr: start address to access
18421842
* @buf: source or destination buffer

‎mm/zpool.c‎

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ static void zpool_put_driver(struct zpool_driver *driver)
101101

102102
/**
103103
* zpool_has_pool() - Check if the pool driver is available
104-
* @type The type of the zpool to check (e.g. zbud, zsmalloc)
104+
* @type: The type of the zpool to check (e.g. zbud, zsmalloc)
105105
*
106106
* This checks if the @type pool driver is available. This will try to load
107107
* the requested module, if needed, but there is no guarantee the module will
@@ -136,10 +136,10 @@ EXPORT_SYMBOL(zpool_has_pool);
136136

137137
/**
138138
* zpool_create_pool() - Create a new zpool
139-
* @type The type of the zpool to create (e.g. zbud, zsmalloc)
140-
* @name The name of the zpool (e.g. zram0, zswap)
141-
* @gfp The GFP flags to use when allocating the pool.
142-
* @ops The optional ops callback.
139+
* @type: The type of the zpool to create (e.g. zbud, zsmalloc)
140+
* @name: The name of the zpool (e.g. zram0, zswap)
141+
* @gfp: The GFP flags to use when allocating the pool.
142+
* @ops: The optional ops callback.
143143
*
144144
* This creates a new zpool of the specified type. The gfp flags will be
145145
* used when allocating memory, if the implementation supports it. If the
@@ -201,7 +201,7 @@ struct zpool *zpool_create_pool(const char *type, const char *name, gfp_t gfp,
201201

202202
/**
203203
* zpool_destroy_pool() - Destroy a zpool
204-
* @pool The zpool to destroy.
204+
* @pool: The zpool to destroy.
205205
*
206206
* Implementations must guarantee this to be thread-safe,
207207
* however only when destroying different pools. The same
@@ -224,7 +224,7 @@ void zpool_destroy_pool(struct zpool *zpool)
224224

225225
/**
226226
* zpool_get_type() - Get the type of the zpool
227-
* @pool The zpool to check
227+
* @pool: The zpool to check
228228
*
229229
* This returns the type of the pool.
230230
*
@@ -239,10 +239,10 @@ const char *zpool_get_type(struct zpool *zpool)
239239

240240
/**
241241
* zpool_malloc() - Allocate memory
242-
* @pool The zpool to allocate from.
243-
* @size The amount of memory to allocate.
244-
* @gfp The GFP flags to use when allocating memory.
245-
* @handle Pointer to the handle to set
242+
* @pool: The zpool to allocate from.
243+
* @size: The amount of memory to allocate.
244+
* @gfp: The GFP flags to use when allocating memory.
245+
* @handle: Pointer to the handle to set
246246
*
247247
* This allocates the requested amount of memory from the pool.
248248
* The gfp flags will be used when allocating memory, if the
@@ -261,8 +261,8 @@ int zpool_malloc(struct zpool *zpool, size_t size, gfp_t gfp,
261261

262262
/**
263263
* zpool_free() - Free previously allocated memory
264-
* @pool The zpool that allocated the memory.
265-
* @handle The handle to the memory to free.
264+
* @pool: The zpool that allocated the memory.
265+
* @handle: The handle to the memory to free.
266266
*
267267
* This frees previously allocated memory. This does not guarantee
268268
* that the pool will actually free memory, only that the memory
@@ -280,9 +280,9 @@ void zpool_free(struct zpool *zpool, unsigned long handle)
280280

281281
/**
282282
* zpool_shrink() - Shrink the pool size
283-
* @pool The zpool to shrink.
284-
* @pages The number of pages to shrink the pool.
285-
* @reclaimed The number of pages successfully evicted.
283+
* @pool: The zpool to shrink.
284+
* @pages: The number of pages to shrink the pool.
285+
* @reclaimed: The number of pages successfully evicted.
286286
*
287287
* This attempts to shrink the actual memory size of the pool
288288
* by evicting currently used handle(s). If the pool was
@@ -304,9 +304,9 @@ int zpool_shrink(struct zpool *zpool, unsigned int pages,
304304

305305
/**
306306
* zpool_map_handle() - Map a previously allocated handle into memory
307-
* @pool The zpool that the handle was allocated from
308-
* @handle The handle to map
309-
* @mm How the memory should be mapped
307+
* @pool: The zpool that the handle was allocated from
308+
* @handle: The handle to map
309+
* @mm: How the memory should be mapped
310310
*
311311
* This maps a previously allocated handle into memory. The @mm
312312
* param indicates to the implementation how the memory will be
@@ -332,8 +332,8 @@ void *zpool_map_handle(struct zpool *zpool, unsigned long handle,
332332

333333
/**
334334
* zpool_unmap_handle() - Unmap a previously mapped handle
335-
* @pool The zpool that the handle was allocated from
336-
* @handle The handle to unmap
335+
* @pool: The zpool that the handle was allocated from
336+
* @handle: The handle to unmap
337337
*
338338
* This unmaps a previously mapped handle. Any locks or other
339339
* actions that the implementation took in zpool_map_handle()
@@ -347,7 +347,7 @@ void zpool_unmap_handle(struct zpool *zpool, unsigned long handle)
347347

348348
/**
349349
* zpool_get_total_size() - The total size of the pool
350-
* @pool The zpool to check
350+
* @pool: The zpool to check
351351
*
352352
* This returns the total size in bytes of the pool.
353353
*

0 commit comments

Comments
 (0)