]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: nomadik: nmk_prcm_gpiocr_get_mode may be unused
authorArnd Bergmann <arnd@arndb.de>
Fri, 25 Jan 2013 14:14:30 +0000 (14:14 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 29 Jan 2013 22:10:30 +0000 (23:10 +0100)
commitabb1c5c9dc66095cb45be2c6c984ea5de440ad50
tree0d87936a648dcce30fc4f28cccf3205b723537d7
parentcb54d8eb864b5a794b8a6d9128e1d48595cb9f14
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 <arnd@arndb.de>
Cc: Jean-Nicolas Graux <jean-nicolas.graux@stericsson.com>
Cc: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-nomadik.c