ACPICA: OSL: Add configurability for error message functions.
This patch extends ACPI_HW_DEPENDENT_x mechanism to all error message related functions so that the OSPMs can have full control to configure them into stub functions. This patch doesn't include code for Linux to use this new mechanism, thus no functional change. Lv Zheng. 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>
This commit is contained in:
Родитель
d5caf1cdc4
Коммит
407e22afcf
|
@ -53,6 +53,7 @@ ACPI_MODULE_NAME("utxferror")
|
||||||
* This module is used for the in-kernel ACPICA as well as the ACPICA
|
* This module is used for the in-kernel ACPICA as well as the ACPICA
|
||||||
* tools/applications.
|
* tools/applications.
|
||||||
*/
|
*/
|
||||||
|
#ifndef ACPI_NO_ERROR_MESSAGES /* Entire module */
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
*
|
*
|
||||||
* FUNCTION: acpi_error
|
* FUNCTION: acpi_error
|
||||||
|
@ -249,3 +250,4 @@ acpi_bios_warning(const char *module_name,
|
||||||
}
|
}
|
||||||
|
|
||||||
ACPI_EXPORT_SYMBOL(acpi_bios_warning)
|
ACPI_EXPORT_SYMBOL(acpi_bios_warning)
|
||||||
|
#endif /* ACPI_NO_ERROR_MESSAGES */
|
||||||
|
|
|
@ -240,6 +240,21 @@ ACPI_GLOBAL(u8, acpi_gbl_system_awake_and_running);
|
||||||
|
|
||||||
#endif /* !ACPI_REDUCED_HARDWARE */
|
#endif /* !ACPI_REDUCED_HARDWARE */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Error-message prototypes. All interfaces that use these macros will
|
||||||
|
* be configured out of the ACPICA build if the ACPI_NO_ERROR_MESSAGE flag
|
||||||
|
* is defined.
|
||||||
|
*/
|
||||||
|
#ifndef ACPI_NO_ERROR_MESSAGES
|
||||||
|
#define ACPI_MSG_DEPENDENT_RETURN_VOID(prototype) \
|
||||||
|
prototype;
|
||||||
|
|
||||||
|
#else
|
||||||
|
#define ACPI_MSG_DEPENDENT_RETURN_VOID(prototype) \
|
||||||
|
static ACPI_INLINE prototype {return;}
|
||||||
|
|
||||||
|
#endif /* ACPI_NO_ERROR_MESSAGES */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialization
|
* Initialization
|
||||||
*/
|
*/
|
||||||
|
@ -666,38 +681,42 @@ ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
|
||||||
/*
|
/*
|
||||||
* Error/Warning output
|
* Error/Warning output
|
||||||
*/
|
*/
|
||||||
ACPI_PRINTF_LIKE(3)
|
ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3)
|
||||||
void ACPI_INTERNAL_VAR_XFACE
|
void ACPI_INTERNAL_VAR_XFACE
|
||||||
acpi_error(const char *module_name, u32 line_number, const char *format, ...);
|
acpi_error(const char *module_name,
|
||||||
|
u32 line_number,
|
||||||
ACPI_PRINTF_LIKE(4)
|
const char *format, ...))
|
||||||
void ACPI_INTERNAL_VAR_XFACE
|
ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(4)
|
||||||
acpi_exception(const char *module_name,
|
void ACPI_INTERNAL_VAR_XFACE
|
||||||
u32 line_number, acpi_status status, const char *format, ...);
|
acpi_exception(const char *module_name,
|
||||||
|
u32 line_number,
|
||||||
ACPI_PRINTF_LIKE(3)
|
acpi_status status,
|
||||||
void ACPI_INTERNAL_VAR_XFACE
|
const char *format, ...))
|
||||||
acpi_warning(const char *module_name, u32 line_number, const char *format, ...);
|
ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3)
|
||||||
|
void ACPI_INTERNAL_VAR_XFACE
|
||||||
ACPI_PRINTF_LIKE(3)
|
acpi_warning(const char *module_name,
|
||||||
void ACPI_INTERNAL_VAR_XFACE
|
u32 line_number,
|
||||||
acpi_info(const char *module_name, u32 line_number, const char *format, ...);
|
const char *format, ...))
|
||||||
|
ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3)
|
||||||
ACPI_PRINTF_LIKE(3)
|
void ACPI_INTERNAL_VAR_XFACE
|
||||||
void ACPI_INTERNAL_VAR_XFACE
|
acpi_info(const char *module_name,
|
||||||
acpi_bios_error(const char *module_name,
|
u32 line_number,
|
||||||
u32 line_number, const char *format, ...);
|
const char *format, ...))
|
||||||
|
ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3)
|
||||||
ACPI_PRINTF_LIKE(3)
|
void ACPI_INTERNAL_VAR_XFACE
|
||||||
void ACPI_INTERNAL_VAR_XFACE
|
acpi_bios_error(const char *module_name,
|
||||||
acpi_bios_warning(const char *module_name,
|
u32 line_number,
|
||||||
u32 line_number, const char *format, ...);
|
const char *format, ...))
|
||||||
|
ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3)
|
||||||
|
void ACPI_INTERNAL_VAR_XFACE
|
||||||
|
acpi_bios_warning(const char *module_name,
|
||||||
|
u32 line_number,
|
||||||
|
const char *format, ...))
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Debug output
|
* Debug output
|
||||||
*/
|
*/
|
||||||
#ifdef ACPI_DEBUG_OUTPUT
|
#ifdef ACPI_DEBUG_OUTPUT
|
||||||
|
|
||||||
ACPI_PRINTF_LIKE(6)
|
ACPI_PRINTF_LIKE(6)
|
||||||
void ACPI_INTERNAL_VAR_XFACE
|
void ACPI_INTERNAL_VAR_XFACE
|
||||||
acpi_debug_print(u32 requested_debug_level,
|
acpi_debug_print(u32 requested_debug_level,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче