Le mardi 13 dÃcembre 2011 Ã 14:49 +0100, Christoph Paasch a Ãcrit :I am deeply sorry about that.
now there are plenty of compiler-warnings when CONFIG_CGROUPS is not set:
In file included from include/linux/tcp.h:211:0,
from include/linux/ipv6.h:221,
from include/net/ip_vs.h:23,
from kernel/sysctl_binary.c:6:
include/net/sock.h:67:57: warning: âstruct cgroup_subsysâ declared
inside parameter list [enabled by default]
include/net/sock.h:67:57: warning: its scope is only this definition or
declaration, which is probably not what you want [enabled by default]
include/net/sock.h:67:57: warning: âstruct cgroupâ declared inside
parameter list [enabled by default]
include/net/sock.h:68:61: warning: âstruct cgroup_subsysâ declared
inside parameter list [enabled by default]
include/net/sock.h:68:61: warning: âstruct cgroupâ declared inside
parameter list [enabled by default]
Because struct cgroup is only declared if CONFIG_CGROUPS is enabled.
(cfr. linux/cgroup.h)
Yes, we probably need forward reference like this :
Thanks !
[PATCH net-next] net: fix build error if CONFIG_CGROUPS=n
Reported-by: Christoph Paasch<christoph.paasch@xxxxxxxxxxxx>
Signed-off-by: Eric Dumazet<eric.dumazet@xxxxxxxxx>