diff options
Diffstat (limited to 'drivers/acpi/utilities/utdebug.c')
-rw-r--r-- | drivers/acpi/utilities/utdebug.c | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/drivers/acpi/utilities/utdebug.c b/drivers/acpi/utilities/utdebug.c index 6e92b2a3c0fd..a8c350643d57 100644 --- a/drivers/acpi/utilities/utdebug.c +++ b/drivers/acpi/utilities/utdebug.c | |||
@@ -41,8 +41,6 @@ | |||
41 | * POSSIBILITY OF SUCH DAMAGES. | 41 | * POSSIBILITY OF SUCH DAMAGES. |
42 | */ | 42 | */ |
43 | 43 | ||
44 | #include <linux/module.h> | ||
45 | |||
46 | #include <acpi/acpi.h> | 44 | #include <acpi/acpi.h> |
47 | 45 | ||
48 | #define _COMPONENT ACPI_UTILITIES | 46 | #define _COMPONENT ACPI_UTILITIES |
@@ -164,7 +162,7 @@ acpi_ut_debug_print(u32 requested_debug_level, | |||
164 | const char *function_name, | 162 | const char *function_name, |
165 | char *module_name, u32 component_id, char *format, ...) | 163 | char *module_name, u32 component_id, char *format, ...) |
166 | { | 164 | { |
167 | u32 thread_id; | 165 | acpi_thread_id thread_id; |
168 | va_list args; | 166 | va_list args; |
169 | 167 | ||
170 | /* | 168 | /* |
@@ -179,7 +177,6 @@ acpi_ut_debug_print(u32 requested_debug_level, | |||
179 | * Thread tracking and context switch notification | 177 | * Thread tracking and context switch notification |
180 | */ | 178 | */ |
181 | thread_id = acpi_os_get_thread_id(); | 179 | thread_id = acpi_os_get_thread_id(); |
182 | |||
183 | if (thread_id != acpi_gbl_prev_thread_id) { | 180 | if (thread_id != acpi_gbl_prev_thread_id) { |
184 | if (ACPI_LV_THREADS & acpi_dbg_level) { | 181 | if (ACPI_LV_THREADS & acpi_dbg_level) { |
185 | acpi_os_printf | 182 | acpi_os_printf |
@@ -208,7 +205,7 @@ acpi_ut_debug_print(u32 requested_debug_level, | |||
208 | acpi_os_vprintf(format, args); | 205 | acpi_os_vprintf(format, args); |
209 | } | 206 | } |
210 | 207 | ||
211 | EXPORT_SYMBOL(acpi_ut_debug_print); | 208 | ACPI_EXPORT_SYMBOL(acpi_ut_debug_print) |
212 | 209 | ||
213 | /******************************************************************************* | 210 | /******************************************************************************* |
214 | * | 211 | * |
@@ -228,7 +225,6 @@ EXPORT_SYMBOL(acpi_ut_debug_print); | |||
228 | * debug_print so that the same macros can be used. | 225 | * debug_print so that the same macros can be used. |
229 | * | 226 | * |
230 | ******************************************************************************/ | 227 | ******************************************************************************/ |
231 | |||
232 | void ACPI_INTERNAL_VAR_XFACE | 228 | void ACPI_INTERNAL_VAR_XFACE |
233 | acpi_ut_debug_print_raw(u32 requested_debug_level, | 229 | acpi_ut_debug_print_raw(u32 requested_debug_level, |
234 | u32 line_number, | 230 | u32 line_number, |
@@ -246,7 +242,7 @@ acpi_ut_debug_print_raw(u32 requested_debug_level, | |||
246 | acpi_os_vprintf(format, args); | 242 | acpi_os_vprintf(format, args); |
247 | } | 243 | } |
248 | 244 | ||
249 | EXPORT_SYMBOL(acpi_ut_debug_print_raw); | 245 | ACPI_EXPORT_SYMBOL(acpi_ut_debug_print_raw) |
250 | 246 | ||
251 | /******************************************************************************* | 247 | /******************************************************************************* |
252 | * | 248 | * |
@@ -263,7 +259,6 @@ EXPORT_SYMBOL(acpi_ut_debug_print_raw); | |||
263 | * set in debug_level | 259 | * set in debug_level |
264 | * | 260 | * |
265 | ******************************************************************************/ | 261 | ******************************************************************************/ |
266 | |||
267 | void | 262 | void |
268 | acpi_ut_trace(u32 line_number, | 263 | acpi_ut_trace(u32 line_number, |
269 | const char *function_name, char *module_name, u32 component_id) | 264 | const char *function_name, char *module_name, u32 component_id) |
@@ -277,7 +272,7 @@ acpi_ut_trace(u32 line_number, | |||
277 | component_id, "%s\n", acpi_gbl_fn_entry_str); | 272 | component_id, "%s\n", acpi_gbl_fn_entry_str); |
278 | } | 273 | } |
279 | 274 | ||
280 | EXPORT_SYMBOL(acpi_ut_trace); | 275 | ACPI_EXPORT_SYMBOL(acpi_ut_trace) |
281 | 276 | ||
282 | /******************************************************************************* | 277 | /******************************************************************************* |
283 | * | 278 | * |
@@ -295,7 +290,6 @@ EXPORT_SYMBOL(acpi_ut_trace); | |||
295 | * set in debug_level | 290 | * set in debug_level |
296 | * | 291 | * |
297 | ******************************************************************************/ | 292 | ******************************************************************************/ |
298 | |||
299 | void | 293 | void |
300 | acpi_ut_trace_ptr(u32 line_number, | 294 | acpi_ut_trace_ptr(u32 line_number, |
301 | const char *function_name, | 295 | const char *function_name, |
@@ -402,7 +396,7 @@ acpi_ut_exit(u32 line_number, | |||
402 | acpi_gbl_nesting_level--; | 396 | acpi_gbl_nesting_level--; |
403 | } | 397 | } |
404 | 398 | ||
405 | EXPORT_SYMBOL(acpi_ut_exit); | 399 | ACPI_EXPORT_SYMBOL(acpi_ut_exit) |
406 | 400 | ||
407 | /******************************************************************************* | 401 | /******************************************************************************* |
408 | * | 402 | * |
@@ -420,7 +414,6 @@ EXPORT_SYMBOL(acpi_ut_exit); | |||
420 | * set in debug_level. Prints exit status also. | 414 | * set in debug_level. Prints exit status also. |
421 | * | 415 | * |
422 | ******************************************************************************/ | 416 | ******************************************************************************/ |
423 | |||
424 | void | 417 | void |
425 | acpi_ut_status_exit(u32 line_number, | 418 | acpi_ut_status_exit(u32 line_number, |
426 | const char *function_name, | 419 | const char *function_name, |
@@ -444,7 +437,7 @@ acpi_ut_status_exit(u32 line_number, | |||
444 | acpi_gbl_nesting_level--; | 437 | acpi_gbl_nesting_level--; |
445 | } | 438 | } |
446 | 439 | ||
447 | EXPORT_SYMBOL(acpi_ut_status_exit); | 440 | ACPI_EXPORT_SYMBOL(acpi_ut_status_exit) |
448 | 441 | ||
449 | /******************************************************************************* | 442 | /******************************************************************************* |
450 | * | 443 | * |
@@ -462,7 +455,6 @@ EXPORT_SYMBOL(acpi_ut_status_exit); | |||
462 | * set in debug_level. Prints exit value also. | 455 | * set in debug_level. Prints exit value also. |
463 | * | 456 | * |
464 | ******************************************************************************/ | 457 | ******************************************************************************/ |
465 | |||
466 | void | 458 | void |
467 | acpi_ut_value_exit(u32 line_number, | 459 | acpi_ut_value_exit(u32 line_number, |
468 | const char *function_name, | 460 | const char *function_name, |
@@ -477,7 +469,7 @@ acpi_ut_value_exit(u32 line_number, | |||
477 | acpi_gbl_nesting_level--; | 469 | acpi_gbl_nesting_level--; |
478 | } | 470 | } |
479 | 471 | ||
480 | EXPORT_SYMBOL(acpi_ut_value_exit); | 472 | ACPI_EXPORT_SYMBOL(acpi_ut_value_exit) |
481 | 473 | ||
482 | /******************************************************************************* | 474 | /******************************************************************************* |
483 | * | 475 | * |
@@ -495,7 +487,6 @@ EXPORT_SYMBOL(acpi_ut_value_exit); | |||
495 | * set in debug_level. Prints exit value also. | 487 | * set in debug_level. Prints exit value also. |
496 | * | 488 | * |
497 | ******************************************************************************/ | 489 | ******************************************************************************/ |
498 | |||
499 | void | 490 | void |
500 | acpi_ut_ptr_exit(u32 line_number, | 491 | acpi_ut_ptr_exit(u32 line_number, |
501 | const char *function_name, | 492 | const char *function_name, |