]> git.proxmox.com Git - mirror_ubuntu-disco-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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 13 Aug 2019 12:11:36 +0000 (14:11 +0200)
commitfea719d417774dbea3c4bb0dfdf20b8b697770ae
treeac93c0c057e5b2eb3ecdeb004cb04789e8d1270b
parent1e017f6c5b65e19d3bde17eb139f55164699134c
media: staging/intel-ipu3: mark PM function as __maybe_unused

BugLink: https://bugs.launchpad.net/bugs/1837517
[ Upstream commit 948dff7cfa1d7653e7828e7b905863bd24ca5c02 ]

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: 7fc7af649ca7 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/staging/media/ipu3/ipu3.c