[PATCH 08/12] partitions: move parser.h to include/partitions.h

Sascha Hauer s.hauer at pengutronix.de
Mon Feb 19 00:31:36 PST 2024


This will be needed by upcoming partition manipulation code, so move it
to include/

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 common/partitions.c                                | 3 +--
 common/partitions/dos.c                            | 3 +--
 common/partitions/efi.c                            | 2 +-
 common/partitions/parser.h => include/partitions.h | 0
 4 files changed, 3 insertions(+), 5 deletions(-)
 rename common/partitions/parser.h => include/partitions.h (100%)

diff --git a/common/partitions.c b/common/partitions.c
index 0d8c2849ab..abbe31ed11 100644
--- a/common/partitions.c
+++ b/common/partitions.c
@@ -15,8 +15,7 @@
 #include <disks.h>
 #include <filetype.h>
 #include <linux/err.h>
-
-#include "partitions/parser.h"
+#include <partitions.h>
 
 static LIST_HEAD(partition_parser_list);
 
diff --git a/common/partitions/dos.c b/common/partitions/dos.c
index 7ca3c4e37e..e5ff59f71a 100644
--- a/common/partitions/dos.c
+++ b/common/partitions/dos.c
@@ -17,8 +17,7 @@
 #include <init.h>
 #include <asm/unaligned.h>
 #include <linux/err.h>
-
-#include "parser.h"
+#include <partitions.h>
 
 
 enum {
diff --git a/common/partitions/efi.c b/common/partitions/efi.c
index 84d55e6491..407c1a4d08 100644
--- a/common/partitions/efi.c
+++ b/common/partitions/efi.c
@@ -20,7 +20,7 @@
 #include <linux/ctype.h>
 
 #include <efi/partition.h>
-#include "parser.h"
+#include <partitions.h>
 
 struct efi_partition_desc {
 	struct partition_desc pd; /* must be first */
diff --git a/common/partitions/parser.h b/include/partitions.h
similarity index 100%
rename from common/partitions/parser.h
rename to include/partitions.h
-- 
2.39.2




More information about the barebox mailing list