Re: [PATCH] ACPI/sleep: mark acpi_sleep_dmi_check() __init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday, January 23, 2015 08:12:06 AM Jan Beulich wrote:
> ACPI/sleep: mark acpi_sleep_dmi_check() __init
> 
> This makes a difference if the compiler decides not to inline the
> function, as then the function's reference to acpisleep_dmi_table[]
> yields a section mismatch warning.
> 
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

Queued up for 3.20, thanks!

> ---
>  drivers/acpi/sleep.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- 3.19-rc5/drivers/acpi/sleep.c
> +++ 3.19-rc5-ACPI-sleep-DMI-check-init/drivers/acpi/sleep.c
> @@ -321,7 +321,7 @@ static struct dmi_system_id acpisleep_dm
>  	{},
>  };
>  
> -static void acpi_sleep_dmi_check(void)
> +static void __init acpi_sleep_dmi_check(void)
>  {
>  	int year;
>  
> 
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux