block: move the *_PARTITION enum out of genhd.h
authorChristoph Hellwig <hch@lst.de>
Tue, 24 Mar 2020 07:25:27 +0000 (08:25 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 24 Mar 2020 13:57:08 +0000 (07:57 -0600)
commit0226e9ead44b2eb8f2471d24e0b0c5ff60bc322c
tree747c55518f60af424797c106d92cfd68c5c695a2
parent1442f76d4317b420580e11238d20789708c742a4
block: move the *_PARTITION enum out of genhd.h

The enum containing the *_PARTITION symbolic names is only relevant
for the partition parser.  More specifically most values are MSDOS
partition table system indicators and thus should go straight into
msdos.c.  One value is only used by the sun partition parser, and the
sun and sgi partition parsers use the same value as the x86 Linux
RAID indicator to also indicate RAID autodetection.  Duplicate them
in sun.c and sgi.c given that the different partition types use
entirely different values otherwise.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/partitions/sgi.c
block/partitions/sun.c
include/linux/genhd.h
include/linux/msdos_partition.h