X-Git-Url: https://git.archive.openwrt.org/?p=15.05%2Fopenwrt.git;a=blobdiff_plain;f=target%2Flinux%2Fgeneric%2Ffiles%2Fcrypto%2Focf%2Focf-compat.h;fp=target%2Flinux%2Fgeneric%2Ffiles%2Fcrypto%2Focf%2Focf-compat.h;h=b76c369dd6d759852b835cdf64d7c57151b35f2c;hp=2d985360f273a24c5f1ceef4f922c61e4fc09e4a;hb=9435ae8d1960821f1b7518396c5e696c7fc8d716;hpb=b90053eadaf302d8a04d892f99f268ff10bd4f1b diff --git a/target/linux/generic/files/crypto/ocf/ocf-compat.h b/target/linux/generic/files/crypto/ocf/ocf-compat.h index 2d985360f2..b76c369dd6 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__ */ /****************************************************************************/