Source-Changes-HG archive

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

[src/pgoyette-compat]: src/sys/sys Actually allocate the list of aliases.



details:   https://anonhg.NetBSD.org/src/rev/ea2ec1959e81
branches:  pgoyette-compat
changeset: 321005:ea2ec1959e81
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sun Mar 11 00:53:13 2018 +0000

description:
Actually allocate the list of aliases.

diffstat:

 sys/sys/module.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 7472f61e0073 -r ea2ec1959e81 sys/sys/module.h
--- a/sys/sys/module.h  Sun Mar 11 00:44:32 2018 +0000
+++ b/sys/sys/module.h  Sun Mar 11 00:53:13 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: module.h,v 1.41.14.3 2018/03/11 00:44:32 pgoyette Exp $        */
+/*     $NetBSD: module.h,v 1.41.14.4 2018/03/11 00:53:13 pgoyette Exp $        */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -157,12 +157,13 @@
 
 #define        MODULE_ALIAS(class, name, required, aliases)            \
 static int __CONCAT(name,_modcmd)(modcmd_t, void *);           \
+static const char * const * __CONCAT(name,_aliases) = { aliases }; \
 static const modinfo_t __CONCAT(name,_modinfo) = {             \
        .mi_version = __NetBSD_Version__,                       \
        .mi_class = (class),                                    \
        .mi_modcmd = __CONCAT(name,_modcmd),                    \
        .mi_name = __STRING(name),                              \
-       .mi_aliases = (required),                               \
+       .mi_aliases = (__CONCAT(name,_aliases)),                \
        .mi_required = (required)                               \
 };                                                             \
 _MODULE_REGISTER(name)



Home | Main Index | Thread Index | Old Index