From: Thierry Reding Date: Tue, 3 Dec 2013 10:44:48 +0000 (+0100) Subject: gpu: host1x: Fix build warnings X-Git-Tag: v3.14-rc1~47^2~45^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e0d788c6feeb13cbf312acaefa0e91cece0677b;p=pandora-kernel.git gpu: host1x: Fix build warnings When debugfs support isn't enabled, gcc complains about some variables being unused. To avoid further #ifdefery, move debugfs specific setup code into static functions and use IS_ENABLED(CONFIG_DEBUG_FS) to have the compiler, rather than the preprocessor, discard them when unused. The advantage of doing it this way is that all the code will be compile-tested whether or not debugfs support is enabled. Signed-off-by: Thierry Reding --- Reading git-diff-tree failed