[PATCH v2 01/14] lib/string: extract generic strlen() into __generic_strlen()
Andy Shevchenko
andriy.shevchenko at intel.com
Tue Jan 13 00:33:37 PST 2026
On Tue, Jan 13, 2026 at 04:27:35PM +0800, Feng Jiang wrote:
> To support performance benchmarking in KUnit tests, extract the
> generic C implementation of strlen() into a standalone function
> __generic_strlen(). This allows tests to compare architecture-optimized
> versions against the generic baseline without duplicating code.
...
> +size_t strlen(const char *s)
> +{
> + return __generic_strlen(s);
> +}
> EXPORT_SYMBOL(strlen);
There is no point anymore to have this as an exported function, right? So it can
be moved to string.h as static inline.
--
With Best Regards,
Andy Shevchenko
More information about the linux-riscv
mailing list