openwrt/target/linux/realtek/files-5.15/drivers/net/dsa/rtl83xx
Christian Marangi 8aa786d9a7
realtek: 5.15: fix uninizialized variable in rtl83xx qos driver
Fix uninizialized variable in rtl83xx qos driver
Fix compilation error:
drivers/net/dsa/rtl83xx/qos.c: In function 'rtl838x_setup_prio2queue_matrix':
drivers/net/dsa/rtl83xx/qos.c:298:19: error: 'v' is used uninitialized [-Werror=uninitialized]
  298 |                 v |= i << (min_queues[i] * 3);
      |                 ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl83xx/qos.c:294:13: note: 'v' was declared here
  294 |         u32 v;
      |             ^
drivers/net/dsa/rtl83xx/qos.c: In function 'rtl83xx_setup_prio2queue_cpu_matrix':
drivers/net/dsa/rtl83xx/qos.c:320:19: error: 'v' is used uninitialized [-Werror=uninitialized]
  320 |                 v |= max_queues[i] << (i * 3);
      |                 ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/rtl83xx/qos.c:316:13: note: 'v' was declared here
  316 |         u32 v;
      |             ^
cc1: all warnings being treated as errors
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-05-12 03:15:40 +02:00
..
common.c realtek: 5.15: comment unused part of realtek ethernet driver 2023-05-12 03:15:40 +02:00
debugfs.c realtek: Reduce variable scopes 2022-12-27 16:33:15 +01:00
dsa.c realtek: 5.15: comment unused part of realtek ethernet driver 2023-05-12 03:15:40 +02:00
Kconfig realtek: Whitespace and codestyle cleanup 2022-12-27 16:31:48 +01:00
Makefile
qos.c realtek: 5.15: fix uninizialized variable in rtl83xx qos driver 2023-05-12 03:15:40 +02:00
rtl83xx.h realtek: Whitespace and codestyle cleanup 2022-12-27 16:31:48 +01:00
rtl838x.c realtek: 5.15: comment unused part of realtek ethernet driver 2023-05-12 03:15:40 +02:00
rtl838x.h realtek: remove store_mcgroups/load_mcgroups 2023-05-07 19:15:34 +02:00
rtl839x.c realtek: fix standalone ports in presence of static fdb entries 2023-05-07 19:07:34 +02:00
rtl930x.c realtek: 5.15: comment unused part of realtek ethernet driver 2023-05-12 03:15:40 +02:00
rtl931x.c realtek: 5.15: comment unused part of realtek ethernet driver 2023-05-12 03:15:40 +02:00
tc.c realtek: Replace C++ style comments 2022-12-27 16:33:01 +01:00