#4478: linux-5.1.9
--------------------+-----------------------
Reporter: bdubbs | Owner: lfs-book
Type: task | Status: new
Priority: normal | Milestone: 8.5
Component: Book | Version: SVN
Severity: normal | Resolution:
Keywords: |
--------------------+-----------------------
Comment (by thomas):
Skip 5.1.9. Compile errors may occur:
{{{
On Sat, 15 Jun 2019 11:21:55 +1000
Wayne Blaszczyk <[email protected]> wrote:
> ERROR: "drm_legacy_mmap" [drivers/gpu/drm/nouveau/nouveau.ko]
undefined!
It seems there is a discussion and patch on the Linux Kernel Mailing List
about this: https://lkml.org/lkml/2019/6/15/61
For the record, here's the patch:
--- a/drivers/gpu/drm/nouveau/nouveau_ttm.c
+++ b/drivers/gpu/drm/nouveau/nouveau_ttm.c
@@ -169,7 +169,11 @@ nouveau_ttm_mmap(struct file *filp, struct
vm_area_struct *vma)
struct nouveau_drm *drm = nouveau_drm(file_priv->minor->dev);
if (unlikely(vma->vm_pgoff < DRM_FILE_PAGE_OFFSET))
+#if defined(CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT)
return drm_legacy_mmap(filp, vma);
+#else
+ return -EINVAL;
+#endif
return ttm_bo_mmap(filp, vma, &drm->ttm.bdev);
}
}}}
(copied from lfs-support list).
--
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/4478#comment:3>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
--
http://lists.linuxfromscratch.org/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page