block: move struct partition out of genhd.h
struct partition is the on-disk format of a MSDOS partition table entry. Move it out of genhd.h into a new msdos_partition.h header and give it a msdos_ prefix to avoid confusion. Also move the magic number from block/partitions/msdos.h to the new header so that it can be used by the SCSI drivers looking at the DOS partition tables. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:

committed by
Jens Axboe

parent
cbb5cb3b29
commit
1442f76d43
@@ -38,6 +38,7 @@
|
||||
#include <linux/hrtimer.h>
|
||||
#include <linux/uuid.h>
|
||||
#include <linux/t10-pi.h>
|
||||
#include <linux/msdos_partition.h>
|
||||
|
||||
#include <net/checksum.h>
|
||||
|
||||
@@ -4146,7 +4147,7 @@ static int scsi_debug_host_reset(struct scsi_cmnd *SCpnt)
|
||||
static void __init sdebug_build_parts(unsigned char *ramp,
|
||||
unsigned long store_size)
|
||||
{
|
||||
struct partition *pp;
|
||||
struct msdos_partition *pp;
|
||||
int starts[SDEBUG_MAX_PARTS + 2];
|
||||
int sectors_per_part, num_sectors, k;
|
||||
int heads_by_sects, start_sec, end_sec;
|
||||
@@ -4171,7 +4172,7 @@ static void __init sdebug_build_parts(unsigned char *ramp,
|
||||
|
||||
ramp[510] = 0x55; /* magic partition markings */
|
||||
ramp[511] = 0xAA;
|
||||
pp = (struct partition *)(ramp + 0x1be);
|
||||
pp = (struct msdos_partition *)(ramp + 0x1be);
|
||||
for (k = 0; starts[k + 1]; ++k, ++pp) {
|
||||
start_sec = starts[k];
|
||||
end_sec = starts[k + 1] - 1;
|
||||
|
Reference in New Issue
Block a user