diff options
author | Arnd Bergmann <[email protected]> | 2016-06-29 11:26:34 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2016-07-08 18:32:23 -0300 |
commit | aee8937089b1705b38ddb1c2a754397203988c04 (patch) | |
tree | a3cc90ddbe7324103b99d25e51754664571fdc14 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | f8db65fe4336baf818dde5d226eb3d35773e2371 (diff) |
[media] s5p_cec: mark suspend/resume as __maybe_unused
The suspend/resume functions in the s5p-cec driver are only
referenced when CONFIG_PM is enabled, so we get a warning
about unused functions otherwise:
drivers/staging/media/s5p-cec/s5p_cec.c:260:12: error: 's5p_cec_resume' defined but not used [-Werror=unused-function]
static int s5p_cec_resume(struct device *dev)
^~~~~~~~~~~~~~
drivers/staging/media/s5p-cec/s5p_cec.c:253:12: error: 's5p_cec_suspend' defined but not used [-Werror=unused-function]
static int s5p_cec_suspend(struct device *dev)
This marks them as __maybe_unused to avoid the warning without
having to introduce an extra #ifdef.
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions