[PATCH 1/4] include: string: migrate barebox function from <linux/string.h>

Sascha Hauer s.hauer at pengutronix.de
Fri Oct 2 00:10:20 EDT 2020


On Wed, Sep 30, 2020 at 02:53:00PM +0200, Ahmad Fatoum wrote:
> <linux/string.h> was imported from Linux. In order to keep changes
> to a minimum, add prototypes for new barebox functions to <string.h>
> instead.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
> ---
>  include/linux/string.h | 1 -
>  include/string.h       | 1 +
>  2 files changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha

> 
> diff --git a/include/linux/string.h b/include/linux/string.h
> index 2b699957e824..85c3eb1de340 100644
> --- a/include/linux/string.h
> +++ b/include/linux/string.h
> @@ -10,7 +10,6 @@ extern "C" {
>  
>  extern char * strpbrk(const char *,const char *);
>  extern char * strsep(char **,const char *);
> -extern char * strsep_unescaped(char **,const char *);
>  extern __kernel_size_t strspn(const char *,const char *);
>  
>  
> diff --git a/include/string.h b/include/string.h
> index 727bc51934bc..063e85f62cf8 100644
> --- a/include/string.h
> +++ b/include/string.h
> @@ -5,6 +5,7 @@
>  #include <linux/string.h>
>  
>  int strtobool(const char *str, int *val);
> +char *strsep_unescaped(char **, const char *);
>  
>  void *__default_memset(void *, int, __kernel_size_t);
>  void *__nokasan_default_memset(void *, int, __kernel_size_t);
> -- 
> 2.28.0
> 
> 
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list