* [PATCH] Revert "net: netprio_cgroup: make net_prio_subsys static"
@ 2011-12-09 17:03 John Fastabend
2011-12-09 18:39 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: John Fastabend @ 2011-12-09 17:03 UTC (permalink / raw)
To: davem; +Cc: nhorman, eric.dumazet, netdev
This reverts commit 865d9f9f748fdc1943679ea65d9ee1dc55e4a6ae.
This commit breaks the build with CONFIG_NETPRIO_CGROUP=y so
revert it. It does build as a module though. The SUBSYS macro
in the cgroup core code automatically defines a subsys structure
as extern. Long term we should fix the macro. And I need to
fully build test things.
Tested with CONFIG_NETPRIO_CGROUP={y|m|n} with and without
CONFIG_CGROUPS defined.
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
CC: Neil Horman <nhorman@tuxdriver.com>
Reported-By: Eric Dumazet <eric.dumazet@gmail.com>
---
net/core/netprio_cgroup.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/core/netprio_cgroup.c b/net/core/netprio_cgroup.c
index ea16c8f..3a9fd48 100644
--- a/net/core/netprio_cgroup.c
+++ b/net/core/netprio_cgroup.c
@@ -28,7 +28,7 @@ static struct cgroup_subsys_state *cgrp_create(struct cgroup_subsys *ss,
static void cgrp_destroy(struct cgroup_subsys *ss, struct cgroup *cgrp);
static int cgrp_populate(struct cgroup_subsys *ss, struct cgroup *cgrp);
-static struct cgroup_subsys net_prio_subsys = {
+struct cgroup_subsys net_prio_subsys = {
.name = "net_prio",
.create = cgrp_create,
.destroy = cgrp_destroy,
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] Revert "net: netprio_cgroup: make net_prio_subsys static"
2011-12-09 17:03 [PATCH] Revert "net: netprio_cgroup: make net_prio_subsys static" John Fastabend
@ 2011-12-09 18:39 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2011-12-09 18:39 UTC (permalink / raw)
To: john.r.fastabend; +Cc: nhorman, eric.dumazet, netdev
From: John Fastabend <john.r.fastabend@intel.com>
Date: Fri, 09 Dec 2011 09:03:25 -0800
> This reverts commit 865d9f9f748fdc1943679ea65d9ee1dc55e4a6ae.
>
> This commit breaks the build with CONFIG_NETPRIO_CGROUP=y so
> revert it. It does build as a module though. The SUBSYS macro
> in the cgroup core code automatically defines a subsys structure
> as extern. Long term we should fix the macro. And I need to
> fully build test things.
>
> Tested with CONFIG_NETPRIO_CGROUP={y|m|n} with and without
> CONFIG_CGROUPS defined.
>
> Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
> CC: Neil Horman <nhorman@tuxdriver.com>
> Reported-By: Eric Dumazet <eric.dumazet@gmail.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-09 18:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-09 17:03 [PATCH] Revert "net: netprio_cgroup: make net_prio_subsys static" John Fastabend
2011-12-09 18:39 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).