summaryrefslogtreecommitdiffstats
path: root/vpnor/test/write_toc.cpp
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2019-03-18 13:02:01 +1030
committerAndrew Jeffery <andrew@aj.id.au>2019-03-19 16:41:12 +1030
commit035ad76b8b45a01cc7fcc184e7e72eed69c0ece5 (patch)
treec95082574c65841246e901d4eb910e3e598e15c6 /vpnor/test/write_toc.cpp
parentf4bc335b4fc899509c92c230f746fe90a5aa43d2 (diff)
downloadphosphor-mboxbridge-035ad76b8b45a01cc7fcc184e7e72eed69c0ece5.tar.gz
phosphor-mboxbridge-035ad76b8b45a01cc7fcc184e7e72eed69c0ece5.zip
vpnor: Consolidate backend and mboxd_pnor_partition_table sources
Change-Id: Ibf66c3a86c2a50e2304fb968f8c912ede84cf719 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Diffstat (limited to 'vpnor/test/write_toc.cpp')
-rw-r--r--vpnor/test/write_toc.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/vpnor/test/write_toc.cpp b/vpnor/test/write_toc.cpp
index 8b690a1..d8b63ce 100644
--- a/vpnor/test/write_toc.cpp
+++ b/vpnor/test/write_toc.cpp
@@ -2,20 +2,20 @@
// Copyright (C) 2018 IBM Corp.
#include "config.h"
-#include "vpnor/pnor_partition_table.hpp"
-
-#include <sys/mman.h>
-
-#include <cassert>
-#include <cstring>
-
extern "C" {
+#include "backend.h"
#include "test/mbox.h"
#include "test/system.h"
}
+#include "vpnor/pnor_partition_table.hpp"
#include "vpnor/test/tmpd.hpp"
+#include <sys/mman.h>
+
+#include <cassert>
+#include <cstring>
+
static constexpr auto BLOCK_SIZE = 4 * 1024;
static constexpr auto PNOR_SIZE = 2 * BLOCK_SIZE;
static constexpr auto MEM_SIZE = BLOCK_SIZE;
OpenPOWER on IntegriCloud