Skip to contentSkip to conversation

lib-string-remove-unnecessary-undefs.patch removed from -mm tree

merged [email protected] 1 participant 1 message Dec 16, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: lib/string: remove unnecessary #undefs
has been removed from the -mm tree. Its filename was
lib-string-remove-unnecessary-undefs.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Nick Desaulniers <[email protected]>
Subject: lib/string: remove unnecessary #undefs

A few architecture specific string.h functions used to be implemented in terms of preprocessor defines to the corresponding compiler builtins. Since this is no longer the case, remove unused #undefs.

Only memcmp is still defined in terms of builtins for a few arches.

Fixes 5f074f3e192f ("lib/string.c: implement a basic bcmp")
Cc Andy Shevchenko <[email protected]>
Cc Yury Norov <[email protected]>
Cc Alexandru Ardelean <[email protected]>
Cc Nathan Chancellor <[email protected]>
Cc Masahiro Yamada <[email protected]>

---

 lib/string.c |    4 ----
 1 file changed, 4 deletions(-)
lib/string.c renamed from lib/string.c~lib-string-remove-unnecessary-undefs +0 -4
@@ -85,7 +85,6 @@ EXPORT_SYMBOL(strcasecmp);
  * @dest: Where to copy the string to
  * @src: Where to copy the string from
  */
-#undef strcpy
 char *strcpy(char *dest, const char *src)
 {
 	char *tmp = dest;
@@ -302,7 +301,6 @@ EXPORT_SYMBOL(stpcpy);
  * @dest: The string to be appended to
  * @src: The string to append to it
  */
-#undef strcat
 char *strcat(char *dest, const char *src)
 {
 	char *tmp = dest;
@@ -378,7 +376,6 @@ EXPORT_SYMBOL(strlcat);
  * @cs: One string
  * @ct: Another string
  */
-#undef strcmp
 int strcmp(const char *cs, const char *ct)
 {
 	unsigned char c1, c2;
@@ -958,7 +955,6 @@ EXPORT_SYMBOL(memcmp);
  * while this particular implementation is a simple (tail) call to memcmp, do
  * not rely on anything but whether the return value is zero or non-zero.
  */
-#undef bcmp
 int bcmp(const void *a, const void *b, size_t len)
 {
 	return memcmp(a, b, len);

_

Patches currently in -mm which might be from [email protected] are