Skip to content

Commit

Permalink
block: merge partition-generic.c and check.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and axboe committed Mar 24, 2020
1 parent 3f4fc59 commit 387048b
Show file tree
Hide file tree
Showing 5 changed files with 166 additions and 202 deletions.
3 changes: 1 addition & 2 deletions block/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ obj-$(CONFIG_BLOCK) := bio.o elevator.o blk-core.o blk-sysfs.o \
blk-exec.o blk-merge.o blk-softirq.o blk-timeout.o \
blk-lib.o blk-mq.o blk-mq-tag.o blk-stat.o \
blk-mq-sysfs.o blk-mq-cpumap.o blk-mq-sched.o ioctl.o \
genhd.o partition-generic.o ioprio.o \
badblocks.o partitions/ blk-rq-qos.o
genhd.o ioprio.o badblocks.o partitions/ blk-rq-qos.o

obj-$(CONFIG_BOUNCE) += bounce.o
obj-$(CONFIG_BLK_SCSI_REQUEST) += scsi_ioctl.o
Expand Down
3 changes: 1 addition & 2 deletions block/partitions/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
# Makefile for the linux kernel.
#

obj-$(CONFIG_BLOCK) := check.o

obj-$(CONFIG_BLOCK) += core.o
obj-$(CONFIG_ACORN_PARTITION) += acorn.o
obj-$(CONFIG_AMIGA_PARTITION) += amiga.o
obj-$(CONFIG_ATARI_PARTITION) += atari.o
Expand Down
179 changes: 0 additions & 179 deletions block/partitions/check.c

This file was deleted.

5 changes: 0 additions & 5 deletions block/partitions/check.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ struct parsed_partitions {
char *pp_buf;
};

void free_partitions(struct parsed_partitions *state);

struct parsed_partitions *
check_partition(struct gendisk *, struct block_device *);

typedef struct {
struct page *v;
} Sector;
Expand Down
Loading

0 comments on commit 387048b

Please sign in to comment.