* [PATCH][next] efi/reboot: make function pointer orig_pm_power_off static
@ 2017-08-22 15:50 Colin King
2017-08-22 16:32 ` Ard Biesheuvel
0 siblings, 1 reply; 2+ messages in thread
From: Colin King @ 2017-08-22 15:50 UTC (permalink / raw)
To: Matt Fleming, Ard Biesheuvel, linux-efi; +Cc: kernel-janitors, linux-kernel
From: Colin Ian King <colin.king@canonical.com>
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>
---
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 7117e2d0c7f9..22874544d301 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;
--
2.14.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH][next] efi/reboot: make function pointer orig_pm_power_off static
2017-08-22 15:50 [PATCH][next] efi/reboot: make function pointer orig_pm_power_off static Colin King
@ 2017-08-22 16:32 ` Ard Biesheuvel
0 siblings, 0 replies; 2+ messages in thread
From: Ard Biesheuvel @ 2017-08-22 16:32 UTC (permalink / raw)
To: Colin King; +Cc: Matt Fleming, linux-efi, kernel-janitors, linux-kernel
On 22 August 2017 at 16:50, Colin King <colin.king@canonical.com> wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> 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>
Queued, thanks.
> ---
> 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 7117e2d0c7f9..22874544d301 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;
>
> --
> 2.14.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-08-22 16:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-22 15:50 [PATCH][next] efi/reboot: make function pointer orig_pm_power_off static Colin King
2017-08-22 16:32 ` Ard Biesheuvel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®