lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 13 Sep 2012 14:41:34 +0800
From:	Li Zefan <lizefan@...wei.com>
To:	Daniel Wagner <wagi@...om.org>
CC:	<netdev@...r.kernel.org>, <cgroups@...r.kernel.org>,
	Daniel Wagner <daniel.wagner@...-carit.de>,
	Gao feng <gaofeng@...fujitsu.com>,
	Jamal Hadi Salim <jhs@...atatu.com>,
	John Fastabend <john.r.fastabend@...el.com>,
	Neil Horman <nhorman@...driver.com>, Tejun Heo <tj@...nel.org>
Subject: Re: [PATCH v4 5/8] cgroup: Wrap subsystem selection macro

On 2012/9/12 22:12, Daniel Wagner wrote:
> From: Daniel Wagner <daniel.wagner@...-carit.de>
> 
> Before we are able to define all subsystem ids at compile time we need
> a more fine grained control what gets defined when we include
> cgroup_subsys.h. For example we define the enums for the subsystems or
> to declare for struct cgroup_subsys (builtin subsystem) by including
> cgroup_subsys.h and defining SUBSYS accordingly.
> 
> Currently, the decision if a subsys is used is defined inside the
> header by testing if CONFIG_*=y is true. By moving this test outside
> of cgroup_subsys.h we are able to control it on the include level.
> 
> This is done by introducing IS_SUBSYS_ENABLED which then is defined
> according the task, e.g. is CONFIG_*=y or CONFIG_*=m.
> 
> Signed-off-by: Daniel Wagner <daniel.wagner@...-carit.de>
> Cc: Gao feng <gaofeng@...fujitsu.com>
> Cc: Jamal Hadi Salim <jhs@...atatu.com>
> Cc: John Fastabend <john.r.fastabend@...el.com>
> Cc: Li Zefan <lizefan@...wei.com>
> Cc: Neil Horman <nhorman@...driver.com>
> Cc: Tejun Heo <tj@...nel.org>
> Cc: netdev@...r.kernel.org
> Cc: cgroups@...r.kernel.org

Acked-by: Li Zefan <lizefan@...wei.com>

> ---
>  include/linux/cgroup.h        |  4 ++++
>  include/linux/cgroup_subsys.h | 24 ++++++++++++------------
>  kernel/cgroup.c               |  1 +
>  3 files changed, 17 insertions(+), 12 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists