summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2024-02-19 09:31:36 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2024-02-20 11:46:30 +0100
commit5843759d80f728596e50c0db3b45b438596a007b (patch)
tree0034abc34b72ea65da93c94f3dd5ee3c8d6af26a
parent834131b9bae1f2675bfa14e805058df7855fb1fc (diff)
downloadbarebox-5843759d80f7.tar.gz
barebox-5843759d80f7.tar.xz
partitions: move parser.h to include/partitions.h
This will be needed by upcoming partition manipulation code, so move it to include/ Link: https://lore.barebox.org/20240219083140.2713047-9-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--common/partitions.c3
-rw-r--r--common/partitions/dos.c3
-rw-r--r--common/partitions/efi.c2
-rw-r--r--include/partitions.h (renamed from common/partitions/parser.h)0
4 files changed, 3 insertions, 5 deletions
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
index ab593109e6..ab593109e6 100644
--- a/common/partitions/parser.h
+++ b/include/partitions.h