Arnd Bergmann
39a12a9ba8
ACPI: disable -Wstringop-truncation
...
[ Upstream commit a3403d304708f60565582d60af4316289d0316a0 ]
gcc -Wstringop-truncation warns about copying a string that results in a
missing nul termination:
drivers/acpi/acpica/tbfind.c: In function 'acpi_tb_find_table':
drivers/acpi/acpica/tbfind.c:60:9: error: 'strncpy' specified bound 6 equals destination size [-Werror=stringop-truncation]
60 | strncpy(header.oem_id, oem_id, ACPI_OEM_ID_SIZE);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/acpi/acpica/tbfind.c:61:9: error: 'strncpy' specified bound 8 equals destination size [-Werror=stringop-truncation]
61 | strncpy(header.oem_table_id, oem_table_id, ACPI_OEM_TABLE_ID_SIZE);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The code works as intended, and the warning could be addressed by using
a memcpy(), but turning the warning off for this file works equally well
and may be easier to merge.
Fixes: 47c08729bf1c ("ACPICA: Fix for LoadTable operator, input strings")
Link: https://lore.kernel.org/lkml/CAJZ5v0hoUfv54KW7y4223Mn9E7D4xvR7whRFNLTBqCZMUxT50Q@mail.gmail.com/#t
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-12 11:03:10 +02:00
..
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2023-06-28 11:12:22 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2018-03-18 19:08:05 +01:00
2019-10-28 22:12:46 +01:00
2020-06-05 13:34:23 +02:00
2020-10-08 18:03:55 +02:00
2019-10-28 22:12:46 +01:00
2022-04-13 20:24:57 +02:00
2021-01-22 15:51:53 +01:00
2020-10-08 18:03:55 +02:00
2024-04-10 16:28:22 +02:00
2021-01-18 16:01:10 +01:00
2019-08-21 00:00:37 +02:00
2019-02-18 11:21:10 +01:00
2018-03-18 19:08:05 +01:00
2020-03-30 14:52:32 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-12-31 13:32:57 +01:00
2018-03-18 19:08:05 +01:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2018-12-13 22:40:51 +01:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2023-05-24 17:32:35 +01:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2018-03-18 19:08:05 +01:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-05-21 18:02:26 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2018-03-18 19:08:05 +01:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2023-03-10 09:32:51 +01:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2024-06-12 11:03:10 +02:00
2021-03-24 14:50:54 +01:00
2020-10-08 18:03:56 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2019-07-04 00:59:43 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2020-03-30 14:52:33 +02:00
2019-04-09 10:05:11 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2023-03-10 09:32:52 +01:00
2018-07-09 11:14:45 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2018-03-18 19:08:05 +01:00
2022-04-13 20:24:57 +02:00
2020-10-08 18:03:55 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2023-09-23 11:11:00 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2018-03-18 19:08:05 +01:00
2021-04-07 19:09:01 +02:00
2019-10-28 22:12:46 +01:00
2021-04-07 19:09:01 +02:00
2021-04-07 19:09:01 +02:00
2021-04-07 19:09:01 +02:00
2018-03-18 19:08:05 +01:00
2019-02-24 21:12:01 +01:00
2021-04-07 19:09:01 +02:00
2018-03-18 19:08:05 +01:00
2021-04-07 19:09:01 +02:00
2021-04-07 19:09:01 +02:00
2018-03-18 19:08:05 +01:00
2019-04-09 10:08:28 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-12-31 13:31:59 +01:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2021-12-27 17:01:28 +01:00
2019-08-21 00:00:36 +02:00
2022-04-13 20:24:57 +02:00
2018-03-18 19:08:05 +01:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2018-03-18 19:08:05 +01:00
2019-04-09 10:08:28 +02:00
2018-05-10 17:18:45 +02:00
2018-03-18 19:08:05 +01:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2019-08-21 00:00:36 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2021-04-07 19:09:01 +02:00
2021-04-07 19:09:01 +02:00
2018-03-18 19:08:05 +01:00
2019-04-09 11:24:48 +02:00
2021-01-22 15:51:53 +01:00
2018-08-14 23:49:13 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2022-04-13 20:24:57 +02:00
2019-01-15 18:04:02 +01:00
2022-04-13 20:24:57 +02:00
2018-03-18 19:08:05 +01:00