[PATCH v3 1/2] platform/x86/amd: Add missing includes to wbrf

From: Mario Limonciello

Date: Fri Nov 20 2026 - 12:52:57 EST


The WBRF driver relies on <linux/acpi.h> to pull in most of the headers
it uses implicitly. Include the headers for ARRAY_SIZE(), __free(),
__packed, dev_err(), the errno values, EXPORT_SYMBOL_GPL(), the notifier
chain, kfree()/kzalloc_objs(), memcpy(), the integer types and guid_t
directly.

No functional changes.

Signed-off-by: Mario Limonciello <mario.limonciello@xxxxxxx>
---
drivers/platform/x86/amd/wbrf.c | 11 +++++++++++
1 file changed, 11 insertions(+)

diff --git a/drivers/platform/x86/amd/wbrf.c b/drivers/platform/x86/amd/wbrf.c
index 3281357185d1f..e3795f8a9ad84 100644
--- a/drivers/platform/x86/amd/wbrf.c
+++ b/drivers/platform/x86/amd/wbrf.c
@@ -6,6 +6,17 @@

#include <linux/acpi.h>
#include <linux/acpi_amd_wbrf.h>
+#include <linux/array_size.h>
+#include <linux/cleanup.h>
+#include <linux/compiler_attributes.h>
+#include <linux/dev_printk.h>
+#include <linux/errno.h>
+#include <linux/export.h>
+#include <linux/notifier.h>
+#include <linux/slab.h>
+#include <linux/string.h>
+#include <linux/types.h>
+#include <linux/uuid.h>

/*
* Functions bit vector for WBRF method

--
2.43.0