[PATCH v6 12/19] string: Remove strstarts()

From: Alejandro Colomar

Date: Sat Nov 14 2026 - 10:23:46 EST


It's now unused, as it's been fully replaced by strprefix().

Signed-off-by: Alejandro Colomar <alx@xxxxxxxxxx>
---
include/linux/string.h | 1 -
1 file changed, 1 deletion(-)

diff --git a/include/linux/string.h b/include/linux/string.h
index 0a466360dbb3..6b0de932e23a 100644
--- a/include/linux/string.h
+++ b/include/linux/string.h
@@ -609,7 +609,6 @@ static inline const char *strprefix(const char *s, const char *prefix)
return strncmp(s, prefix, len) == 0 ? s + len : NULL;
}
#define strprefix(s, pfx) const_cast(CQChar_of(s) *, strprefix(s, pfx))
-#define strstarts(s, pfx) strprefix(s, pfx) // legacy alias

/**
* str_has_prefix - Test if a string has a given prefix
--
2.55.0

Attachment: signature.asc
Description: PGP signature