Module Name: src Committed By: riastradh Date: Sun Dec 19 09:55:14 UTC 2021
Modified Files: src/sys/external/bsd/drm2/dist/include/drm/ttm: ttm_bo_api.h Log Message: ifdef out things using vm_fault_t Author: Maya Rashish <m...@netbsd.org> To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 \ src/sys/external/bsd/drm2/dist/include/drm/ttm/ttm_bo_api.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/include/drm/ttm/ttm_bo_api.h diff -u src/sys/external/bsd/drm2/dist/include/drm/ttm/ttm_bo_api.h:1.6 src/sys/external/bsd/drm2/dist/include/drm/ttm/ttm_bo_api.h:1.7 --- src/sys/external/bsd/drm2/dist/include/drm/ttm/ttm_bo_api.h:1.6 Sun Dec 19 01:49:36 2021 +++ src/sys/external/bsd/drm2/dist/include/drm/ttm/ttm_bo_api.h Sun Dec 19 09:55:14 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: ttm_bo_api.h,v 1.6 2021/12/19 01:49:36 riastradh Exp $ */ +/* $NetBSD: ttm_bo_api.h,v 1.7 2021/12/19 09:55:14 riastradh Exp $ */ /************************************************************************** * @@ -775,6 +775,7 @@ static inline bool ttm_bo_uses_embedded_ /* Default number of pre-faulted pages in the TTM fault handler */ #define TTM_BO_VM_NUM_PREFAULT 16 +#ifdef __linux__ vm_fault_t ttm_bo_vm_reserve(struct ttm_buffer_object *bo, struct vm_fault *vmf); @@ -790,5 +791,6 @@ void ttm_bo_vm_close(struct vm_area_stru int ttm_bo_vm_access(struct vm_area_struct *vma, unsigned long addr, void *buf, int len, int write); +#endif #endif