hulk inclusion category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/I95ATV CVE: CVE-2023-52578
--------------------------------
fix kabi check warning.
Signed-off-by: Zhengchao Shao shaozhengchao@huawei.com --- include/linux/netdevice.h | 69 ++++++++++++++++++++++++++------------- 1 file changed, 46 insertions(+), 23 deletions(-)
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 5af9230f5741..e2c43666be48 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -174,29 +174,52 @@ static inline bool dev_xmit_complete(int rc) }
struct net_device_stats { - NET_DEV_STAT(rx_packets); - NET_DEV_STAT(tx_packets); - NET_DEV_STAT(rx_bytes); - NET_DEV_STAT(tx_bytes); - NET_DEV_STAT(rx_errors); - NET_DEV_STAT(tx_errors); - NET_DEV_STAT(rx_dropped); - NET_DEV_STAT(tx_dropped); - NET_DEV_STAT(multicast); - NET_DEV_STAT(collisions); - NET_DEV_STAT(rx_length_errors); - NET_DEV_STAT(rx_over_errors); - NET_DEV_STAT(rx_crc_errors); - NET_DEV_STAT(rx_frame_errors); - NET_DEV_STAT(rx_fifo_errors); - NET_DEV_STAT(rx_missed_errors); - NET_DEV_STAT(tx_aborted_errors); - NET_DEV_STAT(tx_carrier_errors); - NET_DEV_STAT(tx_fifo_errors); - NET_DEV_STAT(tx_heartbeat_errors); - NET_DEV_STAT(tx_window_errors); - NET_DEV_STAT(rx_compressed); - NET_DEV_STAT(tx_compressed); + RH_KABI_REPLACE(unsigned long rx_packets, + NET_DEV_STAT(rx_packets)) + RH_KABI_REPLACE(unsigned long tx_packets, + NET_DEV_STAT(tx_packets)) + RH_KABI_REPLACE(unsigned long rx_bytes, + NET_DEV_STAT(rx_bytes)) + RH_KABI_REPLACE(unsigned long tx_bytes, + NET_DEV_STAT(tx_bytes)) + RH_KABI_REPLACE(unsigned long rx_errors, + NET_DEV_STAT(rx_errors)) + RH_KABI_REPLACE(unsigned long tx_errors, + NET_DEV_STAT(tx_errors)) + RH_KABI_REPLACE(unsigned long rx_dropped, + NET_DEV_STAT(rx_dropped)) + RH_KABI_REPLACE(unsigned long tx_dropped, + NET_DEV_STAT(tx_dropped)) + RH_KABI_REPLACE(unsigned long multicast, + NET_DEV_STAT(multicast)) + RH_KABI_REPLACE(unsigned long collisions, + NET_DEV_STAT(collisions)) + RH_KABI_REPLACE(unsigned long rx_length_errors, + NET_DEV_STAT(rx_length_errors)) + RH_KABI_REPLACE(unsigned long rx_over_errors, + NET_DEV_STAT(rx_over_errors)) + RH_KABI_REPLACE(unsigned long rx_crc_errors, + NET_DEV_STAT(rx_crc_errors)) + RH_KABI_REPLACE(unsigned long rx_frame_errors, + NET_DEV_STAT(rx_frame_errors)) + RH_KABI_REPLACE(unsigned long rx_fifo_errors, + NET_DEV_STAT(rx_fifo_errors)) + RH_KABI_REPLACE(unsigned long rx_missed_errors, + NET_DEV_STAT(rx_missed_errors)) + RH_KABI_REPLACE(unsigned long tx_aborted_errors, + NET_DEV_STAT(tx_aborted_errors)) + RH_KABI_REPLACE(unsigned long tx_carrier_errors, + NET_DEV_STAT(tx_carrier_errors)) + RH_KABI_REPLACE(unsigned long tx_fifo_errors, + NET_DEV_STAT(tx_fifo_errors)) + RH_KABI_REPLACE(unsigned long tx_heartbeat_errors, + NET_DEV_STAT(tx_heartbeat_errors)) + RH_KABI_REPLACE(unsigned long tx_window_errors, + NET_DEV_STAT(tx_window_errors)) + RH_KABI_REPLACE(unsigned long rx_compressed, + NET_DEV_STAT(rx_compressed)) + RH_KABI_REPLACE(unsigned long tx_compressed, + NET_DEV_STAT(tx_compressed)) }; #undef NET_DEV_STAT