git: a6a22afc62de - stable/13 - LinuxKPI: add a no-op generic_file_llseek()

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Wed, 18 Jan 2023 16:24:43 UTC
The branch stable/13 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=a6a22afc62de3069dc4d99edeebb58d258e8adab

commit a6a22afc62de3069dc4d99edeebb58d258e8adab
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2022-10-22 20:27:42 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2023-01-18 13:23:49 +0000

    LinuxKPI: add a no-op generic_file_llseek()
    
    This is needed for debugfs implementations in drivers.
    
    Sponsored by:   The FreeBSD Foundation
    OKed by:        jfree
    Differential Revision: https://reviews.freebsd.org/D37092
    
    (cherry picked from commit af393426b321e885d1db5f0a0571f34969a59a9f)
---
 sys/compat/linuxkpi/common/include/linux/fs.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/fs.h b/sys/compat/linuxkpi/common/include/linux/fs.h
index 55c2ee3e00c6..656b81b7be36 100644
--- a/sys/compat/linuxkpi/common/include/linux/fs.h
+++ b/sys/compat/linuxkpi/common/include/linux/fs.h
@@ -306,6 +306,12 @@ default_llseek(struct file *file, loff_t offset, int whence)
 	return (no_llseek(file, offset, whence));
 }
 
+static inline loff_t
+generic_file_llseek(struct file *file, loff_t offset, int whence)
+{
+	return (no_llseek(file, offset, whence));
+}
+
 static inline loff_t
 noop_llseek(struct linux_file *file, loff_t offset, int whence)
 {