Skip to contentSkip to conversation

treewide: drop unused header files

PATCH Applied Antony Pavlov 2 participants 2 messages Mar 20, 2024 – Mar 25, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 treewide: drop unused header files

---
 include/usb_dfu_trailer.h |   32 --
 lib/bzlib_private.h       |  521 -------------------
 lib/zstd/zstd_opt.h       | 1014 -------------------------------------
 net/nfs.h                 |   68 ---
 4 files changed, 1635 deletions(-)
include/usb_dfu_trailer.h deleted +0 -32
deleted file mode 100644
index 64b84072755..00000000000
@@ -1,32 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef _USB_DFU_TRAILER_H
-#define _USB_DFU_TRAILER_H
-
-/* trailer handling for DFU files */
-
-#define BAREBOX_DFU_TRAILER_V1	1
-#define BAREBOX_DFU_TRAILER_MAGIC	0x19731978
-struct barebox_dfu_trailer {
-	u_int32_t	magic;
-	u_int16_t	version;
-	u_int16_t	length;
-	u_int16_t	vendor;
-	u_int16_t	product;
-	u_int32_t	revision;
-} __attribute__((packed));
-
-/* we mirror the trailer because we want it to be longer in later versions
- * while keeping backwards compatibility */
-static inline void dfu_trailer_mirror(struct barebox_dfu_trailer *trailer,
-				      unsigned char *eof)
-{
-	int i;
-	int len = sizeof(struct barebox_dfu_trailer);
-	unsigned char *src = eof - len;
-	unsigned char *dst = (unsigned char *) trailer;
-
-	for (i = 0; i < len; i++)
-		dst[len-1-i] = src[i];
-}
-
-#endif /* _USB_DFU_TRAILER_H */
lib/bzlib_private.h deleted +0 -521

521 lines not on this page · raw message

lib/zstd/zstd_opt.h deleted +0 -1014

1,014 lines not on this page · raw message

net/nfs.h deleted +0 -68

68 lines not on this page · raw message

Signature · 1 line
2.39.0