]> git.baikalelectronics.ru Git - kernel.git/commit
media: staging/intel-ipu3: mark PM function as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Mon, 4 Mar 2019 20:29:10 +0000 (15:29 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 20 Mar 2019 10:31:42 +0000 (06:31 -0400)
commit9a51253122ebc7bedb3ac0f198cb5f6e0d037a5e
tree18b6cde1d7deffdcb603bc0258ea1f034cea9ec7
parent954e8be16b5592f0502c253cbc60d64f170711cd
media: staging/intel-ipu3: mark PM function as __maybe_unused

The imgu_rpm_dummy_cb() looks like an API misuse that is explained
in the comment above it. Aside from that, it also causes a warning
when power management support is disabled:

drivers/staging/media/ipu3/ipu3.c:794:12: error: 'imgu_rpm_dummy_cb' defined but not used [-Werror=unused-function]

The warning is at least easy to fix by marking the function as
__maybe_unused.

Fixes: f8a1f7237950 ("media: staging/intel-ipu3: Add imgu top level pci device driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/ipu3/ipu3.c