Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/pgoyette-compat]: src/sys/compat/common Add alias module name 'compat_70...



details:   https://anonhg.NetBSD.org/src/rev/d3106abc4695
branches:  pgoyette-compat
changeset: 321034:d3106abc4695
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Thu Mar 15 22:46:22 2018 +0000

description:
Add alias module name 'compat_70' since the full compat module includes
the entire compat_70 module.

diffstat:

 sys/compat/common/compat_mod.c |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (32 lines):

diff -r 9c01364e6217 -r d3106abc4695 sys/compat/common/compat_mod.c
--- a/sys/compat/common/compat_mod.c    Thu Mar 15 11:57:14 2018 +0000
+++ b/sys/compat/common/compat_mod.c    Thu Mar 15 22:46:22 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_mod.c,v 1.24.14.8 2018/03/15 11:17:54 pgoyette Exp $    */
+/*     $NetBSD: compat_mod.c,v 1.24.14.9 2018/03/15 22:46:22 pgoyette Exp $    */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: compat_mod.c,v 1.24.14.8 2018/03/15 11:17:54 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: compat_mod.c,v 1.24.14.9 2018/03/15 22:46:22 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -78,7 +78,12 @@
 void if_50_fini(void);
 #endif
 
-MODULE(MODULE_CLASS_EXEC, compat, NULL);
+static const char * const compat_includes[] = {
+       "compat_70",
+       NULL
+};
+
+MODULE_WITH_ALIASES(MODULE_CLASS_EXEC, compat, NULL, &compat_includes);
 
 int    ttcompat(struct tty *, u_long, void *, int, struct lwp *);
 



Home | Main Index | Thread Index | Old Index