Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/pgoyette-compat]: src/sys/sys Don't use () around __CONCAT as the expres...
details: https://anonhg.NetBSD.org/src/rev/d57ea61e7d38
branches: pgoyette-compat
changeset: 321006:d57ea61e7d38
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Sun Mar 11 00:58:12 2018 +0000
description:
Don't use () around __CONCAT as the expression is no longer constant
diffstat:
sys/sys/module.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r ea2ec1959e81 -r d57ea61e7d38 sys/sys/module.h
--- a/sys/sys/module.h Sun Mar 11 00:53:13 2018 +0000
+++ b/sys/sys/module.h Sun Mar 11 00:58:12 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: module.h,v 1.41.14.4 2018/03/11 00:53:13 pgoyette Exp $ */
+/* $NetBSD: module.h,v 1.41.14.5 2018/03/11 00:58:12 pgoyette Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -153,9 +153,9 @@
#endif /* RUMP_USE_CTOR */
#define MODULE(class, name, required) \
- MODULE_ALIAS(class, name, required, NULL)
+ MODULE_WITH_ALIAS(class, name, required, NULL)
-#define MODULE_ALIAS(class, name, required, aliases) \
+#define MODULE_WITH_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) = { \
@@ -163,7 +163,7 @@
.mi_class = (class), \
.mi_modcmd = __CONCAT(name,_modcmd), \
.mi_name = __STRING(name), \
- .mi_aliases = (__CONCAT(name,_aliases)), \
+ .mi_aliases = __CONCAT(name,_aliases), \
.mi_required = (required) \
}; \
_MODULE_REGISTER(name)
Home |
Main Index |
Thread Index |
Old Index