Skip to contentSkip to conversation

netprio_cgroup: make local table static

PATCH Applied Stephen Hemminger 3 participants 3 messages Apr 10, 2013 – Apr 11, 2013

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

PATCH 1/1 netprio_cgroup: make local table static

Minor sparse warning

net/core/netprio_cgroup.c +1 -1
@@ -247,7 +247,7 @@ static struct cftype ss_files[] = {
 	{ }	/* terminate */
 };
 
-struct cgroup_subsys net_prio_subsys = {
+static struct cgroup_subsys net_prio_subsys = {
 	.name		= "net_prio",
 	.css_alloc	= cgrp_css_alloc,
 	.css_online	= cgrp_css_online,
Acked-by on v1 1/1
#2 lore raw
In reply to Stephen Hemminger
Quoted 8 lines · Stephen Hemminger

Minor sparse warning

net/core/netprio_cgroup.c static struct cftype ss_files[] = { · line 253

Quoted 8 lines
net/core/netprio_cgroup.c +1 -1
@@ -247,7 +247,7 @@ static struct cftype ss_files[] = {
 	{ }	/* terminate */
 };
 
-struct cgroup_subsys net_prio_subsys = {
+static struct cgroup_subsys net_prio_subsys = {
 	.name		= "net_prio",
 	.css_alloc	= cgrp_css_alloc,
 	.css_online	= cgrp_css_online,