Skip to contentSkip to conversation

bitmap-str: A couple of cleanups

PATCH Superseded Andy Shevchenko 2 participants 5 messages Apr 15, 2025 – Apr 16, 2025 Bitmap API

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover bitmap-str: A couple of cleanups

A couple of simple cleanups to the bitmap-str.h.

Andy Shevchenko (2):
bitmap-str: Get rid of extern
bitmap-str: Add missing header(s)

 include/linux/bitmap-str.h | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
Signature · 1 line
2.47.2
#1 lore raw

PATCH 1/2 bitmap-str: Get rid of extern

---
 include/linux/bitmap-str.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
include/linux/bitmap-str.h +4 -4
index 17caeca94cab..d758b4809a3a 100644
@@ -4,10 +4,10 @@
 
 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);
-extern int bitmap_print_bitmask_to_buf(char *buf, const unsigned long *maskp,
-					int nmaskbits, loff_t off, size_t count);
-extern int bitmap_print_list_to_buf(char *buf, const unsigned long *maskp,
-					int nmaskbits, loff_t off, size_t count);
+int bitmap_print_bitmask_to_buf(char *buf, const unsigned long *maskp, int nmaskbits,
+				loff_t off, size_t count);
+int bitmap_print_list_to_buf(char *buf, const unsigned long *maskp, int nmaskbits,
+			     loff_t off, size_t count);
 int bitmap_parse(const char *buf, unsigned int buflen, unsigned long *dst, int nbits);
 int bitmap_parselist(const char *buf, unsigned long *maskp, int nmaskbits);
 int bitmap_parselist_user(const char __user *ubuf, unsigned int ulen,
Signature · 1 line
2.47.2
#2 lore raw

PATCH 2/2 bitmap-str: Add missing header(s)

In reply to Andy Shevchenko
---
 include/linux/bitmap-str.h | 2 ++
 1 file changed, 2 insertions(+)
include/linux/bitmap-str.h +2 -0
index d758b4809a3a..53d3e1b32d3d 100644
@@ -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,
Signature · 1 line
2.47.2
maintainer
#3 lore raw
In reply to Andy Shevchenko
Quoted 8 lines · Andy Shevchenko

A couple of simple cleanups to the bitmap-str.h.

Andy Shevchenko (2):
bitmap-str: Get rid of extern
bitmap-str: Add missing header(s)

 include/linux/bitmap-str.h | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

Hi Andy,

Can you please resend with non-empty commit message?

Thanks,
Yury

#4 lore raw
Quoted 7 lines · Yury Norov
Quoted 6 lines · Andy Shevchenko

A couple of simple cleanups to the bitmap-str.h.

Andy Shevchenko (2):
bitmap-str: Get rid of extern
bitmap-str: Add missing header(s)

Quoted 6 lines
Quoted 2 lines
 include/linux/bitmap-str.h | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

Hi Andy,

Can you please resend with non-empty commit message?

Sure thing.

Done!

Signature · 2 lines
With Best Regards,
Andy Shevchenko