summaryrefslogtreecommitdiff
path: root/net/ax25/ax25_ip.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2015-12-08 16:21:05 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-02-23 09:05:14 +0100
commitc78c9f52afe57848a5262afe3c12c7d9930d0831 (patch)
tree0a96b2288ddcf9bb593031d3dcec46677844cc0f /net/ax25/ax25_ip.c
parente7dff89d771365d2d96e7584a633e196448fefcf (diff)
mfd: as3722: Mark PM functions as __maybe_unused
commit a7b956fd38dd217dd78e3058110929f5ac914df1 upstream. The newly introduced as3722_i2c_suspend/resume functions are built unconditionally, but only used when power management is enabled, so we get a warning otherwise: drivers/mfd/as3722.c:427:12: warning: 'as3722_i2c_suspend' defined but not used [-Wunused-function] drivers/mfd/as3722.c:438:12: warning: 'as3722_i2c_resume' defined but not used [-Wunused-function] This marks them both as __maybe_unused, which avoids an ugly #ifdef and gives us best compile-time coverage. When they are unused, the compiler will silently drop the functions from its output. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: 35deff7eb212 ("mfd: as3722: Handle interrupts on suspend") Signed-off-by: Lee Jones <lee.jones@linaro.org> Cc: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ax25/ax25_ip.c')
0 files changed, 0 insertions, 0 deletions