summaryrefslogtreecommitdiff
path: root/mm/workingset.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-06-14 10:19:31 (GMT)
committerMark Brown <broonie@kernel.org>2016-06-14 13:46:58 (GMT)
commit4983d32526ab6db2f8bd2288def8abf2da5f37b2 (patch)
treeb8f91b64696c4ddd4ec98e513cef80e8b9fc592c /mm/workingset.c
parentb50455fab459b0ba17f6129203f77c6acce946ce (diff)
downloadlinux-4983d32526ab6db2f8bd2288def8abf2da5f37b2.tar.xz
ASoC: nau8825: mark pm functions __maybe_unused
The newly added nau8825_dai_is_active() function is only called from the PM logic that is build-time conditional in this driver, so we get a warning when CONFIG_PM is disabled: sound/soc/codecs/nau8825.c:229:13: error: 'nau8825_dai_is_active' defined but not used [-Werror=unused-function] static bool nau8825_dai_is_active(struct nau8825 *nau8825) By replacing the #ifdef around the functions with a __maybe_unused annotation, the code becomes more robust to this kind of problem and we no longer get the warning while also slightly improving readability. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: b50455fab459 ("ASoC: nau8825: cross talk suppression measurement function") Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'mm/workingset.c')
0 files changed, 0 insertions, 0 deletions