2008-02-13 21:37:18

by Adrian Bunk

[permalink] [raw]
Subject: [2.6 patch] make acpi_no_initrd_override_setup() static

acpi_no_initrd_override_setup() can become static.

Signed-off-by: Adrian Bunk <[email protected]>

---
1778953a9751288a9bee1d4f6a8b4f3d22e37f52 diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index 0c37c65..b72a7f1 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -419,7 +419,7 @@ acpi_os_table_override(struct acpi_table_header * existing_table,
}

#ifdef CONFIG_ACPI_CUSTOM_DSDT_INITRD
-int __init acpi_no_initrd_override_setup(char *s)
+static int __init acpi_no_initrd_override_setup(char *s)
{
acpi_no_initrd_override = 1;
return 1;


2008-02-13 22:16:57

by Éric Piel

[permalink] [raw]
Subject: Re: [2.6 patch] make acpi_no_initrd_override_setup() static

13/02/08 22:30, Adrian Bunk wrote/a écrit:
> acpi_no_initrd_override_setup() can become static.
>
> Signed-off-by: Adrian Bunk <[email protected]>
Oh, indeed, no one else uses this function.
Acked-by: Eric Piel <[email protected]>

>
> ---
> 1778953a9751288a9bee1d4f6a8b4f3d22e37f52 diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
> index 0c37c65..b72a7f1 100644
> --- a/drivers/acpi/osl.c
> +++ b/drivers/acpi/osl.c
> @@ -419,7 +419,7 @@ acpi_os_table_override(struct acpi_table_header * existing_table,
> }
>
> #ifdef CONFIG_ACPI_CUSTOM_DSDT_INITRD
> -int __init acpi_no_initrd_override_setup(char *s)
> +static int __init acpi_no_initrd_override_setup(char *s)
> {
> acpi_no_initrd_override = 1;
> return 1;