diff options
| author | Andy Shevchenko <[email protected]> | 2021-05-07 01:02:30 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2021-05-07 02:24:11 +0000 |
| commit | 08c5188ef40ff82aed559123dc0ab2d2254b1b1c (patch) | |
| tree | 9460941c35a2fc96c7374ee62e26cddb69b58a9d /tools/lib/bitmap.c | |
| parent | include: remove pagemap.h from blkdev.h (diff) | |
| download | kernel-08c5188ef40ff82aed559123dc0ab2d2254b1b1c.tar.gz kernel-08c5188ef40ff82aed559123dc0ab2d2254b1b1c.zip | |
kernel.h: drop inclusion in bitmap.h
The bitmap.h header is used in a lot of code around the kernel. Besides
that it includes kernel.h which sometimes makes a loop.
The problem here is many unneeded loops that make header hell
dependencies. For example, how may you move bitmap_zalloc() from C-file
to the header? Currently it's impossible. And bitmap.h here is only the
tip of an iceberg.
kerne.h is a dump of everything that even has nothing in common at all.
We may still have it, but in my new code I prefer to include only the
headers that I want to use, without the bulk of unneeded kernel code.
Break the loop by introducing align.h, including it in kernel.h and
bitmap.h followed by replacing kernel.h with limits.h.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Andy Shevchenko <[email protected]>
Acked-by: Yury Norov <[email protected]>
Cc: Rasmus Villemoes <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions
