Commit b1b73a80 authored by Isaac J. Manjarres's avatar Isaac J. Manjarres Committed by Treehugger Robot
Browse files

ANDROID: irqchip/gic-v3: Remove gic_v3_suspend() stub for !CONFIG_PM builds



gic_v3_suspend() does not need to be defined when CONFIG_PM is not
enabled. Doing so causes a build error when building with the
-Werror,-Wunused-function flags as seen below:

drivers/irqchip/irq-gic-v3.c:1586:12: error: unused function 'gic_v3_suspend' [-Werror,-Wunused-function]
 1586 | static int gic_v3_suspend(void) { return 0; }
      |            ^~~~~~~~~~~~~~
1 error generated.

Fix by removing gic_v3_suspend when CONFIG_PM is not defined.

Bug: 433421153
Fixes: bca065e8 ("ANDROID: irqchip/irq-gic-v3: Add vendor hook for gic suspend")
Change-Id: I2b9262a68cd61f13bddb88a9f200a32d5aeb0f1f
Signed-off-by: default avatarIsaac J. Manjarres <isaacmanjarres@google.com>
parent f97c8e10
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment