diff mbox series

[1/6] blk-zoned: Minimize #include directives

Message ID 20241216210244.2687662-2-bvanassche@acm.org (mailing list archive)
State New
Headers show
Series Minor improvements for the zoned block storage code | expand

Commit Message

Bart Van Assche Dec. 16, 2024, 9:02 p.m. UTC
Only include those header files that are necessary.

Cc: Damien Le Moal <dlemoal@kernel.org>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
---
 block/blk-zoned.c | 4 ----
 1 file changed, 4 deletions(-)

Comments

Christoph Hellwig Dec. 17, 2024, 4:18 a.m. UTC | #1
Looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>
Damien Le Moal Dec. 17, 2024, 3:07 p.m. UTC | #2
On 2024/12/16 13:02, Bart Van Assche wrote:
> Only include those header files that are necessary.
> 
> Cc: Damien Le Moal <dlemoal@kernel.org>
> Cc: Christoph Hellwig <hch@lst.de>
> Signed-off-by: Bart Van Assche <bvanassche@acm.org>

Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
diff mbox series

Patch

diff --git a/block/blk-zoned.c b/block/blk-zoned.c
index 84da1eadff64..1575b887fa38 100644
--- a/block/blk-zoned.c
+++ b/block/blk-zoned.c
@@ -11,12 +11,8 @@ 
  */
 
 #include <linux/kernel.h>
-#include <linux/module.h>
 #include <linux/blkdev.h>
 #include <linux/blk-mq.h>
-#include <linux/mm.h>
-#include <linux/vmalloc.h>
-#include <linux/sched/mm.h>
 #include <linux/spinlock.h>
 #include <linux/refcount.h>
 #include <linux/mempool.h>