cgroup: Fix build warnings when CGROUP not defined
authorJon Medhurst <tixy@linaro.org>
Thu, 16 Apr 2015 12:43:10 +0000 (18:13 +0530)
committerAmit Pundir <amit.pundir@linaro.org>
Thu, 16 Apr 2015 12:43:10 +0000 (18:13 +0530)
commit3397ed1439cfd8deb68299b082f75588e7ec175d
treed4e73d8c0e8474a473493a6f25c202466d61014d
parent994a9ae38f0531603727c5c753c715fe1cb8df50
cgroup: Fix build warnings when CGROUP not defined

Commit 57114e95e8 ("cgroup: refactor allow_attach function into common
code") unnecessarily added a dummy definition for
subsys_cgroup_allow_attach when CONFIG_CGROUP is not set, so remove it
to prevent warnings like...

include/linux/cgroup.h:907:18: warning: 'struct cgroup_taskset' declared inside parameter list
           struct cgroup_taskset *tset)
                  ^
include/linux/cgroup.h:907:18: warning: its scope is only this definition or declaration, which is probably not what you want
include/linux/cgroup.h:907:18: warning: 'struct cgroup' declared inside parameter list
  CC      kernel/events/core.o
In file included from kernel/events/core.c:41:0:
include/linux/cgroup.h:907:18: warning: 'struct cgroup_taskset' declared inside parameter list
           struct cgroup_taskset *tset)

Signed-off-by: Jon Medhurst <tixy@linaro.org>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
include/linux/cgroup.h