aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-05-22 07:25:01 (GMT)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-05-22 07:25:01 (GMT)
commit14010a49c7b968643b4d9e0bfd4596c9019a2757 (patch)
tree30d24fb23235d64f7692ac4203dcf3636c11e479
parentde46960794c829a826c366f2b629148b147c1d55 (diff)
Add compat code for stream_open
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--v4l/compat.h4
-rw-r--r--v4l/scripts/make_config_compat.pl1
2 files changed, 5 insertions, 0 deletions
diff --git a/v4l/compat.h b/v4l/compat.h
index 1ed3c7a..fb025e1 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -2704,4 +2704,8 @@ static inline u8 i2c_8bit_addr_from_msg(const struct i2c_msg *msg)
#define FOLL_LONGTERM 0
#endif
+#ifdef NEED_STREAM_OPEN
+#define stream_open nonseekable_open
+#endif
+
#endif /* _COMPAT_H */
diff --git a/v4l/scripts/make_config_compat.pl b/v4l/scripts/make_config_compat.pl
index 92c3b21..2591d92 100644
--- a/v4l/scripts/make_config_compat.pl
+++ b/v4l/scripts/make_config_compat.pl
@@ -741,6 +741,7 @@ sub check_other_dependencies()
check_files_for_func("lockdep_assert_irqs_enabled", "NEED_LOCKDEP_ASSERT_IRQS", "include/linux/lockdep.h");
check_files_for_func("of_node_name_eq", "NEED_OF_NODE_NAME_EQ", "include/linux/of.h");
check_files_for_func("FOLL_LONGTERM", "NEED_FOLL_LONGTERM", "include/linux/mm.h");
+ check_files_for_func("stream_open", "NEED_STREAM_OPEN", "include/linux/fs.h");
# For tests for uapi-dependent logic
check_files_for_func_uapi("usb_endpoint_maxp", "NEED_USB_ENDPOINT_MAXP", "usb/ch9.h");

Privacy Policy