Skip to content

Commit

Permalink
backports: Remove support for kernel smaller than 4.11
Browse files Browse the repository at this point in the history
This removes all the code which is needed to support kernel 4.10.

Signed-off-by: Hauke Mehrtens <[email protected]>
  • Loading branch information
hauke committed Feb 6, 2024
1 parent 50aae17 commit 848e6bc
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 125 deletions.
1 change: 0 additions & 1 deletion .github/workflows/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ jobs:
strategy:
matrix:
kernel: [
"4.10",
"4.11",
"4.12",
"4.13",
Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ down to older kernels. It currently backports the following subsystems:
* WWAN

This package provides the latest Linux kernel subsystem enhancements
for kernels 4.10 and above.
for kernels 4.11 and above.

# Documentation

Expand Down
41 changes: 0 additions & 41 deletions backport/backport-include/linux/etherdevice.h

This file was deleted.

5 changes: 0 additions & 5 deletions backport/backport-include/linux/netdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,6 @@ static inline void dev_sw_netstats_tx_add(struct net_device *dev,
void dev_get_tstats64(struct net_device *dev, struct rtnl_link_stats64 *s);
#endif /* < 5.11 */

#if LINUX_VERSION_IS_LESS(4,11,0)
struct rtnl_link_stats64 *
bp_dev_get_tstats64(struct net_device *dev, struct rtnl_link_stats64 *s);
#endif /* < 4.11 */

#if LINUX_VERSION_IS_LESS(5,15,0)
#define get_user_ifreq LINUX_BACKPORT(get_user_ifreq)
int get_user_ifreq(struct ifreq *ifr, void __user **ifrdata, void __user *arg);
Expand Down
14 changes: 0 additions & 14 deletions backport/backport-include/linux/random.h

This file was deleted.

2 changes: 0 additions & 2 deletions backport/backport-include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
#include <linux/version.h>

#if LINUX_VERSION_IS_LESS(5,9,0)
#if LINUX_VERSION_IS_GEQ(4,11,0)
#include <uapi/linux/sched/types.h>
#endif

static inline void sched_set_fifo_low(struct task_struct *p)
{
Expand Down
8 changes: 0 additions & 8 deletions backport/backport-include/linux/skbuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,6 @@ static inline void skb_mark_not_on_list(struct sk_buff *skb)
#endif /* 4.19.10 <= x < 4.20 */
#endif

#if LINUX_VERSION_IS_LESS(4,11,0)
#define skb_mac_offset LINUX_BACKPORT(skb_mac_offset)
static inline int skb_mac_offset(const struct sk_buff *skb)
{
return skb_mac_header(skb) - skb->data;
}
#endif

#if LINUX_VERSION_IS_LESS(5,4,0)
/**
* skb_frag_off() - Returns the offset of a skb fragment
Expand Down
8 changes: 0 additions & 8 deletions backport/backport-include/linux/virtio_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,14 @@

#include <linux/version.h>

#if LINUX_VERSION_IS_LESS(4,11,0)
struct irq_affinity;
#endif

#if LINUX_VERSION_IS_LESS(4,12,0)
static inline
int virtio_find_vqs(struct virtio_device *vdev, unsigned nvqs,
struct virtqueue *vqs[], vq_callback_t *callbacks[],
const char *names[],
struct irq_affinity *desc)
{
#if LINUX_VERSION_IS_LESS(4,11,0)
return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names);
#else
return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, desc);
#endif
}
#endif /* < 4.12 */

Expand Down
1 change: 0 additions & 1 deletion backport/compat/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ endif
compat-y += main.o

# Kernel backport compatibility code
compat-$(CPTCFG_KERNEL_4_11) += backport-4.11.o
compat-$(CPTCFG_KERNEL_4_12) += backport-4.12.o
compat-$(CPTCFG_KERNEL_4_18) += backport-4.18.o
compat-$(CPTCFG_KERNEL_5_2) += backport-5.2.o backport-genetlink.o
Expand Down
12 changes: 0 additions & 12 deletions backport/compat/backport-4.11.c

This file was deleted.

32 changes: 0 additions & 32 deletions patches/0075-ndo-stats-64.cocci

This file was deleted.

0 comments on commit 848e6bc

Please sign in to comment.