]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
i2c: nvidia-gpu: mark resume function as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Mon, 10 Dec 2018 20:53:45 +0000 (21:53 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 11 Dec 2018 20:39:43 +0000 (21:39 +0100)
commit32774a8153b4c62e408297fba352248afb2e0143
tree12c9495c3303bf4112a509b5bad042ecbda81f41
parenta4f98be7dc31ba2a5046e3fe509dab399ecc191f
i2c: nvidia-gpu: mark resume function as __maybe_unused

When CONFIG_PM is disabled, this is needed to avoid a harmless
unused-function warning:

drivers/i2c/busses/i2c-nvidia-gpu.c:345:12: error: 'gpu_i2c_resume' defined but not used [-Werror=unused-function]

Fixes: c71bcdcb42a7 ("i2c: add i2c bus driver for NVIDIA GPU")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-nvidia-gpu.c