mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-25 22:46:15 +00:00
11baab9fac
This makes the components used on the lantiq SoCs compile with kernel 6.1. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> [also fix ifxmips_ptm_adsl.c] Signed-off-by: Martin Schiller <ms@dev.tdt.de>
29 lines
959 B
Diff
29 lines
959 B
Diff
--- a/src/drv_mei_cpe_linux.c
|
|
+++ b/src/drv_mei_cpe_linux.c
|
|
@@ -1873,7 +1873,11 @@ static int mei_seq_single_show(struct se
|
|
|
|
static int mei_proc_single_open(struct inode *inode, struct file *file)
|
|
{
|
|
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5,17,0))
|
|
return single_open(file, mei_seq_single_show, PDE_DATA(inode));
|
|
+#else
|
|
+ return single_open(file, mei_seq_single_show, pde_data(inode));
|
|
+#endif
|
|
}
|
|
|
|
static void mei_proc_entry_create(struct proc_dir_entry *parent_node,
|
|
--- a/src/drv_mei_cpe_linux_proc_config.c
|
|
+++ b/src/drv_mei_cpe_linux_proc_config.c
|
|
@@ -1036,7 +1036,11 @@ static int mei_seq_single_show(struct se
|
|
|
|
static int mei_proc_single_open(struct inode *inode, struct file *file)
|
|
{
|
|
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5,17,0))
|
|
return single_open(file, mei_seq_single_show, PDE_DATA(inode));
|
|
+#else
|
|
+ return single_open(file, mei_seq_single_show, pde_data(inode));
|
|
+#endif
|
|
}
|
|
|
|
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5,6,0))
|