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 Ifdef out sysfs stuff.



details:   https://anonhg.NetBSD.org/src/rev/03352837640c
branches:  trunk
changeset: 1027848:03352837640c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 00:57:06 2021 +0000

description:
Ifdef out sysfs stuff.

diffstat:

 sys/external/bsd/drm2/dist/drm/drm_drv.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (42 lines):

diff -r 0adf8ebebb8d -r 03352837640c sys/external/bsd/drm2/dist/drm/drm_drv.c
--- a/sys/external/bsd/drm2/dist/drm/drm_drv.c  Sun Dec 19 00:56:58 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_drv.c  Sun Dec 19 00:57:06 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_drv.c,v 1.15 2021/12/18 23:44:57 riastradh Exp $   */
+/*     $NetBSD: drm_drv.c,v 1.16 2021/12/19 00:57:06 riastradh Exp $   */
 
 /*
  * Created: Fri Jan 19 10:48:35 2001 by faith%acm.org@localhost
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_drv.c,v 1.15 2021/12/18 23:44:57 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_drv.c,v 1.16 2021/12/19 00:57:06 riastradh Exp $");
 
 #include <linux/debugfs.h>
 #include <linux/fs.h>
@@ -942,9 +942,13 @@
        if (!name)
                return -ENOMEM;
 
+#ifdef __NetBSD__              /* XXX sysfs */
+       ret = 0;
+#else
        ret = sysfs_create_link(minor->kdev->kobj.parent,
                                &minor->kdev->kobj,
                                name);
+#endif
 
        kfree(name);
 
@@ -967,7 +971,9 @@
        if (!name)
                return;
 
+#ifndef __NetBSD__             /* XXX sysfs */
        sysfs_remove_link(minor->kdev->kobj.parent, name);
+#endif
 
        kfree(name);
 }



Home | Main Index | Thread Index | Old Index