mm/hugetlb.c: make resv_map_{alloc,release}() static
Subsystems (2)
PATCH 1/1 mm/hugetlb.c: make resv_map_{alloc,release}() static
This patch makes the needlessly global resv_map_{alloc,release}() static.
Signed-off-by Adrian Bunk <[email protected]>
---99bcfd48d93a0c6286b6345f52d10a0a1a43f8c4
mm/hugetlb.c +2 -2
@@ -262,7 +262,7 @@ struct resv_map {struct list_head regions; }; -struct resv_map *resv_map_alloc (void ) +static struct resv_map *resv_map_alloc (void ) {struct resv_map *resv_map =kmalloc (sizeof (*resv_map),GFP_KERNEL );if (!resv_map)
@@ -274,7 +274,7 @@ struct resv_map *resv_map_alloc(void)return resv_map; } -void resv_map_release (struct kref *ref) +static void resv_map_release (struct kref *ref) { struct resv_map *resv_map = container_of(ref, struct resv_map, refs);
Quoted 4 lines · Adrian Bunk
This patch makes the needlessly global resv_map_{alloc,release}() static.
Signed-off-by Adrian Bunk <[email protected]>
Acked-by Andy Whitcroft <[email protected]>
Quoted 15 lines
99bcfd48d93a0c6286b6345f52d10a0a1a43f8c4mm/hugetlb.c +1
-1@@ -262,7 +262,7 @@ struct resv_map {struct list_head regions; }; -struct resv_map *resv_map_alloc (void ) +static struct resv_map *resv_map_alloc (void ) {struct resv_map *resv_map =kmalloc (sizeof (*resv_map),GFP_KERNEL );if (!resv_map)
mm/hugetlb.c struct resv_map *resv_map_alloc(void) · line 279
Quoted 7 lines
mm/hugetlb.c +1
-1@@ -274,7 +274,7 @@ struct resv_map *resv_map_alloc(void)return resv_map; } -void resv_map_release (struct kref *ref) +static void resv_map_release (struct kref *ref) { struct resv_map *resv_map = container_of(ref, struct resv_map, refs);
-apw