From: Arnd Bergmann Date: Fri, 25 Jan 2013 14:14:30 +0000 (+0000) Subject: pinctrl: nomadik: nmk_prcm_gpiocr_get_mode may be unused X-Git-Tag: v3.8-rc6~13^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fafd50e4b41c06bf6be8dead87075e88ef25303;p=pandora-kernel.git pinctrl: nomadik: nmk_prcm_gpiocr_get_mode may be unused nmk_prcm_gpiocr_get_mode is only needed for debugfs output at the moment, which can be compile-time disabled. Marking the function __maybe_unused still gives us compile-time coverage, but avoids a gcc warning. Without this patch, building nhk8815_defconfig results in: drivers/pinctrl/pinctrl-nomadik.c:676:12: warning: 'nmk_prcm_gpiocr_get_mode' defined but not used [-Wunused-function] Signed-off-by: Arnd Bergmann Cc: Jean-Nicolas Graux Cc: Srinidhi Kasagar Signed-off-by: Linus Walleij --- Reading git-diff-tree failed