]> git.baikalelectronics.ru Git - kernel.git/commit
media: marvell-ccic: mmp: mark PM functions as __maybe_unused
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 9 Sep 2020 11:29:21 +0000 (13:29 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 26 Sep 2020 08:34:04 +0000 (10:34 +0200)
commitad2b79e70fbc63cd0fb3faaad9885dde4fef0899
tree17ed325d05376d460850076c53d89d273428312a
parent35219284bdc38f319fa5be1203f7af9640467f37
media: marvell-ccic: mmp: mark PM functions as __maybe_unused

The suspend/resume functions have no callers depending on
configuration, so they must be marked __maybe_unused to
avoid these harmless warnings:

drivers/media/platform/marvell-ccic/mmp-driver.c:347:12: warning:
 'mmpcam_resume' defined but not used [-Wunused-function]
  347 | static int mmpcam_resume(struct device *dev)
      |            ^~~~~~~~~~~~~
drivers/media/platform/marvell-ccic/mmp-driver.c:338:12: warning:
 'mmpcam_suspend' defined but not used [-Wunused-function]
  338 | static int mmpcam_suspend(struct device *dev)
      |            ^~~~~~~~~~~~~~

Fixes: c061d5f66ea2 ("media: marvell-ccic: add support for runtime PM")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/marvell-ccic/mmp-driver.c