diff options
| author | Ryan Hsu <ryanhsu@qca.qualcomm.com> | 2016-01-21 15:22:39 -0800 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-03-29 12:10:15 +0530 |
| commit | 5cca5fa5f384d3acab4cb25bf0f625bcd8b14920 (patch) | |
| tree | e0c3079cdc46f1ef4edecf251c2eecc7610bd222 | |
| parent | c110a22190c34c664e6d799a365cc2000b000f13 (diff) | |
qcacld-2.0: Remove usage of f_dentry for Kernel upgrade
qcacld-3.0 to qcacld-2.0 propagation
Commit: 78d28e6 ("kill f_dentry macro")
Above commit is to remove the marco of f_dentry since Kernel 3.19.
Avoid to use the Kernel version check by using the field directly.
Change-Id: I7a4b45c62afed402d49d709bb1cb870db352b70e
CRs-fixed: 966066
| -rw-r--r-- | CORE/UTILS/PKTLOG/linux_ac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CORE/UTILS/PKTLOG/linux_ac.c b/CORE/UTILS/PKTLOG/linux_ac.c index 9ed3f5f85579..668922d70f69 100644 --- a/CORE/UTILS/PKTLOG/linux_ac.c +++ b/CORE/UTILS/PKTLOG/linux_ac.c @@ -739,7 +739,7 @@ pktlog_read(struct file *file, char *buf, size_t nbytes, loff_t *ppos) int fold_offset, ppos_data, cur_rd_offset; #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0) struct ath_pktlog_info *pl_info = (struct ath_pktlog_info *) - PDE_DATA(file->f_dentry->d_inode); + PDE_DATA(file->f_path.dentry->d_inode); #else struct proc_dir_entry *proc_entry = PDE(file->f_dentry->d_inode); struct ath_pktlog_info *pl_info = (struct ath_pktlog_info *) @@ -980,7 +980,7 @@ static int pktlog_mmap(struct file *file, struct vm_area_struct *vma) { #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0) struct ath_pktlog_info *pl_info = (struct ath_pktlog_info *) - PDE_DATA(file->f_dentry->d_inode); + PDE_DATA(file->f_path.dentry->d_inode); #else struct proc_dir_entry *proc_entry = PDE(file->f_dentry->d_inode); struct ath_pktlog_info *pl_info = (struct ath_pktlog_info *) |
