]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ACPI: PRM: Fix missing guid_t declaration in linux/prmt.h
authorRobert Richter <rrichter@amd.com>
Tue, 7 Jan 2025 16:19:22 +0000 (17:19 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 14 Jan 2025 17:24:33 +0000 (18:24 +0100)
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>
include/linux/prmt.h

index 9c094294403ff488a03f50d90bab3ddc8254575f..c53ab287e932008c698b9b800166bc66189aabcd 100644 (file)
@@ -1,5 +1,7 @@
 /* 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);