diff mbox series

[58/75] header: Add empty request_partial_firmware_into_buf()

Message ID 20240627234808.1253337-59-hauke@hauke-m.de (mailing list archive)
State New, archived
Headers show
Series backports: Update to kernel 6.1.95 | expand

Commit Message

Hauke Mehrtens June 27, 2024, 11:47 p.m. UTC
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(+)
diff mbox series

Patch

diff --git a/backport/backport-include/linux/firmware.h b/backport/backport-include/linux/firmware.h
index c12ce98c..9bfe6e9d 100644
--- a/backport/backport-include/linux/firmware.h
+++ b/backport/backport-include/linux/firmware.h
@@ -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 */