Skip to content

Commit 32774a8

Browse files
arndbWolfram Sang
authored andcommitted
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: c71bcdc ("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>
1 parent a4f98be commit 32774a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/busses/i2c-nvidia-gpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ static void gpu_i2c_remove(struct pci_dev *pdev)
342342
pci_free_irq_vectors(pdev);
343343
}
344344

345-
static int gpu_i2c_resume(struct device *dev)
345+
static __maybe_unused int gpu_i2c_resume(struct device *dev)
346346
{
347347
struct gpu_i2c_dev *i2cd = dev_get_drvdata(dev);
348348

0 commit comments

Comments
 (0)