diff mbox series

ACPI: PRM: Fix missing guid_t declaration in linux/prmt.h

Message ID 20250107161923.3387552-1-rrichter@amd.com
State New
Headers show
Series ACPI: PRM: Fix missing guid_t declaration in linux/prmt.h | expand

Commit Message

Robert Richter Jan. 7, 2025, 4:19 p.m. UTC
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.

Cc: Yazen Ghannam <Yazen.Ghannam@amd.com>
Cc: John Allen <john.allen@amd.com>
Cc: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Robert Richter <rrichter@amd.com>
---
 include/linux/prmt.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Yazen Ghannam Jan. 8, 2025, 3:10 p.m. UTC | #1
On Tue, Jan 07, 2025 at 05:19:22PM +0100, Robert Richter wrote:
> 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.
> 
> Cc: Yazen Ghannam <Yazen.Ghannam@amd.com>
> Cc: John Allen <john.allen@amd.com>
> Cc: Borislav Petkov (AMD) <bp@alien8.de>
> Signed-off-by: Robert Richter <rrichter@amd.com>
> ---
>  include/linux/prmt.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/include/linux/prmt.h b/include/linux/prmt.h
> index 9c094294403f..c53ab287e932 100644
> --- a/include/linux/prmt.h
> +++ b/include/linux/prmt.h
> @@ -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);
> -- 

Hi Robert,

This looks correct. But can you please share how you've encountered the
issue?

Thanks,
Yazen
diff mbox series

Patch

diff --git a/include/linux/prmt.h b/include/linux/prmt.h
index 9c094294403f..c53ab287e932 100644
--- a/include/linux/prmt.h
+++ b/include/linux/prmt.h
@@ -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);