[-mm patch] drivers/acpi/: make needlessly global functions static

DORMANTno replies

From: Adrian Bunk <hidden>
Date: 2005-09-02 21:16:58
Also in: lkml

This patch makes some needlesly global functions static.


Signed-off-by: Adrian Bunk <redacted>

---

 drivers/acpi/osl.c            |    2 +-
 drivers/acpi/pci_bind.c       |    3 ++-
 drivers/acpi/processor_core.c |    2 +-
 drivers/acpi/scan.c           |    2 +-
 4 files changed, 5 insertions(+), 4 deletions(-)
--- linux-2.6.13-mm1-full/drivers/acpi/osl.c.old	2005-09-02 22:54:33.000000000 +0200
+++ linux-2.6.13-mm1-full/drivers/acpi/osl.c	2005-09-02 22:54:46.000000000 +0200
@@ -1038,7 +1038,7 @@
 
 __setup("acpi_wake_gpes_always_on", acpi_wake_gpes_always_on_setup);
 
-int __init acpi_hotkey_setup(char *str)
+static int __init acpi_hotkey_setup(char *str)
 {
 	acpi_specific_hotkey_enabled = FALSE;
 	return 1;
--- linux-2.6.13-mm1-full/drivers/acpi/pci_bind.c.old	2005-09-02 22:57:23.000000000 +0200
+++ linux-2.6.13-mm1-full/drivers/acpi/pci_bind.c	2005-09-02 22:57:45.000000000 +0200
@@ -44,7 +44,8 @@
 	struct pci_dev *dev;
 };
 
-void acpi_pci_data_handler(acpi_handle handle, u32 function, void *context)
+static void acpi_pci_data_handler(acpi_handle handle, u32 function,
+				  void *context)
 {
 	ACPI_FUNCTION_TRACE("acpi_pci_data_handler");
 
--- linux-2.6.13-mm1-full/drivers/acpi/processor_core.c.old	2005-09-02 22:59:06.000000000 +0200
+++ linux-2.6.13-mm1-full/drivers/acpi/processor_core.c	2005-09-02 22:59:18.000000000 +0200
@@ -221,7 +221,7 @@
 	return_VALUE(0);
 }
 
-int acpi_processor_errata(struct acpi_processor *pr)
+static int acpi_processor_errata(struct acpi_processor *pr)
 {
 	int result = 0;
 	struct pci_dev *dev = NULL;
--- linux-2.6.13-mm1-full/drivers/acpi/scan.c.old	2005-09-02 22:59:48.000000000 +0200
+++ linux-2.6.13-mm1-full/drivers/acpi/scan.c	2005-09-02 23:00:02.000000000 +0200
@@ -527,7 +527,7 @@
 	return_VALUE(0);
 }
 
-int acpi_start_single_object(struct acpi_device *device)
+static int acpi_start_single_object(struct acpi_device *device)
 {
 	int result = 0;
 	struct acpi_driver *driver;



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help