Skip to contentSkip to conversation

#ifdef ACPI_FUTURE_USAGE acpi_ut_create_pkg_state_and_push

PATCH Applied Adrian Bunk 2 participants 2 messages Jan 27, 2005 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 #ifdef ACPI_FUTURE_USAGE acpi_ut_create_pkg_state_and_push

The prototype of the unused global function acpi_ut_create_pkg_state_and_push was already #ifdef ACPI_FUTURE_USAGE'd, but the actual function wasn't.

Most likely this was a bug in my patch that added
ACPI_FUTURE_USAGE.

drivers/acpi/utilities/utmisc.c renamed from drivers/acpi/utilities/utmisc.c.old +2 -2
@@ -872,7 +885,7 @@
  * DESCRIPTION: Create a new state and push it
  *
  ******************************************************************************/
-
+#ifdef ACPI_FUTURE_USAGE
 acpi_status
 acpi_ut_create_pkg_state_and_push (
 	void                            *internal_object,
@@ -894,7 +907,7 @@
 	acpi_ut_push_generic_state (state_list, state);
 	return (AE_OK);
 }
-
+#endif  /*  ACPI_FUTURE_USAGE  */
 
 /*******************************************************************************
  *
Applied
#1 lore raw

Applied.

thanks,
-Len

Quoted 36 lines · Adrian Bunk

The prototype of the unused global function acpi_ut_create_pkg_state_and_push was already #ifdef ACPI_FUTURE_USAGE'd, but the actual function wasn't.

Most likely this was a bug in my patch that added
ACPI_FUTURE_USAGE.

---
linux-2.6.11-rc2-mm1-full/drivers/acpi/utilities/utmisc.c.old

2005-01-26 22:31:11.000000000 +0100
+++ linux-2.6.11-rc2-mm1-full/drivers/acpi/utilities/utmisc.c  
2005-01-26 22:40:40.000000000 +0100
drivers/acpi/utilities/utmisc.c renamed from drivers/acpi/utilities/utmisc.c.old +1 -1
@@ -872,7 +885,7 @@
  * DESCRIPTION: Create a new state and push it
  *
 
 ******************************************************************************/
-
+#ifdef ACPI_FUTURE_USAGE
 acpi_status
 acpi_ut_create_pkg_state_and_push (

void *internal_object,

drivers/acpi/utilities/utmisc.c renamed from drivers/acpi/utilities/utmisc.c.old +1 -1
@@ -894,7 +907,7 @@
        acpi_ut_push_generic_state (state_list, state);
        return (AE_OK);
 }
-
+#endif  /*  ACPI_FUTURE_USAGE  */
 
 /*******************************************************************************
  *