mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-31 06:09:56 +00:00

Seen the following build error: ./include/linux/prmt.h:5:27: error: unknown type name ‘guid_t’ 5 | int acpi_call_prm_handler(guid_t handler_guid, void *param_buffer); | ^~~~~~ The include file uses guid_t but it is not declared. Include linux/uuid.h to fix this. Signed-off-by: Robert Richter <rrichter@amd.com> Reviewed-by: Yazen Ghannam <yazen.ghannam@amd.com> Link: https://patch.msgid.link/20250107161923.3387552-1-rrichter@amd.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
15 lines
342 B
C
15 lines
342 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#include <linux/uuid.h>
|
|
|
|
#ifdef CONFIG_ACPI_PRMT
|
|
void init_prmt(void);
|
|
int acpi_call_prm_handler(guid_t handler_guid, void *param_buffer);
|
|
#else
|
|
static inline void init_prmt(void) { }
|
|
static inline int acpi_call_prm_handler(guid_t handler_guid, void *param_buffer)
|
|
{
|
|
return -EOPNOTSUPP;
|
|
}
|
|
#endif
|