X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/32dec7075aae5cc6ef1e4394dc94fed1767b848e..603d01fbba5d16467af24fa6c1d5902920d36dbb:/target/linux/generic/files/crypto/ocf/ocf-compat.h diff --git a/target/linux/generic/files/crypto/ocf/ocf-compat.h b/target/linux/generic/files/crypto/ocf/ocf-compat.h index 2d985360f..b76c369dd 100644 --- a/target/linux/generic/files/crypto/ocf/ocf-compat.h +++ b/target/linux/generic/files/crypto/ocf/ocf-compat.h @@ -359,6 +359,15 @@ static inline int ocf_run_thread(void *arg) #include #endif +#include + +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,2,0) +static inline struct page *skb_frag_page(const skb_frag_t *frag) +{ + return frag->page; +} +#endif + #endif /* __KERNEL__ */ /****************************************************************************/