All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch net-next] net: revert "sched classifier: make cgroup table local"
@ 2014-01-02 22:58 Cong Wang
  2014-01-03  0:03 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Cong Wang @ 2014-01-02 22:58 UTC (permalink / raw)
  To: netdev; +Cc: Cong Wang, Stephen Hemminger, David S. Miller

This reverts commit de6fb288b1246a5c4e00c0cdbfe3a838a360b3f4.
Otherwise we got:

net/sched/cls_cgroup.c:106:29: error: static declaration of ‘net_cls_subsys’ follows non-static declaration
 static struct cgroup_subsys net_cls_subsys = {
                             ^
In file included from include/linux/cgroup.h:654:0,
                 from net/sched/cls_cgroup.c:18:
include/linux/cgroup_subsys.h:35:29: note: previous declaration of ‘net_cls_subsys’ was here
 SUBSYS(net_cls)
                             ^
make[2]: *** [net/sched/cls_cgroup.o] Error 1

Cc: Stephen Hemminger <stephen@networkplumber.org>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
---
 net/sched/cls_cgroup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/sched/cls_cgroup.c b/net/sched/cls_cgroup.c
index 161a03e..f9d21258 100644
--- a/net/sched/cls_cgroup.c
+++ b/net/sched/cls_cgroup.c
@@ -103,7 +103,7 @@ static struct cftype ss_files[] = {
 	{ }	/* terminate */
 };
 
-static struct cgroup_subsys net_cls_subsys = {
+struct cgroup_subsys net_cls_subsys = {
 	.name		= "net_cls",
 	.css_alloc	= cgrp_css_alloc,
 	.css_online	= cgrp_css_online,
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Patch net-next] net: revert "sched classifier: make cgroup table local"
  2014-01-02 22:58 [Patch net-next] net: revert "sched classifier: make cgroup table local" Cong Wang
@ 2014-01-03  0:03 ` David Miller
  2014-01-03  1:21   ` Stephen Hemminger
  0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2014-01-03  0:03 UTC (permalink / raw)
  To: xiyou.wangcong; +Cc: netdev, stephen

From: Cong Wang <xiyou.wangcong@gmail.com>
Date: Thu,  2 Jan 2014 14:58:41 -0800

> This reverts commit de6fb288b1246a5c4e00c0cdbfe3a838a360b3f4.
> Otherwise we got:
> 
> net/sched/cls_cgroup.c:106:29: error: static declaration of ‘net_cls_subsys’ follows non-static declaration
>  static struct cgroup_subsys net_cls_subsys = {
>                              ^
> In file included from include/linux/cgroup.h:654:0,
>                  from net/sched/cls_cgroup.c:18:
> include/linux/cgroup_subsys.h:35:29: note: previous declaration of ‘net_cls_subsys’ was here
>  SUBSYS(net_cls)
>                              ^
> make[2]: *** [net/sched/cls_cgroup.o] Error 1
> 
> Cc: Stephen Hemminger <stephen@networkplumber.org>
> Cc: David S. Miller <davem@davemloft.net>
> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>

This is so damn unintuitive, and that build error only occurs if you
build cls_cgroup statically.

Applied, but the way this works is terrible.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Patch net-next] net: revert "sched classifier: make cgroup table local"
  2014-01-03  0:03 ` David Miller
@ 2014-01-03  1:21   ` Stephen Hemminger
  2014-01-03  5:32     ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2014-01-03  1:21 UTC (permalink / raw)
  To: David Miller; +Cc: xiyou.wangcong, netdev

On Thu, 02 Jan 2014 19:03:23 -0500 (EST)
David Miller <davem@davemloft.net> wrote:

> From: Cong Wang <xiyou.wangcong@gmail.com>
> Date: Thu,  2 Jan 2014 14:58:41 -0800
> 
> > This reverts commit de6fb288b1246a5c4e00c0cdbfe3a838a360b3f4.
> > Otherwise we got:
> > 
> > net/sched/cls_cgroup.c:106:29: error: static declaration of ‘net_cls_subsys’ follows non-static declaration
> >  static struct cgroup_subsys net_cls_subsys = {
> >                              ^
> > In file included from include/linux/cgroup.h:654:0,
> >                  from net/sched/cls_cgroup.c:18:
> > include/linux/cgroup_subsys.h:35:29: note: previous declaration of ‘net_cls_subsys’ was here
> >  SUBSYS(net_cls)
> >                              ^
> > make[2]: *** [net/sched/cls_cgroup.o] Error 1
> > 
> > Cc: Stephen Hemminger <stephen@networkplumber.org>
> > Cc: David S. Miller <davem@davemloft.net>
> > Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
> 
> This is so damn unintuitive, and that build error only occurs if you
> build cls_cgroup statically.
> 
> Applied, but the way this works is terrible.

Just removing from the include file is probably enough to fix it.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Patch net-next] net: revert "sched classifier: make cgroup table local"
  2014-01-03  1:21   ` Stephen Hemminger
@ 2014-01-03  5:32     ` David Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2014-01-03  5:32 UTC (permalink / raw)
  To: stephen; +Cc: xiyou.wangcong, netdev

From: Stephen Hemminger <stephen@networkplumber.org>
Date: Thu, 2 Jan 2014 17:21:10 -0800

> On Thu, 02 Jan 2014 19:03:23 -0500 (EST)
> David Miller <davem@davemloft.net> wrote:
> 
>> From: Cong Wang <xiyou.wangcong@gmail.com>
>> Date: Thu,  2 Jan 2014 14:58:41 -0800
>> 
>> > This reverts commit de6fb288b1246a5c4e00c0cdbfe3a838a360b3f4.
>> > Otherwise we got:
>> > 
>> > net/sched/cls_cgroup.c:106:29: error: static declaration of ‘net_cls_subsys’ follows non-static declaration
>> >  static struct cgroup_subsys net_cls_subsys = {
>> >                              ^
>> > In file included from include/linux/cgroup.h:654:0,
>> >                  from net/sched/cls_cgroup.c:18:
>> > include/linux/cgroup_subsys.h:35:29: note: previous declaration of ‘net_cls_subsys’ was here
>> >  SUBSYS(net_cls)
>> >                              ^
>> > make[2]: *** [net/sched/cls_cgroup.o] Error 1
>> > 
>> > Cc: Stephen Hemminger <stephen@networkplumber.org>
>> > Cc: David S. Miller <davem@davemloft.net>
>> > Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
>> 
>> This is so damn unintuitive, and that build error only occurs if you
>> build cls_cgroup statically.
>> 
>> Applied, but the way this works is terrible.
> 
> Just removing from the include file is probably enough to fix it.

It's being referenced via the "SUBSYS" macro, and that is how this
cgroup subsystem instantiated in the static build.

You can't just delete it.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-01-03  5:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-02 22:58 [Patch net-next] net: revert "sched classifier: make cgroup table local" Cong Wang
2014-01-03  0:03 ` David Miller
2014-01-03  1:21   ` Stephen Hemminger
2014-01-03  5:32     ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.