Re: [PATCH v5 6/8] efi: load SSTDs from EFI variables

From: Geert Uytterhoeven
Date: Sat Jul 02 2016 - 04:18:57 EST


On Fri, Jul 1, 2016 at 10:19 PM, Octavian Purdila
<octavian.purdila@xxxxxxxxx> wrote:
> --- a/drivers/firmware/efi/efi.c
> +++ b/drivers/firmware/efi/efi.c

> @@ -195,6 +198,85 @@ static void generic_ops_unregister(void)
> efivars_unregister(&generic_efivars);
> }
>
> +#if IS_ENABLED(CONFIG_ACPI)
> +#define EFIVAR_SSDT_NAME_MAX 16
> +static char efivar_ssdt[EFIVAR_SSDT_NAME_MAX];

I think efivar_ssdt[] is used from __init functions only, so it can be
__initdata.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds