Skip to contentSkip to conversation

lib-test-string_helpers-add-test-cases-for-new-features.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 6, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: lib/test-string_helpers: add test cases for new features
has been removed from the -mm tree. Its filename was
lib-test-string_helpers-add-test-cases-for-new-features.patch

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

------------------------------------------------------
From: Andy Shevchenko <[email protected]>
Subject: lib/test-string_helpers: add test cases for new features

We have got new flags and hence new features of string_escape_mem(). Add test cases for that.

---

 include/linux/string_helpers.h |    4 
 lib/test-string_helpers.c      |  141 +++++++++++++++++++++++++++++--
 2 files changed, 137 insertions(+), 8 deletions(-)
include/linux/string_helpers.h renamed from include/linux/string_helpers.h~lib-test-string_helpers-add-test-cases-for-new-features +4 -0
@@ -26,6 +26,8 @@ void string_get_size(u64 size, u64 blk_s
 #define UNESCAPE_ANY		\
 	(UNESCAPE_SPACE | UNESCAPE_OCTAL | UNESCAPE_HEX | UNESCAPE_SPECIAL)
 
+#define UNESCAPE_ALL_MASK	GENMASK(3, 0)
+
 int string_unescape(char *src, char *dst, size_t size, unsigned int flags);
 
 static inline int string_unescape_inplace(char *buf, unsigned int flags)
@@ -56,6 +58,8 @@ static inline int string_unescape_any_in
 #define ESCAPE_NAP		BIT(7)
 #define ESCAPE_APPEND		BIT(8)
 
+#define ESCAPE_ALL_MASK		GENMASK(8, 0)
+
 int string_escape_mem(const char *src, size_t isz, char *dst, size_t osz,
 		unsigned int flags, const char *only);
 
lib/test-string_helpers.c renamed from lib/test-string_helpers.c~lib-test-string_helpers-add-test-cases-for-new-features +133 -8

188 lines not on this page · raw message

_

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