]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/net/xfrm.h
xfrm: make xfrm_replay_state_esn_len() return unsigned int
[mirror_ubuntu-bionic-kernel.git] / include / net / xfrm.h
index 5d5e11b653eba7e3e301c4097c33834e39a55bb7..3cb618bbcfa57bfab7f5b6a536e809f5256f42c1 100644 (file)
@@ -1779,7 +1779,7 @@ static inline unsigned int xfrm_alg_auth_len(const struct xfrm_algo_auth *alg)
        return sizeof(*alg) + ((alg->alg_key_len + 7) / 8);
 }
 
-static inline int xfrm_replay_state_esn_len(struct xfrm_replay_state_esn *replay_esn)
+static inline unsigned int xfrm_replay_state_esn_len(struct xfrm_replay_state_esn *replay_esn)
 {
        return sizeof(*replay_esn) + replay_esn->bmp_len * sizeof(__u32);
 }