* [PATCH v1 0/2] bitmap-str: A couple of cleanups
@ 2025-04-15 8:31 Andy Shevchenko
2025-04-15 8:31 ` [PATCH v1 1/2] bitmap-str: Get rid of extern Andy Shevchenko
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Andy Shevchenko @ 2025-04-15 8:31 UTC (permalink / raw)
To: linux-kernel; +Cc: Yury Norov, Rasmus Villemoes, 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(-)
--
2.47.2
^ permalink raw reply [flat|nested] 7+ messages in thread* [PATCH v1 1/2] bitmap-str: Get rid of extern 2025-04-15 8:31 [PATCH v1 0/2] bitmap-str: A couple of cleanups Andy Shevchenko @ 2025-04-15 8:31 ` Andy Shevchenko 2025-04-15 8:31 ` [PATCH v1 2/2] bitmap-str: Add missing header(s) Andy Shevchenko 2025-04-15 12:35 ` [PATCH v1 0/2] bitmap-str: A couple of cleanups Yury Norov 2 siblings, 0 replies; 7+ messages in thread From: Andy Shevchenko @ 2025-04-15 8:31 UTC (permalink / raw) To: linux-kernel; +Cc: Yury Norov, Rasmus Villemoes, Andy Shevchenko Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> --- include/linux/bitmap-str.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/bitmap-str.h b/include/linux/bitmap-str.h index 17caeca94cab..d758b4809a3a 100644 --- a/include/linux/bitmap-str.h +++ b/include/linux/bitmap-str.h @@ -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, -- 2.47.2 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v1 2/2] bitmap-str: Add missing header(s) 2025-04-15 8:31 [PATCH v1 0/2] bitmap-str: A couple of cleanups Andy Shevchenko 2025-04-15 8:31 ` [PATCH v1 1/2] bitmap-str: Get rid of extern Andy Shevchenko @ 2025-04-15 8:31 ` Andy Shevchenko 2025-04-15 12:35 ` [PATCH v1 0/2] bitmap-str: A couple of cleanups Yury Norov 2 siblings, 0 replies; 7+ messages in thread From: Andy Shevchenko @ 2025-04-15 8:31 UTC (permalink / raw) To: linux-kernel; +Cc: Yury Norov, Rasmus Villemoes, Andy Shevchenko Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> --- include/linux/bitmap-str.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/bitmap-str.h b/include/linux/bitmap-str.h index d758b4809a3a..53d3e1b32d3d 100644 --- a/include/linux/bitmap-str.h +++ b/include/linux/bitmap-str.h @@ -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, -- 2.47.2 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v1 0/2] bitmap-str: A couple of cleanups 2025-04-15 8:31 [PATCH v1 0/2] bitmap-str: A couple of cleanups Andy Shevchenko 2025-04-15 8:31 ` [PATCH v1 1/2] bitmap-str: Get rid of extern Andy Shevchenko 2025-04-15 8:31 ` [PATCH v1 2/2] bitmap-str: Add missing header(s) Andy Shevchenko @ 2025-04-15 12:35 ` Yury Norov 2025-04-16 6:32 ` Andy Shevchenko 2 siblings, 1 reply; 7+ messages in thread From: Yury Norov @ 2025-04-15 12:35 UTC (permalink / raw) To: Andy Shevchenko; +Cc: linux-kernel, Rasmus Villemoes On Tue, Apr 15, 2025 at 11:31:18AM +0300, Andy Shevchenko wrote: > 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v1 0/2] bitmap-str: A couple of cleanups 2025-04-15 12:35 ` [PATCH v1 0/2] bitmap-str: A couple of cleanups Yury Norov @ 2025-04-16 6:32 ` Andy Shevchenko 0 siblings, 0 replies; 7+ messages in thread From: Andy Shevchenko @ 2025-04-16 6:32 UTC (permalink / raw) To: Yury Norov; +Cc: linux-kernel, Rasmus Villemoes On Tue, Apr 15, 2025 at 08:35:02AM -0400, Yury Norov wrote: > On Tue, Apr 15, 2025 at 11:31:18AM +0300, Andy Shevchenko wrote: > > 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? Sure thing. Done! -- With Best Regards, Andy Shevchenko ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v1 0/2] bitmap-str: A couple of fixes @ 2023-12-15 18:41 Andy Shevchenko 2023-12-15 18:41 ` [PATCH v1 2/2] bitmap-str: Add missing header(s) Andy Shevchenko 0 siblings, 1 reply; 7+ messages in thread From: Andy Shevchenko @ 2023-12-15 18:41 UTC (permalink / raw) To: Yury Norov, Andy Shevchenko, linux-kernel; +Cc: Rasmus Villemoes Imtended to be folded into original code, hence no proper commit messages. 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(-) -- 2.43.0.rc1.1.gbec44491f096 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v1 2/2] bitmap-str: Add missing header(s) 2023-12-15 18:41 [PATCH v1 0/2] bitmap-str: A couple of fixes Andy Shevchenko @ 2023-12-15 18:41 ` Andy Shevchenko 2023-12-15 19:05 ` Yury Norov 0 siblings, 1 reply; 7+ messages in thread From: Andy Shevchenko @ 2023-12-15 18:41 UTC (permalink / raw) To: Yury Norov, Andy Shevchenko, linux-kernel; +Cc: Rasmus Villemoes Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> --- include/linux/bitmap-str.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/bitmap-str.h b/include/linux/bitmap-str.h index d758b4809a3a..53d3e1b32d3d 100644 --- a/include/linux/bitmap-str.h +++ b/include/linux/bitmap-str.h @@ -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, -- 2.43.0.rc1.1.gbec44491f096 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v1 2/2] bitmap-str: Add missing header(s) 2023-12-15 18:41 ` [PATCH v1 2/2] bitmap-str: Add missing header(s) Andy Shevchenko @ 2023-12-15 19:05 ` Yury Norov 0 siblings, 0 replies; 7+ messages in thread From: Yury Norov @ 2023-12-15 19:05 UTC (permalink / raw) To: Andy Shevchenko; +Cc: linux-kernel, Rasmus Villemoes On Fri, Dec 15, 2023 at 08:41:09PM +0200, Andy Shevchenko wrote: > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> > --- > include/linux/bitmap-str.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/linux/bitmap-str.h b/include/linux/bitmap-str.h > index d758b4809a3a..53d3e1b32d3d 100644 > --- a/include/linux/bitmap-str.h > +++ b/include/linux/bitmap-str.h > @@ -2,6 +2,8 @@ > #ifndef __LINUX_BITMAP_STR_H > #define __LINUX_BITMAP_STR_H > > +#include <linux/types.h> There's no sense in including this header without bitmap.h, and the latter includes linux/types.h, so no need to include it here again. If you want to make it more rigorous, you can do like this: #ifndef __LINUX_BITMAP_H #error "Don't include separately from linux/bitmap.h" #endif > 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, > -- > 2.43.0.rc1.1.gbec44491f096 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-04-16 6:32 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2025-04-15 8:31 [PATCH v1 0/2] bitmap-str: A couple of cleanups Andy Shevchenko 2025-04-15 8:31 ` [PATCH v1 1/2] bitmap-str: Get rid of extern Andy Shevchenko 2025-04-15 8:31 ` [PATCH v1 2/2] bitmap-str: Add missing header(s) Andy Shevchenko 2025-04-15 12:35 ` [PATCH v1 0/2] bitmap-str: A couple of cleanups Yury Norov 2025-04-16 6:32 ` Andy Shevchenko -- strict thread matches above, loose matches on Subject: below -- 2023-12-15 18:41 [PATCH v1 0/2] bitmap-str: A couple of fixes Andy Shevchenko 2023-12-15 18:41 ` [PATCH v1 2/2] bitmap-str: Add missing header(s) Andy Shevchenko 2023-12-15 19:05 ` Yury Norov
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox