Re: [PATCH] cgroup: define empty cftype structure for !CONFIG_CGROUPS

From: Jens Axboe
Date: Fri Apr 21 2017 - 17:57:19 EST


On 04/21/2017 03:41 PM, Arnd Bergmann wrote:
> There is a new forward declaration for two global cftype arrays, but
> that fails to build when CONFIG_CGROUPS is disabled:
>
> In file included from /git/arm-soc/block/bfq-iosched.c:105:0:
> block/bfq-iosched.h:820:22: error: array type has incomplete element type 'struct cftype'
> extern struct cftype bfq_blkcg_legacy_files[];
> extern struct cftype bfq_blkg_files[];
>
> This adds an empty definition for the type to make it build again.

This was already fixed up yesterday:

http://git.kernel.dk/cgit/linux-block/commit/?h=for-4.12/block&id=659b3394eb67a5e274d7e7348633b508510a5c8f

--
Jens Axboe