Commit 13a622a5 authored by Daniel Verkamp's avatar Daniel Verkamp Committed by Ben Walker
Browse files

bdev/gpt: clean up #includes



Remove unnecessary headers and order the remaining #includes correctly.

Change-Id: I6b331aa1514e55e7bf56a07be23f630e4ae3fcdb
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/370731


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
parent d6951822
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -31,16 +31,11 @@
 *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include "spdk_internal/event.h"
#include "spdk_internal/bdev.h"
#include "spdk_internal/log.h"

#include "gpt.h"

#include "spdk/event.h"
#include "spdk/endian.h"
#include "spdk/env.h"
#include "spdk/io_channel.h"

#include "spdk_internal/log.h"

#define GPT_PRIMARY_PARTITION_TABLE_LBA 0x1
#define PRIMARY_PARTITION_NUMBER 4
+2 −1
Original line number Diff line number Diff line
@@ -38,8 +38,9 @@
#ifndef SPDK_INTERNAL_GPT_H
#define SPDK_INTERNAL_GPT_H

#include "spdk/stdinc.h"

#include "spdk/gpt_spec.h"
#include "spdk/bdev.h"

#define SPDK_GPT_PART_TYPE_GUID SPDK_GPT_GUID(0x7c5222bd, 0x8f5d, 0x4087, 0x9c00, 0xbf9843c7b58c)
#define SPDK_GPT_BUFFER_SIZE 32768  /* 32KB */
+3 −5
Original line number Diff line number Diff line
@@ -36,21 +36,19 @@
 * each partition.
 */

#include "spdk/stdinc.h"
#include "gpt.h"

#include "spdk/rpc.h"
#include "spdk/conf.h"
#include "spdk/endian.h"
#include "spdk/io_channel.h"
#include "spdk/env.h"
#include "spdk/io_channel.h"
#include "spdk/rpc.h"
#include "spdk/string.h"
#include "spdk/util.h"

#include "spdk_internal/bdev.h"
#include "spdk_internal/log.h"

#include "gpt.h"

SPDK_DECLARE_BDEV_MODULE(gpt);

/* Base block device gpt context */