Module Name:    src
Committed By:   riastradh
Date:           Sun Dec 19 01:54:20 UTC 2021

Modified Files:
        src/sys/external/bsd/drm2/dist/drm: drm_print.c
        src/sys/external/bsd/drm2/dist/include/drm: drm_print.h

Log Message:
Comment out drm_print_regset32, not used in any of the drivers

we use.

Author: Maya Rashish <m...@netbsd.org>


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/external/bsd/drm2/dist/drm/drm_print.c
cvs rdiff -u -r1.2 -r1.3 \
    src/sys/external/bsd/drm2/dist/include/drm/drm_print.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/dist/drm/drm_print.c
diff -u src/sys/external/bsd/drm2/dist/drm/drm_print.c:1.4 src/sys/external/bsd/drm2/dist/drm/drm_print.c:1.5
--- src/sys/external/bsd/drm2/dist/drm/drm_print.c:1.4	Sun Dec 19 01:07:52 2021
+++ src/sys/external/bsd/drm2/dist/drm/drm_print.c	Sun Dec 19 01:54:20 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: drm_print.c,v 1.4 2021/12/19 01:07:52 riastradh Exp $	*/
+/*	$NetBSD: drm_print.c,v 1.5 2021/12/19 01:54:20 riastradh Exp $	*/
 
 /*
  * Copyright (C) 2016 Red Hat
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_print.c,v 1.4 2021/12/19 01:07:52 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_print.c,v 1.5 2021/12/19 01:54:20 riastradh Exp $");
 
 #ifndef __NetBSD__		/* XXX ??? */
 #define DEBUG /* for pr_debug() */
@@ -364,6 +364,7 @@ void __drm_err(const char *format, ...)
 }
 EXPORT_SYMBOL(__drm_err);
 
+#ifndef __NetBSD__
 /**
  * drm_print_regset32 - print the contents of registers to a
  * &drm_printer stream.
@@ -391,3 +392,4 @@ void drm_print_regset32(struct drm_print
 	}
 }
 EXPORT_SYMBOL(drm_print_regset32);
+#endif

Index: src/sys/external/bsd/drm2/dist/include/drm/drm_print.h
diff -u src/sys/external/bsd/drm2/dist/include/drm/drm_print.h:1.2 src/sys/external/bsd/drm2/dist/include/drm/drm_print.h:1.3
--- src/sys/external/bsd/drm2/dist/include/drm/drm_print.h:1.2	Sat Dec 18 23:45:46 2021
+++ src/sys/external/bsd/drm2/dist/include/drm/drm_print.h	Sun Dec 19 01:54:20 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: drm_print.h,v 1.2 2021/12/18 23:45:46 riastradh Exp $	*/
+/*	$NetBSD: drm_print.h,v 1.3 2021/12/19 01:54:20 riastradh Exp $	*/
 
 /*
  * Copyright (C) 2016 Red Hat
@@ -93,7 +93,9 @@ void __drm_printfn_err(struct drm_printe
 __printf(2, 3)
 void drm_printf(struct drm_printer *p, const char *f, ...);
 void drm_puts(struct drm_printer *p, const char *str);
+#ifndef __NetBSD__
 void drm_print_regset32(struct drm_printer *p, struct debugfs_regset32 *regset);
+#endif
 void drm_print_bits(struct drm_printer *p, unsigned long value,
 		    const char * const bits[], unsigned int nbits);
 

Reply via email to