Skip to content

Commit

Permalink
block: move struct request to blk-mq.h
Browse files Browse the repository at this point in the history
struct request is only used by blk-mq drivers, so move it and all
related declarations to blk-mq.h.

Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Christoph Hellwig authored and axboe committed Oct 18, 2021
1 parent fe45e63 commit 24b83de
Show file tree
Hide file tree
Showing 13 changed files with 476 additions and 475 deletions.
1 change: 1 addition & 0 deletions block/blk-crypto-fallback.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <linux/mempool.h>
#include <linux/module.h>
#include <linux/random.h>
#include <linux/scatterlist.h>

#include "blk-crypto-internal.h"

Expand Down
2 changes: 1 addition & 1 deletion block/blk-crypto-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#define __LINUX_BLK_CRYPTO_INTERNAL_H

#include <linux/bio.h>
#include <linux/blkdev.h>
#include <linux/blk-mq.h>

/* Represents a crypto mode supported by blk-crypto */
struct blk_crypto_mode {
Expand Down
2 changes: 1 addition & 1 deletion drivers/block/rnbd/rnbd-proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#define RNBD_PROTO_H

#include <linux/types.h>
#include <linux/blkdev.h>
#include <linux/blk-mq.h>
#include <linux/limits.h>
#include <linux/inet.h>
#include <linux/in.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/md/dm-verity-target.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "dm-verity-verify-sig.h"
#include <linux/module.h>
#include <linux/reboot.h>
#include <linux/scatterlist.h>

#define DM_MSG_PREFIX "verity"

Expand Down
1 change: 1 addition & 0 deletions drivers/mmc/core/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <linux/slab.h>
#include <linux/stat.h>
#include <linux/pm_runtime.h>
#include <linux/scatterlist.h>

#include <linux/mmc/host.h>
#include <linux/mmc/card.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/target/target_core_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <linux/vmalloc.h>
#include <linux/falloc.h>
#include <linux/uio.h>
#include <linux/scatterlist.h>
#include <scsi/scsi_proto.h>
#include <asm/unaligned.h>

Expand Down
1 change: 1 addition & 0 deletions drivers/target/target_core_iblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <linux/genhd.h>
#include <linux/file.h>
#include <linux/module.h>
#include <linux/scatterlist.h>
#include <scsi/scsi_proto.h>
#include <asm/unaligned.h>

Expand Down
Loading

0 comments on commit 24b83de

Please sign in to comment.