summaryrefslogtreecommitdiffstats
path: root/lib/errname.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-04-25 20:45:28 +0200
committerKent Overstreet <kent.overstreet@linux.dev>2023-09-12 05:59:47 +0200
commit21db931445d85a14c0a64a9d54c7617a8c6e5762 (patch)
tree371854e79fc76b6b6d87df82e5ed6a649b91d509 /lib/errname.c
parentlib/string_helpers: string_get_size() now returns characters wrote (diff)
downloadlinux-21db931445d85a14c0a64a9d54c7617a8c6e5762.tar.xz
linux-21db931445d85a14c0a64a9d54c7617a8c6e5762.zip
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 <raof@ubuntu.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'lib/errname.c')
-rw-r--r--lib/errname.c1
1 files changed, 1 insertions, 0 deletions
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);