vserver 1.9.5.x5
[linux-2.6.git] / drivers / acpi / dispatcher / dswstate.c
index 81c6b46..e555b3f 100644 (file)
@@ -5,7 +5,7 @@
  *****************************************************************************/
 
 /*
- * Copyright (C) 2000 - 2004, R. Byron Moore
+ * Copyright (C) 2000 - 2005, R. Byron Moore
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -51,6 +51,8 @@
         ACPI_MODULE_NAME    ("dswstate")
 
 
+#ifdef ACPI_FUTURE_USAGE
+
 /*******************************************************************************
  *
  * FUNCTION:    acpi_ds_result_insert
@@ -174,6 +176,8 @@ acpi_ds_result_remove (
        return (AE_OK);
 }
 
+#endif  /*  ACPI_FUTURE_USAGE  */
+
 
 /*******************************************************************************
  *
@@ -445,7 +449,7 @@ acpi_ds_result_stack_pop (
  *              Should be used with great care, if at all!
  *
  ******************************************************************************/
-
+#ifdef ACPI_FUTURE_USAGE
 acpi_status
 acpi_ds_obj_stack_delete_all (
        struct acpi_walk_state          *walk_state)
@@ -467,6 +471,7 @@ acpi_ds_obj_stack_delete_all (
 
        return_ACPI_STATUS (AE_OK);
 }
+#endif  /*  ACPI_FUTURE_USAGE  */
 
 
 /*******************************************************************************
@@ -687,7 +692,7 @@ acpi_ds_obj_stack_pop_and_delete (
  *              be within the range of the current stack pointer.
  *
  ******************************************************************************/
-
+#ifdef ACPI_FUTURE_USAGE
 void *
 acpi_ds_obj_stack_get_value (
        u32                             index,
@@ -712,6 +717,7 @@ acpi_ds_obj_stack_get_value (
        return_PTR (walk_state->operands[(acpi_native_uint)(walk_state->num_operands - 1) -
                          index]);
 }
+#endif  /*  ACPI_FUTURE_USAGE  */
 
 
 /*******************************************************************************
@@ -867,6 +873,7 @@ acpi_ds_create_walk_state (
 
        status = acpi_ds_result_stack_push (walk_state);
        if (ACPI_FAILURE (status)) {
+               acpi_ut_release_to_cache (ACPI_MEM_LIST_WALK, walk_state);
                return_PTR (NULL);
        }
 
@@ -1064,6 +1071,7 @@ acpi_ds_delete_walk_state (
 }
 
 
+#ifdef ACPI_ENABLE_OBJECT_CACHE
 /******************************************************************************
  *
  * FUNCTION:    acpi_ds_delete_walk_state_cache
@@ -1087,5 +1095,6 @@ acpi_ds_delete_walk_state_cache (
        acpi_ut_delete_generic_cache (ACPI_MEM_LIST_WALK);
        return_VOID;
 }
+#endif