From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754395AbdHZIDd (ORCPT ); Sat, 26 Aug 2017 04:03:33 -0400 Received: from terminus.zytor.com ([65.50.211.136]:45957 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751302AbdHZIDc (ORCPT ); Sat, 26 Aug 2017 04:03:32 -0400 Date: Sat, 26 Aug 2017 00:58:55 -0700 From: tip-bot for Colin Ian King Message-ID: Cc: colin.king@canonical.com, hpa@zytor.com, peterz@infradead.org, mingo@kernel.org, matt@codeblueprint.co.uk, tglx@linutronix.de, torvalds@linux-foundation.org, ard.biesheuvel@linaro.org, linux-kernel@vger.kernel.org Reply-To: torvalds@linux-foundation.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, ard.biesheuvel@linaro.org, colin.king@canonical.com, hpa@zytor.com, peterz@infradead.org, matt@codeblueprint.co.uk, mingo@kernel.org In-Reply-To: <20170825155019.6740-4-ard.biesheuvel@linaro.org> References: <20170825155019.6740-4-ard.biesheuvel@linaro.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:efi/core] efi/reboot: Make function pointer orig_pm_power_off static Git-Commit-ID: 68ee51cb773bed81f9ff7144eca0a08550e1f9a1 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 68ee51cb773bed81f9ff7144eca0a08550e1f9a1 Gitweb: http://git.kernel.org/tip/68ee51cb773bed81f9ff7144eca0a08550e1f9a1 Author: Colin Ian King AuthorDate: Fri, 25 Aug 2017 16:50:17 +0100 Committer: Ingo Molnar 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 Signed-off-by: Ard Biesheuvel Cc: Linus Torvalds Cc: Matt Fleming Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: linux-efi@vger.kernel.org Link: http://lkml.kernel.org/r/20170825155019.6740-4-ard.biesheuvel@linaro.org Signed-off-by: Ingo Molnar --- 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 #include -void (*orig_pm_power_off)(void); +static void (*orig_pm_power_off)(void); int efi_reboot_quirk_mode = -1;