Make linux_errtbl[] static.

MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D27004
This commit is contained in:
Edward Tomasz Napierala 2020-11-03 19:12:33 +00:00
parent 664eefe222
commit 7abf30d339
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=367301
4 changed files with 1 additions and 5 deletions

View file

@ -37,7 +37,6 @@ __FBSDID("$FreeBSD$");
#if defined(__aarch64__) || defined(__amd64__) || defined(__i386__)
#include <compat/linux/linux_errno.h>
static
#include <compat/linux/linux_errno.inc>
#endif

View file

@ -80,6 +80,4 @@ struct linux_pemuldata {
struct linux_pemuldata *pem_find(struct proc *);
extern const int linux_errtbl[];
#endif /* !_LINUX_EMUL_H_ */

View file

@ -38,7 +38,7 @@
* XXX: The "XXX" comments below should be replaced with rationale
* for the errno value chosen.
*/
const int linux_errtbl[ELAST + 1] = {
static const int linux_errtbl[ELAST + 1] = {
/* [0, 9] */
[0] = -0,
[EPERM] = -LINUX_EPERM,

View file

@ -9,7 +9,6 @@ SRCS= linux_common.c linux_mib.c linux_mmap.c linux_util.c linux_emul.c \
EXPORT_SYMS=
EXPORT_SYMS+= linux_emul_path
EXPORT_SYMS+= linux_errtbl
EXPORT_SYMS+= linux_ioctl_register_handler
EXPORT_SYMS+= linux_ioctl_unregister_handler
EXPORT_SYMS+= linux_get_osname