Arnd Bergmann
673f7120a6
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:11:40 +02:00
..
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-07-10 18:48:15 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-07-10 18:33:47 +02:00
2023-06-15 18:05:19 +02:00
2023-04-06 20:29:11 +02:00
2023-07-10 18:33:47 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-07-10 15:21:03 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:12 +02:00
2023-07-10 18:48:15 +02: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
2023-04-06 20:29:11 +02:00
2023-07-10 18:48:15 +02:00
2020-10-08 18:03:55 +02:00
2024-04-10 16:35:42 +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
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2018-03-18 19:08:05 +01:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2018-12-13 22:40:51 +01:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-07-10 18:49:16 +02:00
2023-04-25 18:37:41 -07:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2018-03-18 19:08:05 +01:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-07-10 15:21:03 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2018-03-18 19:08:05 +01:00
2022-04-13 20:24:57 +02:00
2023-04-25 18:37:41 -07:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2024-06-12 11:11:40 +02:00
2021-03-24 14:50:54 +01:00
2020-10-08 18:03:56 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2019-07-04 00:59:43 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2020-03-30 14:52:33 +02:00
2019-04-09 10:05:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2018-07-09 11:14:45 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2018-03-18 19:08:05 +01:00
2023-04-06 20:29:11 +02:00
2020-10-08 18:03:55 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-07-10 18:49:16 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2019-10-28 22:12:46 +01:00
2021-04-07 19:09:01 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2018-03-18 19:08:05 +01:00
2019-02-24 21:12:01 +01:00
2023-04-06 20:29:11 +02:00
2018-03-18 19:08:05 +01:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2018-03-18 19:08:05 +01:00
2019-04-09 10:08:28 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-07-10 15:21:03 +02:00
2023-04-06 20:29:11 +02:00
2021-12-27 17:01:28 +01:00
2019-08-21 00:00:36 +02:00
2023-04-06 20:29:11 +02:00
2018-03-18 19:08:05 +01:00
2023-04-25 18:37:41 -07:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +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
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2019-08-21 00:00:36 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2018-03-18 19:08:05 +01:00
2022-10-28 17:28:23 +02:00
2021-01-22 15:51:53 +01:00
2018-08-14 23:49:13 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2023-04-06 20:29:11 +02:00
2019-01-15 18:04:02 +01:00
2023-04-06 20:29:11 +02:00
2018-03-18 19:08:05 +01:00