svn commit: r365797 - in stable/12/sys/sparc64: include sparc64
Mark Johnston
markj at FreeBSD.org
Wed Sep 16 14:12:58 UTC 2020
Author: markj
Date: Wed Sep 16 14:12:57 2020
New Revision: 365797
URL: https://svnweb.freebsd.org/changeset/base/365797
Log:
Add a mem(4) ioctl stub for sparc64.
This is a direct commit to stable/12.
Reported by: Jenkins
Modified:
stable/12/sys/sparc64/include/memdev.h
stable/12/sys/sparc64/sparc64/mem.c
Modified: stable/12/sys/sparc64/include/memdev.h
==============================================================================
--- stable/12/sys/sparc64/include/memdev.h Wed Sep 16 13:51:47 2020 (r365796)
+++ stable/12/sys/sparc64/include/memdev.h Wed Sep 16 14:12:57 2020 (r365797)
@@ -36,7 +36,7 @@
d_open_t memopen;
d_read_t memrw;
-#define memioctl (d_ioctl_t *)NULL
+d_ioctl_t memioctl_md;
#define memmmap (d_mmap_t *)NULL
#endif /* _MACHINE_MEMDEV_H_ */
Modified: stable/12/sys/sparc64/sparc64/mem.c
==============================================================================
--- stable/12/sys/sparc64/sparc64/mem.c Wed Sep 16 13:51:47 2020 (r365796)
+++ stable/12/sys/sparc64/sparc64/mem.c Wed Sep 16 14:12:57 2020 (r365797)
@@ -177,3 +177,10 @@ memrw(struct cdev *dev, struct uio *uio, int flags)
kva_free(ova, PAGE_SIZE * colors);
return (error);
}
+
+int
+memioctl_md(struct cdev *dev __unused, u_long cmd __unused,
+ caddr_t data __unused, int flags __unused, struct thread *td __unused)
+{
+ return (ENOTTY);
+}
More information about the svn-src-all
mailing list