@@ -22,4 +22,16 @@ static inline int firmware_request_cache(struct device *device, const char *name
#define FW_ACTION_UEVENT FW_ACTION_HOTPLUG
#endif
+#if LINUX_VERSION_IS_LESS(5,10,0)
+#define request_partial_firmware_into_buf LINUX_BACKPORT(request_partial_firmware_into_buf)
+static inline int request_partial_firmware_into_buf
+ (const struct firmware **firmware_p,
+ const char *name,
+ struct device *device,
+ void *buf, size_t size, size_t offset)
+{
+ return -ENOTSUPP;
+}
+#endif
+
#endif /* __BACKPORT_LINUX_FIRMWARE_H */
This adds an empty implememntation. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> --- backport/backport-include/linux/firmware.h | 12 ++++++++++++ 1 file changed, 12 insertions(+)