[PATCH v6 19/19] string: Remove strends()
From: Alejandro Colomar
Date: Sat Nov 14 2026 - 10:25:01 EST
It's now unused, as it's been fully replaced by strsuffix().
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 7469d4634b3e..f41f30f8bac7 100644
--- a/include/linux/string.h
+++ b/include/linux/string.h
@@ -633,7 +633,6 @@ static inline const char *strsuffix(const char *s, const char *suffix)
return streq(s + off, suffix) ? s + off : NULL;
}
#define strsuffix(s, sfx) const_cast(CQChar_of(s) *, strsuffix(s, sfx))
-#define strends(s, sfx) strsuffix(s, sfx) // legacy alias
/**
* str_has_prefix - Test if a string has a given prefix
--
2.55.0
Attachment:
signature.asc
Description: PGP signature