[PATCH 2/2] ACPI: sysfs: apply ACPI_NONSTRING annotation
From: Ahmed Salem
Date: Fri Apr 04 2025 - 04:25:40 EST
Mark ACPI_COPY_NAMESEG() destination char arrays with the ACPI_NONSTRING
annotation.
Signed-off-by: Ahmed Salem <x0rw3ll@xxxxxxxxx>
diff --git a/drivers/acpi/sysfs.c b/drivers/acpi/sysfs.c
index a48ebbf768f9..8a5af261129a 100644
--- a/drivers/acpi/sysfs.c
+++ b/drivers/acpi/sysfs.c
@@ -307,9 +307,9 @@ static struct kobject *hotplug_kobj;
struct acpi_table_attr {
struct bin_attribute attr;
- char name[ACPI_NAMESEG_SIZE];
+ char name[ACPI_NAMESEG_SIZE] ACPI_NONSTRING;
int instance;
- char filename[ACPI_NAMESEG_SIZE+ACPI_INST_SIZE];
+ char filename[ACPI_NAMESEG_SIZE+ACPI_INST_SIZE] ACPI_NONSTRING;
struct list_head node;
};
--
2.47.2