string_helpers: Move string_is_valid() to the header
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 8 Feb 2023 13:31:51 +0000 (15:31 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Feb 2023 06:30:24 +0000 (22:30 -0800)
commitf1db99c07b4f0a9edc45f3498d4d13d13a41836a
tree598bb0442756c5e932bf7e9d80445e9818b98be5
parenta136391ae4216a5713f9527c8a05e9364f059a31
string_helpers: Move string_is_valid() to the header

Move string_is_valid() to the header for wider use.

While at it, rename to string_is_terminated() to be
precise about its semantics.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20230208133153.22528-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/string_helpers.h
net/tipc/netlink_compat.c