Skip to content

Commit 387048b

Browse files
Christoph Hellwigaxboe
authored andcommitted
block: merge partition-generic.c and check.c
Merge block/partition-generic.c and block/partitions/check.c into a single block/partitions/core.c as the content is closely related and both files are tiny. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 3f4fc59 commit 387048b

5 files changed

Lines changed: 166 additions & 202 deletions

File tree

‎block/Makefile‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ obj-$(CONFIG_BLOCK) := bio.o elevator.o blk-core.o blk-sysfs.o \
88
blk-exec.o blk-merge.o blk-softirq.o blk-timeout.o \
99
blk-lib.o blk-mq.o blk-mq-tag.o blk-stat.o \
1010
blk-mq-sysfs.o blk-mq-cpumap.o blk-mq-sched.o ioctl.o \
11-
genhd.o partition-generic.o ioprio.o \
12-
badblocks.o partitions/ blk-rq-qos.o
11+
genhd.o ioprio.o badblocks.o partitions/ blk-rq-qos.o
1312

1413
obj-$(CONFIG_BOUNCE) += bounce.o
1514
obj-$(CONFIG_BLK_SCSI_REQUEST) += scsi_ioctl.o

‎block/partitions/Makefile‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
# Makefile for the linux kernel.
44
#
55

6-
obj-$(CONFIG_BLOCK) := check.o
7-
6+
obj-$(CONFIG_BLOCK) += core.o
87
obj-$(CONFIG_ACORN_PARTITION) += acorn.o
98
obj-$(CONFIG_AMIGA_PARTITION) += amiga.o
109
obj-$(CONFIG_ATARI_PARTITION) += atari.o

‎block/partitions/check.c‎

Lines changed: 0 additions & 179 deletions
This file was deleted.

‎block/partitions/check.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ struct parsed_partitions {
2323
char *pp_buf;
2424
};
2525

26-
void free_partitions(struct parsed_partitions *state);
27-
28-
struct parsed_partitions *
29-
check_partition(struct gendisk *, struct block_device *);
30-
3126
typedef struct {
3227
struct page *v;
3328
} Sector;

0 commit comments

Comments
 (0)