Skip to content

Commit 0609dd1

Browse files
committed
Changes for 14.0-CURRENT
1 parent 559b7dc commit 0609dd1

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

core/drm_syncobj.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ static int drm_syncobj_file_close(struct file *file, struct thread *td)
512512
}
513513
static __inline int
514514
drm_syncobj_file_stat(struct file *fp, struct stat *sb,
515-
struct ucred *active_cred, struct thread *td)
515+
struct ucred *active_cred)
516516
{
517517

518518
return (0);

drmkpi/drmkpi_dma_buf.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ static fo_poll_t dmabuf_fop_poll;
6767
static fo_seek_t dmabuf_fop_seek;
6868

6969
static int
70-
dmabuf_fop_stat(struct file *fp, struct stat *sb, struct ucred *cred,
71-
struct thread *td)
70+
dmabuf_fop_stat(struct file *fp, struct stat *sb, struct ucred *cred)
7271
{
7372

7473
return (0);

freebsd/drm_gem_cma_helper.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ drm_gem_cma_destruct(struct drm_gem_cma_object *bo)
7373
vm_page_unwire_noq(m);
7474
vm_page_free(m);
7575
vm_page_unlock(m);
76+
7677
}
7778
}
7879

@@ -87,11 +88,10 @@ drm_gem_cma_alloc_contig(size_t npages, u_long alignment, vm_memattr_t memattr,
8788
low = 0;
8889
high = -1UL;
8990
boundary = 0;
90-
pflags = VM_ALLOC_NORMAL | VM_ALLOC_NOOBJ | VM_ALLOC_NOBUSY |
91-
VM_ALLOC_WIRED | VM_ALLOC_ZERO;
91+
pflags = VM_ALLOC_WIRED | VM_ALLOC_ZERO;
9292
tries = 0;
9393
retry:
94-
m = vm_page_alloc_contig(NULL, 0, pflags, npages, low, high, alignment,
94+
m = vm_page_alloc_noobj_contig(pflags, npages, low, high, alignment,
9595
boundary, memattr);
9696
if (m == NULL) {
9797
if (tries < 3) {
@@ -187,7 +187,7 @@ drm_gem_cma_fault(struct vm_area_struct *dummy, struct vm_fault *vmf)
187187
goto fail_unlock;
188188
if (vm_page_insert(page, obj, i))
189189
goto fail_unlock;
190-
vm_page_xbusy(page);
190+
vm_page_tryxbusy(page);
191191
page->valid = VM_PAGE_BITS_ALL;
192192
}
193193
VM_OBJECT_WUNLOCK(obj);

freebsd/drm_os_freebsd.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,10 @@ drm_fstub_kqfilter(struct file *file, struct knote *kn)
182182
}
183183

184184
static int
185-
drm_fstub_stat(struct file *fp, struct stat *sb, struct ucred *cred,
186-
struct thread *td)
185+
drm_fstub_stat(struct file *fp, struct stat *sb, struct ucred *cred)
187186
{
188187

189-
return (vnops.fo_stat(fp, sb, cred, td));
188+
return (vnops.fo_stat(fp, sb, cred));
190189
}
191190

192191
static int

0 commit comments

Comments
 (0)