diff mbox series

[2/2] ACPI: sysfs: apply ACPI_NONSTRING annotation

Message ID dcc3a018fb28899b277df2e154740d59d4e404af.1743754416.git.x0rw3ll@gmail.com
State New
Headers show
Series ACPI: apply ACPI_NONSTRING annotations | expand

Commit Message

Ahmed Salem April 4, 2025, 8:25 a.m. UTC
Mark ACPI_COPY_NAMESEG() destination char arrays with the ACPI_NONSTRING
annotation.

Signed-off-by: Ahmed Salem <x0rw3ll@gmail.com>
diff mbox series

Patch

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;
 };