aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2013-10-28 21:30:22 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-10-31 09:35:46 -0400
commitcd27d79f56e77924b6c66fa4a48306209b93605f (patch)
tree80690951e8171ec765783ca16a0da1dcdfa6f795 /include
parent4506bf2329cab39d41f027cdccb1cf455de2bf79 (diff)
ACPICA: Fix indentation issues for macro invocations.
During the automatic translation of the upstream ACPICA source code into Linux kernel source code some extra white spaces are added by the "indent" program at the beginning of each line which is an invocation of a macro and there is no ";" at the end of the line. For this reason, a new mode has been added to the translation scripts to remove the extra spaces inserted before invoking such macros and add an empty line between the invocations of such macros (like the other function declarations). This new mode is executed after executing "indent" during the Linux release process. Consequently, some existing ACPICA source code in the Linux kernel tree needs to be adjusted to allow the new scripts to work correctly. The affected macros and files are: 1. ACPI_HW_DEPENDENT_RETURN (acpixf.h/acdebug.h/acevents.h): This macro is used as a wrapper for hardware dependent APIs to offer a stub when the reduced hardware is configured during compilation. 2. ACPI_EXPORT_SYMBOL (utglobal.c): This macro is used by Linux to export symbols to be found by Linux modules. All such invocations are well formatted except those exported as global variables. This can help to reduce the source code differences between Linux and upstream ACPICA, and also help to automate the release process. No functional or binary generation changes should result from it. Lv Zheng. [rjw: Changelog] Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/acpi/acpixf.h22
1 files changed, 17 insertions, 5 deletions
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h
index 9759bd5f4777..cb2e74443f35 100644
--- a/include/acpi/acpixf.h
+++ b/include/acpi/acpixf.h
@@ -54,6 +54,7 @@
54#include <acpi/acbuffer.h> 54#include <acpi/acbuffer.h>
55 55
56extern u8 acpi_gbl_permanent_mmap; 56extern u8 acpi_gbl_permanent_mmap;
57extern u32 acpi_rsdt_forced;
57 58
58/* 59/*
59 * Globals that are publically available 60 * Globals that are publically available
@@ -110,7 +111,6 @@ extern u8 acpi_gbl_disable_ssdt_table_load;
110 111
111#endif /* !ACPI_REDUCED_HARDWARE */ 112#endif /* !ACPI_REDUCED_HARDWARE */
112 113
113extern u32 acpi_rsdt_forced;
114/* 114/*
115 * Initialization 115 * Initialization
116 */ 116 */
@@ -130,9 +130,10 @@ acpi_status acpi_terminate(void);
130 * Miscellaneous global interfaces 130 * Miscellaneous global interfaces
131 */ 131 */
132ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_enable(void)) 132ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_enable(void))
133
133ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_disable(void)) 134ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_disable(void))
134#ifdef ACPI_FUTURE_USAGE 135#ifdef ACPI_FUTURE_USAGE
135acpi_status acpi_subsystem_status(void); 136 acpi_status acpi_subsystem_status(void);
136#endif 137#endif
137 138
138#ifdef ACPI_FUTURE_USAGE 139#ifdef ACPI_FUTURE_USAGE
@@ -172,7 +173,7 @@ acpi_status acpi_load_tables(void);
172 */ 173 */
173acpi_status acpi_reallocate_root_table(void); 174acpi_status acpi_reallocate_root_table(void);
174 175
175acpi_status acpi_find_root_pointer(acpi_size *rsdp_address); 176acpi_status acpi_find_root_pointer(acpi_size * rsdp_address);
176 177
177acpi_status acpi_unload_table_id(acpi_owner_id id); 178acpi_status acpi_unload_table_id(acpi_owner_id id);
178 179
@@ -184,6 +185,7 @@ acpi_status
184acpi_get_table_with_size(acpi_string signature, 185acpi_get_table_with_size(acpi_string signature,
185 u32 instance, struct acpi_table_header **out_table, 186 u32 instance, struct acpi_table_header **out_table,
186 acpi_size *tbl_size); 187 acpi_size *tbl_size);
188
187acpi_status 189acpi_status
188acpi_get_table(acpi_string signature, 190acpi_get_table(acpi_string signature,
189 u32 instance, struct acpi_table_header **out_table); 191 u32 instance, struct acpi_table_header **out_table);
@@ -274,13 +276,16 @@ ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
274 acpi_install_sci_handler(acpi_sci_handler 276 acpi_install_sci_handler(acpi_sci_handler
275 address, 277 address,
276 void *context)) 278 void *context))
279
277ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status 280ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
278 acpi_remove_sci_handler(acpi_sci_handler 281 acpi_remove_sci_handler(acpi_sci_handler
279 address)) 282 address))
283
280ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status 284ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
281 acpi_install_global_event_handler 285 acpi_install_global_event_handler
282 (acpi_gbl_event_handler handler, 286 (acpi_gbl_event_handler handler,
283 void *context)) 287 void *context))
288
284ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status 289ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
285 acpi_install_fixed_event_handler(u32 290 acpi_install_fixed_event_handler(u32
286 acpi_event, 291 acpi_event,
@@ -288,10 +293,12 @@ ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
288 handler, 293 handler,
289 void 294 void
290 *context)) 295 *context))
296
291ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status 297ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
292 acpi_remove_fixed_event_handler(u32 acpi_event, 298 acpi_remove_fixed_event_handler(u32 acpi_event,
293 acpi_event_handler 299 acpi_event_handler
294 handler)) 300 handler))
301
295ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status 302ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
296 acpi_install_gpe_handler(acpi_handle 303 acpi_install_gpe_handler(acpi_handle
297 gpe_device, 304 gpe_device,
@@ -300,6 +307,7 @@ ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
300 acpi_gpe_handler 307 acpi_gpe_handler
301 address, 308 address,
302 void *context)) 309 void *context))
310
303ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status 311ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
304 acpi_remove_gpe_handler(acpi_handle gpe_device, 312 acpi_remove_gpe_handler(acpi_handle gpe_device,
305 u32 gpe_number, 313 u32 gpe_number,
@@ -336,6 +344,7 @@ acpi_status acpi_install_interface_handler(acpi_interface_handler handler);
336ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status 344ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
337 acpi_acquire_global_lock(u16 timeout, 345 acpi_acquire_global_lock(u16 timeout,
338 u32 *handle)) 346 u32 *handle))
347
339ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status 348ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
340 acpi_release_global_lock(u32 handle)) 349 acpi_release_global_lock(u32 handle))
341 350
@@ -362,6 +371,7 @@ ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
362 acpi_get_event_status(u32 event, 371 acpi_get_event_status(u32 event,
363 acpi_event_status 372 acpi_event_status
364 *event_status)) 373 *event_status))
374
365/* 375/*
366 * General Purpose Event (GPE) Interfaces 376 * General Purpose Event (GPE) Interfaces
367 */ 377 */
@@ -392,10 +402,12 @@ ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
392 parent_device, 402 parent_device,
393 acpi_handle gpe_device, 403 acpi_handle gpe_device,
394 u32 gpe_number)) 404 u32 gpe_number))
405
395ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status 406ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
396 acpi_set_gpe_wake_mask(acpi_handle gpe_device, 407 acpi_set_gpe_wake_mask(acpi_handle gpe_device,
397 u32 gpe_number, 408 u32 gpe_number,
398 u8 action)) 409 u8 action))
410
399ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status 411ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
400 acpi_get_gpe_status(acpi_handle gpe_device, 412 acpi_get_gpe_status(acpi_handle gpe_device,
401 u32 gpe_number, 413 u32 gpe_number,
@@ -417,6 +429,7 @@ ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
417 *gpe_block_address, 429 *gpe_block_address,
418 u32 register_count, 430 u32 register_count,
419 u32 interrupt_number)) 431 u32 interrupt_number))
432
420ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status 433ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
421 acpi_remove_gpe_block(acpi_handle gpe_device)) 434 acpi_remove_gpe_block(acpi_handle gpe_device))
422 435
@@ -491,7 +504,7 @@ ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
491 * Sleep/Wake interfaces 504 * Sleep/Wake interfaces
492 */ 505 */
493acpi_status 506acpi_status
494acpi_get_sleep_type_data(u8 sleep_state, u8 * slp_typ_a, u8 * slp_typ_b); 507acpi_get_sleep_type_data(u8 sleep_state, u8 *slp_typ_a, u8 *slp_typ_b);
495 508
496acpi_status acpi_enter_sleep_state_prep(u8 sleep_state); 509acpi_status acpi_enter_sleep_state_prep(u8 sleep_state);
497 510
@@ -506,7 +519,6 @@ acpi_status acpi_leave_sleep_state(u8 sleep_state);
506ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status 519ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
507 acpi_set_firmware_waking_vector(u32 520 acpi_set_firmware_waking_vector(u32
508 physical_address)) 521 physical_address))
509
510#if ACPI_MACHINE_WIDTH == 64 522#if ACPI_MACHINE_WIDTH == 64
511ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status 523ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
512 acpi_set_firmware_waking_vector64(u64 524 acpi_set_firmware_waking_vector64(u64