Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ACPICA: Apply ACPI_NONSTRING in more places

ACPICA commit 1035a3d453f7dd49a235a59ee84ebda9d2d2f41b

Add ACPI_NONSTRING for destination char arrays without a terminating NUL
character. This is a follow-up to commit 35ad99236f3a ("ACPICA: Apply
ACPI_NONSTRING") where not all instances received the same treatment, in
preparation for replacing strncpy() calls with memcpy()

Link: https://github.com/acpica/acpica/commit/1035a3d4
Signed-off-by: Ahmed Salem <x0rw3ll@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/3833065.MHq7AAxBmi@rjwysocki.net

authored by

Ahmed Salem and committed by
Rafael J. Wysocki
70662db7 64b9dfd0

+6 -6
+1 -1
drivers/acpi/acpica/acdebug.h
··· 37 37 struct acpi_db_execute_walk { 38 38 u32 count; 39 39 u32 max_count; 40 - char name_seg[ACPI_NAMESEG_SIZE + 1]; 40 + char name_seg[ACPI_NAMESEG_SIZE + 1] ACPI_NONSTRING; 41 41 }; 42 42 43 43 #define PARAM_LIST(pl) pl
+3 -3
include/acpi/actbl.h
··· 66 66 ******************************************************************************/ 67 67 68 68 struct acpi_table_header { 69 - char signature[ACPI_NAMESEG_SIZE] __nonstring; /* ASCII table signature */ 69 + char signature[ACPI_NAMESEG_SIZE] ACPI_NONSTRING; /* ASCII table signature */ 70 70 u32 length; /* Length of table in bytes, including this header */ 71 71 u8 revision; /* ACPI Specification minor version number */ 72 72 u8 checksum; /* To make sum of entire table == 0 */ 73 - char oem_id[ACPI_OEM_ID_SIZE]; /* ASCII OEM identification */ 74 - char oem_table_id[ACPI_OEM_TABLE_ID_SIZE]; /* ASCII OEM table identification */ 73 + char oem_id[ACPI_OEM_ID_SIZE] ACPI_NONSTRING; /* ASCII OEM identification */ 74 + char oem_table_id[ACPI_OEM_TABLE_ID_SIZE] ACPI_NONSTRING; /* ASCII OEM table identification */ 75 75 u32 oem_revision; /* OEM revision number */ 76 76 char asl_compiler_id[ACPI_NAMESEG_SIZE]; /* ASCII ASL compiler vendor ID */ 77 77 u32 asl_compiler_revision; /* ASL compiler version */
+1 -1
tools/power/acpi/os_specific/service_layers/oslinuxtbl.c
··· 19 19 typedef struct osl_table_info { 20 20 struct osl_table_info *next; 21 21 u32 instance; 22 - char signature[ACPI_NAMESEG_SIZE]; 22 + char signature[ACPI_NAMESEG_SIZE] ACPI_NONSTRING; 23 23 24 24 } osl_table_info; 25 25
+1 -1
tools/power/acpi/tools/acpidump/apfiles.c
··· 103 103 104 104 int ap_write_to_binary_file(struct acpi_table_header *table, u32 instance) 105 105 { 106 - char filename[ACPI_NAMESEG_SIZE + 16]; 106 + char filename[ACPI_NAMESEG_SIZE + 16] ACPI_NONSTRING; 107 107 char instance_str[16]; 108 108 ACPI_FILE file; 109 109 acpi_size actual;