Skip to contentSkip to conversation

hugetlb/cgroup: Mark root_h_cgroup static

PATCH New Aneesh Kumar K.V 1 participant 1 message Jun 21, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hugetlb/cgroup: Mark root_h_cgroup static

From: "Aneesh Kumar K.V" <[email protected]>

Fixes sparse warning reported by Fengguang Wu

---
 mm/hugetlb_cgroup.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/hugetlb_cgroup.c +1 -1
index a7a0a79..db40669 100644
@@ -31,7 +31,7 @@ struct hugetlb_cgroup {
 #define MEMFILE_ATTR(val)	((val) & 0xffff)
 
 struct cgroup_subsys hugetlb_subsys __read_mostly;
-struct hugetlb_cgroup *root_h_cgroup __read_mostly;
+static struct hugetlb_cgroup *root_h_cgroup __read_mostly;
 
 static inline
 struct hugetlb_cgroup *hugetlb_cgroup_from_css(struct cgroup_subsys_state *s)
Signature · 7 lines
1.7.10

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>