diff --git a/include/net/dsfield.h b/include/net/dsfield.h index 1a245ee10c95179350f7124ea4b9d6721818e7c7..a59a57ffc5468cba81199cc00e6edf296b5d021b 100644 --- a/include/net/dsfield.h +++ b/include/net/dsfield.h @@ -21,7 +21,7 @@ static inline __u8 ipv4_get_dsfield(const struct iphdr *iph) static inline __u8 ipv6_get_dsfield(const struct ipv6hdr *ipv6h) { - return ntohs(*(const __be16 *)ipv6h) >> 4; + return ntohs(*(__force const __be16 *)ipv6h) >> 4; }