Message ID | 20221104225153.2710873-2-heiko@sntech.de (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Palmer Dabbelt |
Headers | show |
Series | String optimizations and call support in alternatives | expand |
Context | Check | Description |
---|---|---|
conchuod/tree_selection | fail | Guessing tree name failed |
diff --git a/include/linux/string.h b/include/linux/string.h index cf7607b32102..2e5483238532 100644 --- a/include/linux/string.h +++ b/include/linux/string.h @@ -206,6 +206,7 @@ extern ssize_t memory_read_from_buffer(void *to, size_t count, loff_t *ppos, int ptr_to_hashval(const void *ptr, unsigned long *hashval_out); +#ifndef __HAVE_ARCH_STRSTARTS /** * strstarts - does @str start with @prefix? * @str: string to examine @@ -215,6 +216,7 @@ static inline bool strstarts(const char *str, const char *prefix) { return strncmp(str, prefix, strlen(prefix)) == 0; } +#endif size_t memweight(const void *ptr, size_t bytes);
In some special cases it may be necessary to also override the inline strstarts() function, so move the relevant #ifdef in place. Signed-off-by: Heiko Stuebner <heiko@sntech.de> --- include/linux/string.h | 2 ++ 1 file changed, 2 insertions(+)