Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1717566
| From | Ard Biesheuvel <ard.biesheuvel@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH][next] efi/reboot: make function pointer orig_pm_power_off static |
| Date | 2017-08-22 18:40 +0200 |
| Message-ID | <uhknD-4Vd-13@gated-at.bofh.it> (permalink) |
| References | <uhjKW-4r8-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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 >
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH][next] efi/reboot: make function pointer orig_pm_power_off static Colin King <colin.king@canonical.com> - 2017-08-22 18:00 +0200 Re: [PATCH][next] efi/reboot: make function pointer orig_pm_power_off static Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2017-08-22 18:40 +0200
csiph-web