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/dist/drm leave out MODULE_PARM_DESC



details:   https://anonhg.NetBSD.org/src/rev/b1837bd2f24c
branches:  trunk
changeset: 1028211:b1837bd2f24c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 09:50:12 2021 +0000

description:
leave out MODULE_PARM_DESC


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

diffstat:

 sys/external/bsd/drm2/dist/drm/drm_print.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 59e0dbd3fda9 -r b1837bd2f24c sys/external/bsd/drm2/dist/drm/drm_print.c
--- a/sys/external/bsd/drm2/dist/drm/drm_print.c        Sun Dec 19 09:50:04 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_print.c        Sun Dec 19 09:50:12 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_print.c,v 1.6 2021/12/19 09:50:04 riastradh Exp $  */
+/*     $NetBSD: drm_print.c,v 1.7 2021/12/19 09:50:12 riastradh Exp $  */
 
 /*
  * Copyright (C) 2016 Red Hat
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_print.c,v 1.6 2021/12/19 09:50:04 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_print.c,v 1.7 2021/12/19 09:50:12 riastradh Exp $");
 
 #ifndef __NetBSD__             /* XXX ??? */
 #define DEBUG /* for pr_debug() */
@@ -56,6 +56,7 @@
 unsigned int __drm_debug;
 EXPORT_SYMBOL(__drm_debug);
 
+#ifdef __linux__
 MODULE_PARM_DESC(debug, "Enable debug output, where each bit enables a debug category.\n"
 "\t\tBit 0 (0x01)  will enable CORE messages (drm core code)\n"
 "\t\tBit 1 (0x02)  will enable DRIVER messages (drm controller code)\n"
@@ -66,6 +67,7 @@
 "\t\tBit 7 (0x80)  will enable LEASE messages (leasing code)\n"
 "\t\tBit 8 (0x100) will enable DP messages (displayport code)");
 module_param_named(debug, __drm_debug, int, 0600);
+#endif
 
 void __drm_puts_coredump(struct drm_printer *p, const char *str)
 {



Home | Main Index | Thread Index | Old Index