Lift minimal kernel version to 6.1
PATCH v2 1/1 Lift minimal kernel version to 6.1
From: Jan Kiszka <[email protected]>
To limit the test matrix of the next major release, lift the minimally supported kernel version to 6.1. Drop any compat code for older kernels and update the pipeline to use 6.12 instead of 5.10 for build tests.
Signed-off-by Jan Kiszka <[email protected]>
---
Changes in v2:
- update the pipeline
- update installation guide
.gitlab-ci.yml | 24 +++++++++---------- doc/asciidoc/README.INSTALL.adoc | 2 +- .../include/asm-generic/xenomai/wrappers.h | 24 ------------------- kernel/drivers/net/drivers/at91_ether.c | 10 -------- kernel/drivers/net/drivers/e1000e/netdev.c | 10 -------- .../drivers/net/drivers/freescale/fec_main.c | 18 -------------- kernel/drivers/net/drivers/igb/igb_main.c | 8 ------- kernel/drivers/net/drivers/igc/igc_main.c | 8 ------- kernel/drivers/net/drivers/macb.c | 10 -------- kernel/drivers/serial/16550A_pci.h | 2 -- kernel/drivers/spi/spi-device.c | 8 ------- 11 files changed, 13 insertions(+), 111 deletions(-)
.gitlab-ci.yml +12 -12
@@ -193,18 +193,18 @@ arm-6.xx-latest: PIPELINE_REV: "v6\\.[0-9].*-dovetail-rebase" KERNEL_DEFCONFIG: multi_v7_defconfig -arm-6.1-head: +arm-6.12-head: extends: .build variables: ARCH: arm - PIPELINE_REV: v6.1.y-cip-dovetail-rebase + PIPELINE_REV: v6.12.y-dovetail-rebase KERNEL_DEFCONFIG: multi_v7_defconfig -arm-5.10-head: +arm-6.1-head: extends: .build variables: ARCH: arm - PIPELINE_REV: v5.10.y-cip-dovetail-rebase + PIPELINE_REV: v6.1.y-cip-dovetail-rebase KERNEL_DEFCONFIG: multi_v7_defconfig arm64-6.xx-latest:
@@ -214,18 +214,18 @@ arm64-6.xx-latest: PIPELINE_REV: "v6\\.[0-9].*-dovetail-rebase" KERNEL_DEFCONFIG: defconfig -arm64-6.1-head: +arm64-6.12-head: extends: .build variables: ARCH: arm64 - PIPELINE_REV: v6.1.y-cip-dovetail-rebase + PIPELINE_REV: v6.12.y-dovetail-rebase KERNEL_DEFCONFIG: defconfig -arm64-5.10-head: +arm64-6.1-head: extends: .build variables: ARCH: arm64 - PIPELINE_REV: v5.10.y-cip-dovetail-rebase + PIPELINE_REV: v6.1.y-cip-dovetail-rebase KERNEL_DEFCONFIG: defconfig x86-6.xx-latest:
@@ -235,18 +235,18 @@ x86-6.xx-latest: PIPELINE_REV: "v6\\.[0-9].*-dovetail-rebase" KERNEL_DEFCONFIG: x86_64_defconfig -x86-6.1-head: +x86-6.12-head: extends: .build variables: ARCH: x86 - PIPELINE_REV: v6.1.y-cip-dovetail-rebase + PIPELINE_REV: v6.12.y-dovetail-rebase KERNEL_DEFCONFIG: x86_64_defconfig -x86-5.10-head: +x86-6.1-head: extends: .build variables: ARCH: x86 - PIPELINE_REV: v5.10.y-cip-dovetail-rebase + PIPELINE_REV: v6.1.y-cip-dovetail-rebase KERNEL_DEFCONFIG: x86_64_defconfig i386-userland:
doc/asciidoc/README.INSTALL.adoc +1 -1
@@ -267,7 +267,7 @@ although this is not mandatory if building with `--disable-tls`. _Cobalt_-specific requirements ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -- The kernel version must be 5.10 or better. +- The kernel version must be 6.1 or better. - An interrupt pipeline (Dovetail) patch must be available for your target kernel. You can find the official patches issued by the
kernel/cobalt/include/asm-generic/xenomai/wrappers.h +0 -24
@@ -43,30 +43,6 @@ .proc_lseek = seq_lseek, \ } -#if LINUX_VERSION_CODE <KERNEL_VERSION (5 ,11 ,0 ) -#define IRQ_WORK_INIT (_func) (struct irq_work) { \ - .flags = ATOMIC_INIT(0), \ - .func = (_func), \ -} -#endif - -#if LINUX_VERSION_CODE <KERNEL_VERSION (5 ,14 ,0 ) && \ - (LINUX_VERSION_CODE >=KERNEL_VERSION (5 ,11 ,0 ) || \ -LINUX_VERSION_CODE <KERNEL_VERSION (5 ,10 ,220 )) -#define close_fd (__ufd) __close_fd(current->files, __ufd) -#endif - -#if LINUX_VERSION_CODE <KERNEL_VERSION (5 ,15 ,0 ) && \ - (LINUX_VERSION_CODE >=KERNEL_VERSION (5 ,11 ,0 ) || \ -LINUX_VERSION_CODE <KERNEL_VERSION (5 ,10 ,188 )) -#define dev_addr_set (dev, addr) memcpy((dev)->dev_addr, addr, MAX_ADDR_LEN) -#define eth_hw_addr_set (dev, addr) memcpy((dev)->dev_addr, addr, ETH_ALEN) -#endif - -#if LINUX_VERSION_CODE <KERNEL_VERSION (5 ,17 ,0 ) -#define pde_data (i) PDE_DATA(i) -#endif -#if LINUX_VERSION_CODE <KERNEL_VERSION (6 ,2 ,0 )#define timer_delete_sync del_timer_sync#endif
kernel/drivers/net/drivers/at91_ether.c +0 -10
@@ -303,9 +303,6 @@ static int __init at91ether_probe(struct platform_device *pdev)struct macb *lp;int res;u32 reg; -#if LINUX_VERSION_CODE <KERNEL_VERSION (5 ,13 ,0 ) -const char *mac; -#endif regs =platform_get_resource (pdev,IORESOURCE_MEM ,0 );if (!regs)
@@ -358,15 +355,8 @@ static int __init at91ether_probe(struct platform_device *pdev)platform_set_drvdata (pdev, dev); -#if (LINUX_VERSION_CODE >=KERNEL_VERSION (5 ,13 ,0 )) res =of_get_mac_address (pdev->dev.of_node, lp->dev->dev_addr);if (res) -#else - mac =of_get_mac_address (pdev->dev.of_node); -if (mac) -memcpy (lp->dev->dev_addr, mac,ETH_ALEN ); - else -#endif rtmacb_get_hwaddr (lp); res =of_get_phy_mode (pdev->dev.of_node);
kernel/drivers/net/drivers/e1000e/netdev.c +0 -10
@@ -3912,11 +3912,6 @@ static int e1000_probe(struct pci_dev *pdev,if (err) goto err_pci_reg; -#if LINUX_VERSION_CODE <=KERNEL_VERSION (6 ,0 ,0 ) -/* AER (Advanced Error Reporting) hooks */ -pci_enable_pcie_error_reporting (pdev); -#endif -pci_set_master (pdev);/* PCI config space info */ err =pci_save_state (pdev);
@@ -4240,11 +4235,6 @@ static void e1000_remove(struct pci_dev *pdev)rtdev_free (netdev); -#if LINUX_VERSION_CODE <=KERNEL_VERSION (6 ,0 ,0 ) -/* AER disable */ -pci_disable_pcie_error_reporting (pdev); -#endif -pci_disable_device (pdev); }
kernel/drivers/net/drivers/freescale/fec_main.c +0 -18
@@ -1250,15 +1250,9 @@ static void fec_get_mac(struct net_device *ndev)if (!is_valid_ether_addr (iap)) {struct device_node *np = fep->pdev->dev.of_node;if (np) { -#if LINUX_VERSION_CODE >=KERNEL_VERSION (5 ,13 ,0 )int err =of_get_mac_address (np, tmpaddr);if (!err) iap = tmpaddr; -#else -const char *mac =of_get_mac_address (np); -if (!IS_ERR (mac)) - iap = (unsigned char *) mac; -#endif } }
@@ -2157,13 +2151,9 @@ static void fec_enet_itr_coal_set(struct net_device *ndev) }static int -#if LINUX_VERSION_CODE >=KERNEL_VERSION (5 ,15 ,0 )fec_enet_get_coalesce (struct net_device *ndev,struct ethtool_coalesce *ec,struct kernel_ethtool_coalesce *kernel_coal,struct netlink_ext_ack *extack) -#else -fec_enet_get_coalesce(struct net_device *ndev, struct ethtool_coalesce *ec) -#endif {struct fec_enet_private *fep =netdev_priv (ndev);
@@ -2180,13 +2170,9 @@ fec_enet_get_coalesce(struct net_device *ndev, struct ethtool_coalesce *ec) }static int -#if LINUX_VERSION_CODE >=KERNEL_VERSION (5 ,15 ,0 )fec_enet_set_coalesce (struct net_device *ndev,struct ethtool_coalesce *ec,struct kernel_ethtool_coalesce *kernel_coal,struct netlink_ext_ack *extack) -#else -fec_enet_set_coalesce(struct net_device *ndev, struct ethtool_coalesce *ec) -#endif {struct fec_enet_private *fep =netdev_priv (ndev);struct device *dev = &fep->pdev->dev;
@@ -2238,11 +2224,7 @@ static void fec_enet_itr_coal_init(struct net_device *ndev) ec.tx_coalesce_usecs =FEC_ITR_ICTT_DEFAULT ; ec.tx_max_coalesced_frames =FEC_ITR_ICFT_DEFAULT ; -#if LINUX_VERSION_CODE >=KERNEL_VERSION (5 ,15 ,0 )fec_enet_set_coalesce (ndev, &ec,NULL ,NULL ); -#else -fec_enet_set_coalesce (ndev, &ec); -#endif } static int fec_enet_get_tunable(struct net_device *netdev,
kernel/drivers/net/drivers/igb/igb_main.c +0 -8
@@ -2029,10 +2029,6 @@ static int igb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)if (err) goto err_pci_reg; -#if LINUX_VERSION_CODE <=KERNEL_VERSION (6 ,0 ,0 ) -pci_enable_pcie_error_reporting (pdev); -#endif -pci_set_master (pdev);pci_save_state (pdev);
@@ -2467,10 +2463,6 @@ static void igb_remove(struct pci_dev *pdev)kfree (adapter->shadow_vfta);rtdev_free (netdev); -#if LINUX_VERSION_CODE <=KERNEL_VERSION (6 ,0 ,0 ) -pci_disable_pcie_error_reporting (pdev); -#endif -pci_disable_device (pdev); }
kernel/drivers/net/drivers/igc/igc_main.c +0 -8
@@ -3693,10 +3693,6 @@ static int igc_probe(struct pci_dev *pdev,if (err) goto err_pci_reg; -#if LINUX_VERSION_CODE <=KERNEL_VERSION (6 ,0 ,0 ) -pci_enable_pcie_error_reporting (pdev); -#endif -pci_set_master (pdev); err = -ENOMEM ;
@@ -3925,10 +3921,6 @@ static void igc_remove(struct pci_dev *pdev)rtdev_free (netdev); -#if LINUX_VERSION_CODE <=KERNEL_VERSION (6 ,0 ,0 ) -pci_disable_pcie_error_reporting (pdev); -#endif -pci_disable_device (pdev); }
kernel/drivers/net/drivers/macb.c +0 -10
@@ -1570,9 +1570,6 @@ static int __init macb_probe(struct platform_device *pdev)u32 config;int err = -ENXIO ;struct pinctrl *pinctrl; -#if LINUX_VERSION_CODE <KERNEL_VERSION (5 ,13 ,0 ) -const char *mac; -#endif regs =platform_get_resource (pdev,IORESOURCE_MEM ,0 );if (!regs) {
@@ -1690,15 +1687,8 @@ static int __init macb_probe(struct platform_device *pdev) config |=macb_dbw (bp);macb_writel (bp,NCFGR , config); -#if LINUX_VERSION_CODE >=KERNEL_VERSION (5 ,13 ,0 ) err =of_get_mac_address (pdev->dev.of_node, bp->dev->dev_addr);if (err) -#else - mac =of_get_mac_address (pdev->dev.of_node); -if (mac) -memcpy (bp->dev->dev_addr, mac,ETH_ALEN ); - else -#endif rtmacb_get_hwaddr (bp); err =of_get_phy_mode (pdev->dev.of_node);
kernel/drivers/serial/16550A_pci.h +0 -2
@@ -36,7 +36,6 @@ struct rt_16550_pci_board {#define PCI_DEVICE_ID_CP112UL 0x1120#define PCI_DEVICE_ID_CP114UL 0x1143#define PCI_DEVICE_ID_CP138U 0x1380 -#if LINUX_VERSION_CODE >=KERNEL_VERSION (5 ,17 ,0 )#define PCI_DEVICE_ID_MOXA_CP102UL 0x1021#define PCI_DEVICE_ID_MOXA_CP102U 0x1022#define PCI_DEVICE_ID_MOXA_C104 0x1040
@@ -48,7 +47,6 @@ struct rt_16550_pci_board {#define PCI_DEVICE_ID_MOXA_CP134U 0x1340#define PCI_DEVICE_ID_MOXA_C168 0x1680#define PCI_DEVICE_ID_MOXA_CP168U 0x1681 -#endif static const struct rt_16550_pci_board rt_16550_moxa_c104 = { .name ="Moxa C104H/PCI" ,
kernel/drivers/spi/spi-device.c +0 -8
@@ -124,19 +124,11 @@ static int spi_device_probe(struct spi_device *spi)return 0 ; } -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,18,0)static void spi_device_remove (struct spi_device *spi) -#else -static int spi_device_remove(struct spi_device *spi) -#endif {struct rtdm_spi_remote_slave *slave =spi_get_drvdata (spi); slave->master->ops->detach_slave (slave); - -#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0) - return 0; -#endif }static const struct of_device_id spi_device_match[] = {
Signature · 6 lines
2.51.0 -- Siemens AG, Foundational Technologies Linux Expert Center