Rasmus Villemoes | 57f5677 | 2019-10-15 21:07:05 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | #ifndef _LINUX_ERRNAME_H | ||||
3 | #define _LINUX_ERRNAME_H | ||||
4 | |||||
5 | #include <linux/stddef.h> | ||||
6 | |||||
7 | #ifdef CONFIG_SYMBOLIC_ERRNAME | ||||
8 | const char *errname(int err); | ||||
9 | #else | ||||
10 | static inline const char *errname(int err) | ||||
11 | { | ||||
12 | return NULL; | ||||
13 | } | ||||
14 | #endif | ||||
15 | |||||
16 | #endif /* _LINUX_ERRNAME_H */ |