Fix iavf driver build failure
[multicloud/k8s.git] / kud / deployment_infra / installers / skb-frag-off.patch
1 diff --git a/src/kcompat.h b/src/kcompat.h
2 index 21e9818..97abc2f 100644
3 --- a/src/kcompat.h
4 +++ b/src/kcompat.h
5 @@ -7074,7 +7074,8 @@ devlink_flash_update_status_notify(struct devlink __always_unused *devlink,
6  /*****************************************************************************/
7  #if (LINUX_VERSION_CODE < KERNEL_VERSION(5,4,0))
8  #if (!(RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8,2)) && \
9 -     !(SLE_VERSION_CODE >= SLE_VERSION(15,2,0)))
10 +     !(SLE_VERSION_CODE >= SLE_VERSION(15,2,0)) && \
11 +     !(UBUNTU_VERSION_CODE >= UBUNTU_VERSION(4,15,0,159)))
12  static inline unsigned int skb_frag_off(const skb_frag_t *frag)
13  {
14         return frag->page_offset;