mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-20 04:44:26 +08:00
[PATCH] Mark __remove_vm_area() static
The function is exported but not used from anywhere else. It's also marked as "not for driver use" so noone out there should really care. Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
ead04089b1
commit
d24afc57d5
@ -62,7 +62,6 @@ extern struct vm_struct *__get_vm_area(unsigned long size, unsigned long flags,
|
|||||||
extern struct vm_struct *get_vm_area_node(unsigned long size,
|
extern struct vm_struct *get_vm_area_node(unsigned long size,
|
||||||
unsigned long flags, int node);
|
unsigned long flags, int node);
|
||||||
extern struct vm_struct *remove_vm_area(void *addr);
|
extern struct vm_struct *remove_vm_area(void *addr);
|
||||||
extern struct vm_struct *__remove_vm_area(void *addr);
|
|
||||||
extern int map_vm_area(struct vm_struct *area, pgprot_t prot,
|
extern int map_vm_area(struct vm_struct *area, pgprot_t prot,
|
||||||
struct page ***pages);
|
struct page ***pages);
|
||||||
extern void unmap_vm_area(struct vm_struct *area);
|
extern void unmap_vm_area(struct vm_struct *area);
|
||||||
|
@ -272,7 +272,7 @@ static struct vm_struct *__find_vm_area(void *addr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Caller must hold vmlist_lock */
|
/* Caller must hold vmlist_lock */
|
||||||
struct vm_struct *__remove_vm_area(void *addr)
|
static struct vm_struct *__remove_vm_area(void *addr)
|
||||||
{
|
{
|
||||||
struct vm_struct **p, *tmp;
|
struct vm_struct **p, *tmp;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user