@@ -2212,4 +2212,23 @@ static inline void timer_setup(struct timer_list *timer,
#endif
+#ifdef NEED_FWNODE_PROP_GET_REF_ARGS
+#define NR_FWNODE_REFERENCE_ARGS 8
+
+struct fwnode_reference_args {
+ struct fwnode_handle *fwnode;
+ /* unsigned int nargs; */
+ unsigned int args[NR_FWNODE_REFERENCE_ARGS];
+};
+
+static inline int fwnode_property_get_reference_args(const struct fwnode_handle *fwnode,
+ const char *prop, const char *nargs_prop,
+ unsigned int nargs, unsigned int index,
+ struct fwnode_reference_args *args)
+{
+ return -ENODATA;
+}
+
+#endif
+
#endif /* _COMPAT_H */
@@ -707,6 +707,7 @@ sub check_other_dependencies()
check_files_for_func("U32_MAX", "NEED_U32_MAX", "include/linux/kernel.h");
check_files_for_func("bsearch", "NEED_BSEARCH", "include/linux/bsearch.h");
check_files_for_func("timer_setup", "NEED_TIMER_SETUP", "include/linux/timer.h");
+ check_files_for_func("fwnode_property_get_reference_args", "NEED_FWNODE_PROP_GET_REF_ARGS", "include/linux/property.h");
# For tests for uapi-dependent logic
check_files_for_func_uapi("usb_endpoint_maxp", "NEED_USB_ENDPOINT_MAXP", "usb/ch9.h");
Add function dummy that returns -ENODATA. Copied struct fwnode_reference_args from include/linux/fwnode.h. Signed-off-by: Matthias Schwarzott <zzam@gentoo.org> --- v4l/compat.h | 19 +++++++++++++++++++ v4l/scripts/make_config_compat.pl | 1 + 2 files changed, 20 insertions(+)