Re: [PATCH v4 0/6] Add strprefix() and fix a bug with it
From: Alejandro Colomar
Date: Fri Nov 13 2026 - 14:27:36 EST
Hi Bart,
> Date: 2026-11-13 10:25:00+0100
> From: Bartosz Golaszewski <brgl@xxxxxxxxxx>
>
[...]
> > Are you sure that it's okay to use asm/bug.h APIs in string.h?
> > The include/linux/string.h along with the backed C implementations is really
> > special in the kernel. Hint: check which stages of kernel boot use it.
> >
>
> Agreed. I'd just move the implementation into lib/string.c and not do a
> static inline function here.
Hmm, thanks! I'll do that.
Have a lovely day!
Alex
>
> Bart
--
<https://www.alejandro-colomar.es>
Attachment:
signature.asc
Description: PGP signature