Geert Uytterhoeven
c6dbab4632
drm/radeon/r100: Handle unknown family in r100_cp_init_microcode()
...
With -Werror:
In function ‘r100_cp_init_microcode’,
inlined from ‘r100_cp_init’ at drivers/gpu/drm/radeon/r100.c:1136:7:
include/linux/printk.h:465:44: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
465 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
| ^
include/linux/printk.h:437:17: note: in definition of macro ‘printk_index_wrap’
437 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~~~~
include/linux/printk.h:508:9: note: in expansion of macro ‘printk’
508 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
drivers/gpu/drm/radeon/r100.c:1062:17: note: in expansion of macro ‘pr_err’
1062 | pr_err("radeon_cp: Failed to load firmware \"%s\"\n", fw_name);
| ^~~~~~
Fix this by converting the if/else if/... construct into a proper
switch() statement with a default to handle the error case.
As a bonus, the generated code is ca. 100 bytes smaller (with gcc 11.4.0
targeting arm32).
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-08-13 10:27:15 -04:00
..
2022-06-21 17:54:53 -04:00
2024-01-18 15:39:02 -05:00
2024-01-15 18:35:37 -05:00
2024-01-15 18:35:37 -05:00
2024-01-15 18:35:37 -05:00
2024-01-15 18:35:37 -05:00
2024-07-23 17:31:59 -04:00
2024-01-15 18:35:37 -05:00
2023-11-03 11:59:51 -04:00
2024-01-18 15:39:11 -05:00
2019-06-10 22:30:24 +02:00
2022-04-11 13:50:35 -04:00
2024-01-18 15:39:42 -05:00
2024-01-18 15:40:19 -05:00
2019-06-10 22:30:24 +02:00
2022-04-26 11:43:51 -04:00
2017-12-20 12:00:22 -05:00
2020-11-16 15:56:35 -05:00
2024-07-23 17:31:59 -04:00
2020-11-16 15:56:35 -05:00
2024-01-18 15:40:15 -05:00
2024-01-18 15:40:13 -05:00
2023-11-17 09:29:54 -05:00
2023-07-27 14:47:29 -04:00
2023-06-09 10:44:47 -04:00
2023-12-13 15:28:31 -05:00
2024-07-23 17:31:59 -04:00
2020-11-16 15:56:35 -05:00
2022-04-19 13:58:32 -04:00
2024-01-18 15:40:32 -05:00
2020-11-16 15:56:34 -05:00
2024-05-23 14:37:24 +03:00
2020-11-16 15:56:34 -05:00
2024-01-18 15:39:55 -05:00
2024-01-18 15:40:17 -05:00
2024-07-23 17:31:59 -04:00
2021-05-25 23:47:24 -04:00
2024-05-02 17:58:23 +02:00
2024-01-18 15:38:42 -05:00
2024-01-18 15:39:53 -05:00
2023-03-31 11:18:42 -04:00
2018-10-15 16:16:12 -05:00
2020-11-16 15:56:34 -05:00
2024-01-22 16:56:28 -05:00
2024-01-18 15:38:59 -05:00
2024-07-23 17:31:59 -04:00
2020-11-16 15:56:34 -05:00
2024-01-18 15:40:36 -05:00
2024-06-05 10:58:19 -04:00
2019-06-10 22:30:24 +02:00
2024-08-13 10:27:15 -04:00
2019-12-03 16:26:59 -05:00
2024-01-18 15:39:50 -05:00
2024-07-23 17:31:59 -04:00
2024-07-23 17:31:59 -04:00
2024-07-23 17:31:59 -04:00
2024-07-23 17:31:59 -04:00
2020-11-16 15:56:34 -05:00
2024-07-23 17:31:59 -04:00
2024-01-18 15:38:52 -05:00
2024-07-23 17:31:59 -04:00
2018-08-27 11:10:19 -05:00
2024-07-23 17:31:59 -04:00
2020-11-16 15:56:35 -05:00
2024-07-23 17:31:59 -04:00
2023-06-15 11:06:58 -04:00
2024-07-23 17:31:59 -04:00
2024-01-18 15:39:16 -05:00
2021-05-25 23:47:30 -04:00
2024-07-27 17:35:10 -04:00
2020-11-16 15:56:34 -05:00
2024-01-18 15:38:46 -05:00
2024-07-23 17:31:59 -04:00
2024-01-18 15:39:27 -05:00
2019-08-13 09:09:30 +02:00
2023-09-28 16:54:54 -05:00
2019-12-05 08:44:28 +01:00
2024-07-27 17:35:10 -04:00
2024-07-27 17:35:10 -04:00
2023-04-21 08:50:21 -04:00
2020-05-19 22:31:34 +01:00
2024-07-23 17:31:59 -04:00
2020-11-16 15:56:33 -05:00
2024-07-27 17:35:10 -04:00
2023-01-18 10:00:03 +01:00
2024-07-23 17:31:59 -04:00
2023-12-06 10:08:17 +01:00
2024-05-23 14:37:24 +03:00
2024-07-23 17:31:59 -04:00
2024-07-23 17:31:59 -04:00
2023-07-25 13:37:05 -04:00
2024-08-06 11:11:00 -04:00
2024-07-23 17:31:59 -04:00
2024-07-23 17:31:59 -04:00
2024-07-23 17:31:59 -04:00
2024-07-23 17:31:59 -04:00
2021-08-10 20:13:49 +02:00
2023-01-18 09:25:31 +01:00
2023-08-15 18:08:27 -04:00
2020-11-16 15:56:33 -05:00
2023-07-27 14:47:34 -04:00
2022-04-07 12:53:54 +02:00
2024-07-27 17:35:10 -04:00
2024-08-06 11:11:00 -04:00
2023-03-01 17:18:19 +01:00
2024-07-23 17:31:59 -04:00
2020-11-16 15:56:33 -05:00
2024-03-11 13:33:50 +01:00
2020-11-16 15:56:35 -05:00
2024-07-23 17:31:59 -04:00
2023-09-07 17:45:34 +02:00
2023-03-01 17:18:19 +01:00
2022-05-03 16:08:48 +10:00
2023-07-12 11:12:09 -04:00
2019-06-10 22:30:24 +02:00
2022-10-27 11:42:58 +02:00
2024-07-23 17:31:59 -04:00
2021-05-26 20:56:29 +02:00
2019-06-10 22:30:24 +02:00
2024-01-25 09:59:44 +01:00
2023-07-25 13:47:27 -04:00
2023-12-14 15:28:53 -05:00
2024-07-23 17:31:59 -04:00
2024-07-23 17:31:59 -04:00
2024-07-23 17:31:59 -04:00
2024-07-23 17:31:59 -04:00
2021-01-06 15:43:46 +01:00
2019-06-10 22:30:24 +02:00
2024-01-18 15:39:14 -05:00
2024-07-23 17:31:59 -04:00
2020-11-16 15:56:34 -05:00
2023-06-09 10:44:47 -04:00
2019-08-13 09:09:30 +02:00
2024-01-18 15:39:07 -05:00
2019-06-10 22:30:24 +02:00
2023-07-27 14:47:31 -04:00
2024-01-18 15:39:45 -05:00
2024-07-23 17:31:59 -04:00
2020-11-16 15:56:34 -05:00
2022-04-06 10:20:25 -04:00
2020-11-16 15:56:34 -05:00
2024-01-18 15:38:38 -05:00
2024-01-18 15:39:35 -05:00
2019-06-10 22:30:24 +02:00
2024-07-23 17:31:59 -04:00
2020-11-16 15:56:35 -05:00
2023-07-25 13:47:27 -04:00
2024-01-18 15:39:04 -05:00
2024-01-18 15:40:06 -05:00
2024-01-18 15:40:08 -05:00
2024-06-19 12:48:10 -04:00
2020-11-13 00:12:30 -05:00
2020-11-13 00:12:30 -05:00
2024-01-18 15:38:39 -05:00
2024-01-18 15:39:09 -05:00
2019-06-10 22:30:24 +02:00
2024-01-18 15:39:18 -05:00
2020-09-22 17:37:38 -04:00
2019-06-10 22:30:24 +02:00
2020-09-22 17:37:38 -04:00
2021-02-18 16:43:09 -05:00
2020-11-16 15:56:35 -05:00
2020-11-16 15:56:35 -05:00