search for: 6cc85dc

Displaying 5 results from an estimated 5 matches for "6cc85dc".

2016 Jul 13
1
[PATCH v3 0/7] lib: string: add functions to case-convert strings
...static inline functions as "void" (since they won't ever return E2BIG anyway) and just have strlcpyto* return an integer (since that's where the buffer could be too small). Rasmus, what's your take? diff --git a/include/linux/string.h b/include/linux/string.h index ae82d13..6cc85dc 100644 --- a/include/linux/string.h +++ b/include/linux/string.h @@ -116,8 +116,8 @@ extern void * memchr(const void *,int,__kernel_size_t); #endif void *memchr_inv(const void *s, int c, size_t n); char *strreplace(char *s, char old, char new); -extern void strlcpytoupper(char *dst, const char *...
2016 Jul 10
1
[PATCH v3 0/7] lib: string: add functions to case-convert strings
On 7/8/2016 6:43 PM, Markus Mayer wrote: > This series introduces a family of generic string case conversion > functions. This kind of functionality is needed in several places in > the kernel. Right now, everybody seems to be implementing their own > copy of this functionality. > > Based on the discussion of the previous version of this series[1] and > the use cases found in
2016 Jul 13
2
[PATCH v3 1/7] lib: string: add functions to case-convert strings
...'t do anything. To get past that issue, I can move "#include <linux/kernel.h>" all the way down and only include it directly before my new functions. That way strstr() is declared when dynamic_debug.h wants it. diff --git a/include/linux/string.h b/include/linux/string.h index 6cc85dc..eb2d9a8 100644 --- a/include/linux/string.h +++ b/include/linux/string.h @@ -171,6 +171,8 @@ static inline const char *kbasename(const char *path) return tail ? tail + 1 : path; } +#include <linux/kernel.h> + /** * strcpytoupper - Copy string and convert to uppercase. * @dst:...
2016 Jul 13
0
[PATCH v3 1/7] lib: string: add functions to case-convert strings
...et past that issue, I can move "#include <linux/kernel.h>" all the > way down and only include it directly before my new functions. That > way strstr() is declared when dynamic_debug.h wants it. > > diff --git a/include/linux/string.h b/include/linux/string.h > index 6cc85dc..eb2d9a8 100644 > --- a/include/linux/string.h > +++ b/include/linux/string.h > @@ -171,6 +171,8 @@ static inline const char *kbasename(const char *path) > return tail ? tail + 1 : path; > } > > +#include <linux/kernel.h> > + > /** > * strcpytoupper...
2016 Jul 11
2
[PATCH v3 1/7] lib: string: add functions to case-convert strings
On 9 July 2016 at 08:30, Markus Mayer <markus.mayer at broadcom.com> wrote: > On 9 July 2016 at 05:04, Luis de Bethencourt <luisbg at osg.samsung.com> wrote: >> On 08/07/16 23:43, Markus Mayer wrote: >>> Add a collection of generic functions to convert strings to lowercase >>> or uppercase. >>> >>> Changing the case of a string (with or