]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
bitmap-str: Add missing header(s)
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 17 Apr 2025 16:17:16 +0000 (19:17 +0300)
committerYury Norov <yury.norov@gmail.com>
Tue, 29 Apr 2025 19:58:38 +0000 (15:58 -0400)
bitmap-str.h is not self-contained, it uses bool type that is provided
in types.h and it uses __user annotation that is guaranteed to be included
with types.h. Add missing header(s) to follow IWYU (Include What You Use)
principle.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Yury Norov <yury.norov@gmail.com>
include/linux/bitmap-str.h

index d758b4809a3a804a9b851da9e9eb1ddfc9702c6a..53d3e1b32d3d4df0e95c5b63212d22f3e566002a 100644 (file)
@@ -2,6 +2,8 @@
 #ifndef __LINUX_BITMAP_STR_H
 #define __LINUX_BITMAP_STR_H
 
+#include <linux/types.h>
+
 int bitmap_parse_user(const char __user *ubuf, unsigned int ulen, unsigned long *dst, int nbits);
 int bitmap_print_to_pagebuf(bool list, char *buf, const unsigned long *maskp, int nmaskbits);
 int bitmap_print_bitmask_to_buf(char *buf, const unsigned long *maskp, int nmaskbits,