summaryrefslogtreecommitdiffstats
path: root/drivers/firmware
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-08-25 11:50:17 -0400
committerIngo Molnar <mingo@kernel.org>2017-08-26 03:20:33 -0400
commit68ee51cb773bed81f9ff7144eca0a08550e1f9a1 (patch)
tree303aca19fec6f945fd342be5cafc472b38cbf4e0 /drivers/firmware
parentc2ceb5fd4e921506e86208b82fca716a2c3aad59 (diff)
efi/reboot: Make function pointer orig_pm_power_off static
The function pointer orig_pm_power_off is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: symbol 'orig_pm_power_off' was not declared. Should it be static? Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Matt Fleming <matt@codeblueprint.co.uk> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-efi@vger.kernel.org Link: http://lkml.kernel.org/r/20170825155019.6740-4-ard.biesheuvel@linaro.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/firmware')
-rw-r--r--drivers/firmware/efi/reboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/efi/reboot.c b/drivers/firmware/efi/reboot.c
index 7117e2d0c7f9..22874544d301 100644
--- a/drivers/firmware/efi/reboot.c
+++ b/drivers/firmware/efi/reboot.c
@@ -5,7 +5,7 @@
5#include <linux/efi.h> 5#include <linux/efi.h>
6#include <linux/reboot.h> 6#include <linux/reboot.h>
7 7
8void (*orig_pm_power_off)(void); 8static void (*orig_pm_power_off)(void);
9 9
10int efi_reboot_quirk_mode = -1; 10int efi_reboot_quirk_mode = -1;
11 11