[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230712211115.2174650-11-kent.overstreet@linux.dev>
Date: Wed, 12 Jul 2023 17:11:05 -0400
From: Kent Overstreet <kent.overstreet@...ux.dev>
To: linux-bcachefs@...r.kernel.org, linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Kent Overstreet <kent.overstreet@...ux.dev>,
Christopher James Halse Rogers <raof@...ntu.com>
Subject: [PATCH 10/20] 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@...ntu.com>
Signed-off-by: Kent Overstreet <kent.overstreet@...ux.dev>
---
lib/errname.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/errname.c b/lib/errname.c
index 67739b174a..dd1b998552 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);
--
2.40.1
Powered by blists - more mailing lists