From 517ffd45671dd27f424aa1019eb4453e649679dc Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Wed, 13 Sep 2023 10:48:17 +0200 Subject: [PATCH] Fix compilation for 5.4 --- netifd/patches/001-init-pause.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 netifd/patches/001-init-pause.patch diff --git a/netifd/patches/001-init-pause.patch b/netifd/patches/001-init-pause.patch new file mode 100644 index 000000000..0c09aab73 --- /dev/null +++ b/netifd/patches/001-init-pause.patch @@ -0,0 +1,13 @@ +--- a/system-linux.c 2023-09-13 10:44:22.163111635 +0200 ++++ b/system-linux.c 2023-09-13 10:44:47.562696256 +0200 +@@ -2720,7 +2720,9 @@ + system_if_dump_info(struct device *dev, struct blob_buf *b) + { + __u32 *supported, *advertising, *lp_advertising; +- bool rx_pause, tx_pause, pause_autoneg; ++ bool rx_pause = false; ++ bool tx_pause = false; ++ bool pause_autoneg = false; + struct { + struct ethtool_link_settings req; + __u32 link_mode_data[3 * 127];