mirror of
https://github.com/systemd/systemd.git
synced 2026-07-25 16:55:44 +00:00
linux: make UBSAN quiet
This commit is contained in:
@@ -5,3 +5,4 @@ The files in this directory are copied from kernel-5.2, and the following modifi
|
||||
- bpf_insn.h: BPF_JMP_A() macro is also imported from include/linux/filter.h
|
||||
- dm-ioctl.h: set DM_VERSION_MINOR to 27
|
||||
- ethtool.h: define __KERNEL_DIV_ROUND_UP if not defined
|
||||
- ethtool.h: add casts in ethtool_cmd_speed()
|
||||
|
||||
@@ -126,7 +126,7 @@ static inline void ethtool_cmd_speed_set(struct ethtool_cmd *ep,
|
||||
|
||||
static inline __u32 ethtool_cmd_speed(const struct ethtool_cmd *ep)
|
||||
{
|
||||
return (ep->speed_hi << 16) | ep->speed;
|
||||
return ((__u32) ep->speed_hi << 16) | (__u32) ep->speed;
|
||||
}
|
||||
|
||||
/* Device supports clause 22 register access to PHY or peripherals
|
||||
|
||||
Reference in New Issue
Block a user