diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-04-25 20:45:28 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-09-12 05:59:47 +0200 |
commit | 21db931445d85a14c0a64a9d54c7617a8c6e5762 (patch) | |
tree | 371854e79fc76b6b6d87df82e5ed6a649b91d509 /lib/errname.c | |
parent | lib/string_helpers: string_get_size() now returns characters wrote (diff) | |
download | linux-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.c | 1 |
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); |