Author: trasz
Date: Tue Nov  3 19:12:33 2020
New Revision: 367301
URL: https://svnweb.freebsd.org/changeset/base/367301

Log:
  Make linux_errtbl[] static.
  
  MFC after:    2 weeks
  Sponsored by: The FreeBSD Foundation
  Differential Revision:        https://reviews.freebsd.org/D27004

Modified:
  head/lib/libsysdecode/errno.c
  head/sys/compat/linux/linux_emul.h
  head/sys/compat/linux/linux_errno.inc
  head/sys/modules/linux_common/Makefile

Modified: head/lib/libsysdecode/errno.c
==============================================================================
--- head/lib/libsysdecode/errno.c       Tue Nov  3 18:13:42 2020        
(r367300)
+++ head/lib/libsysdecode/errno.c       Tue Nov  3 19:12:33 2020        
(r367301)
@@ -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
 

Modified: head/sys/compat/linux/linux_emul.h
==============================================================================
--- head/sys/compat/linux/linux_emul.h  Tue Nov  3 18:13:42 2020        
(r367300)
+++ head/sys/compat/linux/linux_emul.h  Tue Nov  3 19:12:33 2020        
(r367301)
@@ -80,6 +80,4 @@ struct linux_pemuldata {
 
 struct linux_pemuldata *pem_find(struct proc *);
 
-extern const int linux_errtbl[];
-
 #endif /* !_LINUX_EMUL_H_ */

Modified: head/sys/compat/linux/linux_errno.inc
==============================================================================
--- head/sys/compat/linux/linux_errno.inc       Tue Nov  3 18:13:42 2020        
(r367300)
+++ head/sys/compat/linux/linux_errno.inc       Tue Nov  3 19:12:33 2020        
(r367301)
@@ -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,

Modified: head/sys/modules/linux_common/Makefile
==============================================================================
--- head/sys/modules/linux_common/Makefile      Tue Nov  3 18:13:42 2020        
(r367300)
+++ head/sys/modules/linux_common/Makefile      Tue Nov  3 19:12:33 2020        
(r367301)
@@ -9,7 +9,6 @@ SRCS=   linux_common.c linux_mib.c linux_mmap.c linux_ut
 
 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
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to