Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/include/linux move MODULE_PARM_DESC to...



details:   https://anonhg.NetBSD.org/src/rev/9fc86a6be0ac
branches:  trunk
changeset: 1028227:9fc86a6be0ac
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 09:52:17 2021 +0000

description:
move MODULE_PARM_DESC to moduleparam.h


Author: Maya Rashish <maya%NetBSD.org@localhost>

diffstat:

 sys/external/bsd/drm2/include/linux/module.h      |  13 +------------
 sys/external/bsd/drm2/include/linux/moduleparam.h |  15 ++++++++++++++-
 2 files changed, 15 insertions(+), 13 deletions(-)

diffs (54 lines):

diff -r fe72b2ebba62 -r 9fc86a6be0ac sys/external/bsd/drm2/include/linux/module.h
--- a/sys/external/bsd/drm2/include/linux/module.h      Sun Dec 19 09:52:09 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/module.h      Sun Dec 19 09:52:17 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: module.h,v 1.10 2021/12/19 01:41:45 riastradh Exp $    */
+/*     $NetBSD: module.h,v 1.11 2021/12/19 09:52:17 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -49,17 +49,6 @@
 #define        MODULE_DEVICE_TABLE(DESCRIPTION, IDLIST)
 #define        MODULE_FIRMWARE(FIRMWARE)
 #define        MODULE_LICENSE(LICENSE)
-struct linux_module_param_desc {
-       const char *name;
-       const char *description;
-};
-#define        MODULE_PARM_DESC(PARAMETER, DESCRIPTION) \
-static __attribute__((__used__)) \
-const struct linux_module_param_desc PARAMETER ## _desc = { \
-    .name = # PARAMETER, \
-    .description = DESCRIPTION, \
-}; \
-__link_set_add_rodata(linux_module_param_desc, PARAMETER ## _desc)
 
 #define        THIS_MODULE     0
 #define        KBUILD_MODNAME  __file__
diff -r fe72b2ebba62 -r 9fc86a6be0ac sys/external/bsd/drm2/include/linux/moduleparam.h
--- a/sys/external/bsd/drm2/include/linux/moduleparam.h Sun Dec 19 09:52:09 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/moduleparam.h Sun Dec 19 09:52:17 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: moduleparam.h,v 1.9 2021/12/19 01:43:12 riastradh Exp $        */
+/*     $NetBSD: moduleparam.h,v 1.10 2021/12/19 09:52:17 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -67,4 +67,17 @@
 #define        module_param_unsafe             module_param
 #define        module_param_named_unsafe       module_param_named
 
+struct linux_module_param_desc {
+       const char *name;
+       const char *description;
+};
+#define        MODULE_PARM_DESC(PARAMETER, DESCRIPTION) \
+static __attribute__((__used__)) \
+const struct linux_module_param_desc PARAMETER ## _desc = { \
+    .name = # PARAMETER, \
+    .description = DESCRIPTION, \
+}; \
+__link_set_add_rodata(linux_module_param_desc, PARAMETER ## _desc)
+
+
 #endif  /* _LINUX_MODULEPARAM_H_ */



Home | Main Index | Thread Index | Old Index