1
1
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:
Yu Watanabe 2019-06-25 11:36:51 +09:00
parent 2824ed64a1
commit ffba064ae4
2 changed files with 2 additions and 1 deletions

View File

@ -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()

View File

@ -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