cgroup: add seq_file forward declaration for struct cftype
authorArnd Bergmann <arnd@arndb.de>
Fri, 29 May 2015 08:52:59 +0000 (10:52 +0200)
committerTejun Heo <tj@kernel.org>
Fri, 29 May 2015 13:13:49 +0000 (09:13 -0400)
commitc80ef9e0c021ff86771fdd72583c75d8f7b6a720
treea96204ffb29bd9bb58779468552d7316d8a0aca9
parentb5ba75b5fc0e8404e2c50cb68f39bb6a53fc916f
cgroup: add seq_file forward declaration for struct cftype

Recent header file changes for cgroup caused lots of warnings
about a missing struct seq_file form declaration for every
inclusion of include/linux/cgroup-defs.h.

As some files are built with -Werror, this leads to build
failure like:

                 from /git/arm-soc/drivers/gpu/drm/tilcdc/tilcdc_crtc.c:18:
/git/arm-soc/include/linux/cgroup-defs.h:354:25: error: 'struct seq_file' declared inside parameter list [-Werror]
cc1: all warnings being treated as errors
make[6]: *** [drivers/gpu/drm/tilcdc/tilcdc_crtc.o] Error 1

This patch adds the declaration, which resolves both the
warnings and the drm failure.

tj: Moved it where other type declarations are.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: b4a04ab7a37b ("cgroup: separate out include/linux/cgroup-defs.h")
Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/cgroup-defs.h