Mailing List Archive

[-mm patch] drivers/pci/hotplug/acpiphp_glue.c: make a function static
On Sat, Apr 08, 2006 at 03:14:05AM -0700, Andrew Morton wrote:
>...
> Changes since 2.6.17-rc1-mm1:
>...
> +gregkh-pci-acpiphp-configure-_prt-v3.patch
>...
> PCI tree updates
>...

This patch makes the needlessly global acpiphp_bus_trim() static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.17-rc1-mm2-full/drivers/pci/hotplug/acpiphp_glue.c.old 2006-04-09 16:13:00.000000000 +0200
+++ linux-2.6.17-rc1-mm2-full/drivers/pci/hotplug/acpiphp_glue.c 2006-04-09 16:13:13.000000000 +0200
@@ -928,7 +928,7 @@
* @handle: handle to acpi namespace
*
*/
-int acpiphp_bus_trim(acpi_handle handle)
+static int acpiphp_bus_trim(acpi_handle handle)
{
struct acpi_device *device;
int retval;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Re: [-mm patch] drivers/pci/hotplug/acpiphp_glue.c: make a function static [ In reply to ]
At Sun, 9 Apr 2006 16:50:47 +0200,
Adrian Bunk <bunk@stusta.de> wrote:
>
> On Sat, Apr 08, 2006 at 03:14:05AM -0700, Andrew Morton wrote:
> >...
> > Changes since 2.6.17-rc1-mm1:
> >...
> > +gregkh-pci-acpiphp-configure-_prt-v3.patch
> >...
> > PCI tree updates
> >...
>
> This patch makes the needlessly global acpiphp_bus_trim() static.

Good catch. This patch looks good to me.

> Signed-off-by: Adrian Bunk <bunk@stusta.de>

Acked-by: MUNEDA Takahiro <muneda.takahiro@jp.fujitsu.com>

Thanks,
MUNE
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/