mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-24 21:34:08 +03:00
linux: make UBSAN quiet
This commit is contained in:
parent
2824ed64a1
commit
ffba064ae4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user