From f744f6a4e7dfb44ed681b4ef46a1b61c1c1df1c0 Mon Sep 17 00:00:00 2001 From: Kai Liu Date: Thu, 19 May 2022 20:34:39 +0800 Subject: [PATCH] qcacmn: Use default seek for memdump lseek Kernel change d4455fa 'proc: mandate ->proc_lseek in "struct proc_ops"' by default use proc_lseek for file operations without any check, so add default_llseek for all proc ops. Change-Id: Ia72839cf09ec721fb98f50793b19ec082478d8d7 CRs-Fixed: 3201003 --- utils/pktlog/linux_ac.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/pktlog/linux_ac.c b/utils/pktlog/linux_ac.c index de7427f580..52df46083b 100644 --- a/utils/pktlog/linux_ac.c +++ b/utils/pktlog/linux_ac.c @@ -1,5 +1,6 @@ /* * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved. + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -81,6 +82,7 @@ static const struct proc_ops pktlog_fops = { .proc_open = pktlog_open, .proc_release = pktlog_release, .proc_read = pktlog_read, + .proc_lseek = default_llseek, }; #else static struct file_operations pktlog_fops = {