Commit 21db9314 authored by Kent Overstreet's avatar Kent Overstreet

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: default avatarChristopher James Halse Rogers <raof@ubuntu.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 83feeb19
......@@ -228,3 +228,4 @@ const char *errname(int err)
return err > 0 ? name + 1 : name;
}
EXPORT_SYMBOL(errname);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment