From 21db931445d85a14c0a64a9d54c7617a8c6e5762 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Tue, 25 Apr 2023 14:45:28 -0400 Subject: lib: Export errname errname() returns the name of an errcode; this functionality is otherwise only available for error pointers via %pE - bcachefs uses this for better error messages. Signed-off-by: Christopher James Halse Rogers Signed-off-by: Kent Overstreet --- lib/errname.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/errname.c') diff --git a/lib/errname.c b/lib/errname.c index 67739b174a8c..dd1b998552cd 100644 --- a/lib/errname.c +++ b/lib/errname.c @@ -228,3 +228,4 @@ const char *errname(int err) return err > 0 ? name + 1 : name; } +EXPORT_SYMBOL(errname); -- cgit v1.2.3