From: Daniel Wagner Date: Wed, 12 Sep 2012 14:12:03 +0000 (+0200) Subject: cgroup: net_prio: Do not define task_netpioidx() when not selected X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~51^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51e4e7faba786d33e5e33f8776c5027a1c8d6fb7;p=pandora-kernel.git cgroup: net_prio: Do not define task_netpioidx() when not selected task_netprioidx() should not be defined in case the configuration is CONFIG_NETPRIO_CGROUP=n. The reason is that in a following patch the net_prio_subsys_id will only be defined if CONFIG_NETPRIO_CGROUP!=n. When net_prio is not built at all any callee should only get an empty task_netprioidx() without any references to net_prio_subsys_id. Signed-off-by: Daniel Wagner Signed-off-by: Tejun Heo Acked-by: Li Zefan Acked-by: Neil Horman Cc: Gao feng Cc: Jamal Hadi Salim Cc: John Fastabend Cc: netdev@vger.kernel.org Cc: cgroups@vger.kernel.org --- Reading git-diff-tree failed