aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-05-22 07:12:18 (GMT)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-05-22 07:12:18 (GMT)
commit3e265872b75e632f05c9247a9a915bcc1e955a75 (patch)
tree8c14dc4f636b67b1430a587f5921978a98a74f8f
parent78eccfa404ec982e1302930cb7f45756ab404a3c (diff)
Add compat code for FOLL_LONGTERM
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 a4efab2..1ed3c7a 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -2700,4 +2700,8 @@ static inline u8 i2c_8bit_addr_from_msg(const struct i2c_msg *msg)
}
#endif
+#ifdef NEED_FOLL_LONGTERM
+#define FOLL_LONGTERM 0
+#endif
+
#endif /* _COMPAT_H */
diff --git a/v4l/scripts/make_config_compat.pl b/v4l/scripts/make_config_compat.pl
index 06175b8..92c3b21 100644
--- a/v4l/scripts/make_config_compat.pl
+++ b/v4l/scripts/make_config_compat.pl
@@ -740,6 +740,7 @@ sub check_other_dependencies()
check_files_for_func("i2c_8bit_addr_from_msg", "NEED_I2C_8BIT_ADDR_FROM_MSG", "include/linux/i2c.h");
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");
# For tests for uapi-dependent logic
check_files_for_func_uapi("usb_endpoint_maxp", "NEED_USB_ENDPOINT_MAXP", "usb/ch9.h");

Privacy Policy