qcacmn: replace PDE_DATA() with pde_data()
In kernel 5.17, PDE_DATA() is replaced with pde_data(). Make matching change in ath_procfs.c and linux_ac.c files. Change-Id: Ia198545322146d4adde9330c19b43f5c2ed0dfa2 CRs-Fixed: 3298062
Šī revīzija ir iekļauta:

revīziju iesūtīja
Madan Koyyalamudi

vecāks
f4b6b093c6
revīzija
1cb111d3bc
@@ -38,6 +38,14 @@
|
||||
#include "host_diag_core_log.h"
|
||||
#include "ani_global.h"
|
||||
|
||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0))
|
||||
/*
|
||||
* Commit 359745d78351 ("proc: remove PDE_DATA() completely")
|
||||
* Replaced PDE_DATA() with pde_data()
|
||||
*/
|
||||
#define pde_data(inode) PDE_DATA(inode)
|
||||
#endif
|
||||
|
||||
#define PKTLOG_DEVNAME_SIZE 32
|
||||
#define MAX_WLANDEV 1
|
||||
|
||||
@@ -876,7 +884,7 @@ __pktlog_read(struct file *file, char *buf, size_t nbytes, loff_t *ppos)
|
||||
struct ath_pktlog_info *pl_info;
|
||||
struct ath_pktlog_buf *log_buf;
|
||||
|
||||
pl_info = PDE_DATA(file->f_path.dentry->d_inode);
|
||||
pl_info = pde_data(file->f_path.dentry->d_inode);
|
||||
if (!pl_info)
|
||||
return 0;
|
||||
|
||||
@@ -1019,7 +1027,7 @@ rd_done:
|
||||
static ssize_t
|
||||
pktlog_read(struct file *file, char *buf, size_t nbytes, loff_t *ppos)
|
||||
{
|
||||
struct ath_pktlog_info *info = PDE_DATA(file->f_path.dentry->d_inode);
|
||||
struct ath_pktlog_info *info = pde_data(file->f_path.dentry->d_inode);
|
||||
struct qdf_op_sync *op_sync;
|
||||
ssize_t err_size;
|
||||
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user