diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-04-25 14:45:28 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-09-11 23:59:47 -0400 |
commit | 21db931445d85a14c0a64a9d54c7617a8c6e5762 (patch) | |
tree | 371854e79fc76b6b6d87df82e5ed6a649b91d509 /lib/errname.c | |
parent | 83feeb195592b533541ff6399c8084e5b7c59677 (diff) |
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); |