Skip to content

Commit

Permalink
mm/nommu: remove description of alloc_vm_area
Browse files Browse the repository at this point in the history
The alloc_mm_area in nommu is a stub, but its description states it
allocates kernel address space.  Remove the description to make the code
and the documentation agree.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Mike Rapoport <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
rppt authored and torvalds committed Apr 6, 2018
1 parent 60f5921 commit e48e3c5
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions mm/nommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -457,18 +457,6 @@ void __weak vmalloc_sync_all(void)
{
}

/**
* alloc_vm_area - allocate a range of kernel address space
* @size: size of the area
*
* Returns: NULL on failure, vm_struct on success
*
* This function reserves a range of kernel address space, and
* allocates pagetables to map that range. No actual mappings
* are created. If the kernel address space is not shared
* between processes, it syncs the pagetable across all
* processes.
*/
struct vm_struct *alloc_vm_area(size_t size, pte_t **ptes)
{
BUG();
Expand Down

0 comments on commit e48e3c5

Please sign in to comment.