summaryrefslogtreecommitdiffstats
path: root/lib/random32.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-09-20 14:33:12 +0200
committerJens Axboe <axboe@kernel.dk>2021-10-18 14:17:01 +0200
commit348332e000697b4ca82ef96719e02876434b8346 (patch)
tree951292e682a52babe7dae0b25a403e63520c7fab /lib/random32.c
parentblk-cgroup: blk_cgroup_bio_start() should use irq-safe operations on blkg->io... (diff)
downloadlinux-348332e000697b4ca82ef96719e02876434b8346.tar.xz
linux-348332e000697b4ca82ef96719e02876434b8346.zip
mm: don't include <linux/blk-cgroup.h> in <linux/writeback.h>
blk-cgroup.h pulls in blkdev.h and thus pretty much all the block headers. Break this dependency chain by turning wbc_blkcg_css into a macro and dropping the blk-cgroup.h include. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Link: https://lore.kernel.org/r/20210920123328.1399408-2-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/random32.c')
-rw-r--r--lib/random32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/random32.c b/lib/random32.c
index 4d0e05e471d7..a57a0e18819d 100644
--- a/lib/random32.c
+++ b/lib/random32.c
@@ -39,6 +39,7 @@
#include <linux/random.h>
#include <linux/sched.h>
#include <linux/bitops.h>
+#include <linux/slab.h>
#include <asm/unaligned.h>
#include <trace/events/random.h>