[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-68ee51cb773bed81f9ff7144eca0a08550e1f9a1@git.kernel.org>
Date: Sat, 26 Aug 2017 00:58:55 -0700
From: tip-bot for Colin Ian King <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: colin.king@...onical.com, hpa@...or.com, peterz@...radead.org,
mingo@...nel.org, matt@...eblueprint.co.uk, tglx@...utronix.de,
torvalds@...ux-foundation.org, ard.biesheuvel@...aro.org,
linux-kernel@...r.kernel.org
Subject: [tip:efi/core] efi/reboot: Make function pointer orig_pm_power_off
static
Commit-ID: 68ee51cb773bed81f9ff7144eca0a08550e1f9a1
Gitweb: http://git.kernel.org/tip/68ee51cb773bed81f9ff7144eca0a08550e1f9a1
Author: Colin Ian King <colin.king@...onical.com>
AuthorDate: Fri, 25 Aug 2017 16:50:17 +0100
Committer: Ingo Molnar <mingo@...nel.org>
CommitDate: Sat, 26 Aug 2017 09:20:33 +0200
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@...onical.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@...aro.org>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Matt Fleming <matt@...eblueprint.co.uk>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: linux-efi@...r.kernel.org
Link: http://lkml.kernel.org/r/20170825155019.6740-4-ard.biesheuvel@linaro.org
Signed-off-by: Ingo Molnar <mingo@...nel.org>
---
drivers/firmware/efi/reboot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/firmware/efi/reboot.c b/drivers/firmware/efi/reboot.c
index 7117e2d..2287454 100644
--- a/drivers/firmware/efi/reboot.c
+++ b/drivers/firmware/efi/reboot.c
@@ -5,7 +5,7 @@
#include <linux/efi.h>
#include <linux/reboot.h>
-void (*orig_pm_power_off)(void);
+static void (*orig_pm_power_off)(void);
int efi_reboot_quirk_mode = -1;
Powered by blists - more mailing lists