From cfb922bb7d6945eb4d33a910d78b506ae0af14fa Mon Sep 17 00:00:00 2001 From: "Daniel P. Smith" Date: Thu, 11 Apr 2024 11:25:14 -0400 Subject: [PATCH] xen/gzip: Colocate gunzip code files This patch moves the gunzip code files to common/gzip. Makefiles are adjusted accordingly. Signed-off-by: Daniel P. Smith Reviewed-by: Andrew Cooper --- docs/misra/exclude-list.json | 2 +- xen/common/Makefile | 2 +- xen/common/gzip/Makefile | 1 + xen/common/{ => gzip}/gunzip.c | 0 xen/common/{ => gzip}/inflate.c | 0 5 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 xen/common/gzip/Makefile rename xen/common/{ => gzip}/gunzip.c (100%) rename xen/common/{ => gzip}/inflate.c (100%) diff --git a/docs/misra/exclude-list.json b/docs/misra/exclude-list.json index 36bad9e54f..0956364158 100644 --- a/docs/misra/exclude-list.json +++ b/docs/misra/exclude-list.json @@ -118,7 +118,7 @@ "comment": "Imported from Linux, ignore for now" }, { - "rel_path": "common/inflate.c", + "rel_path": "common/gzip/inflate.c", "comment": "Imported from Linux, ignore for now" }, { diff --git a/xen/common/Makefile b/xen/common/Makefile index e5eee19a85..d512cad524 100644 --- a/xen/common/Makefile +++ b/xen/common/Makefile @@ -14,7 +14,7 @@ obj-y += event_channel.o obj-y += event_fifo.o obj-$(CONFIG_GRANT_TABLE) += grant_table.o obj-y += guestcopy.o -obj-bin-y += gunzip.init.o +obj-y += gzip/ obj-$(CONFIG_HYPFS) += hypfs.o obj-$(CONFIG_IOREQ_SERVER) += ioreq.o obj-y += irq.o diff --git a/xen/common/gzip/Makefile b/xen/common/gzip/Makefile new file mode 100644 index 0000000000..bda73c0184 --- /dev/null +++ b/xen/common/gzip/Makefile @@ -0,0 +1 @@ +obj-bin-y += gunzip.init.o diff --git a/xen/common/gunzip.c b/xen/common/gzip/gunzip.c similarity index 100% rename from xen/common/gunzip.c rename to xen/common/gzip/gunzip.c diff --git a/xen/common/inflate.c b/xen/common/gzip/inflate.c similarity index 100% rename from xen/common/inflate.c rename to xen/common/gzip/inflate.c