X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Facpi%2Fdispatcher%2Fdswstate.c;h=e555b3fbd5e53ca24794f2daa97e73e06e704102;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=81c6b46acda065b8f94785e2a82f41321fcfc42b;hpb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;p=linux-2.6.git diff --git a/drivers/acpi/dispatcher/dswstate.c b/drivers/acpi/dispatcher/dswstate.c index 81c6b46ac..e555b3fbd 100644 --- a/drivers/acpi/dispatcher/dswstate.c +++ b/drivers/acpi/dispatcher/dswstate.c @@ -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