diff --git a/sys/dev/drm/include/linux/dma-buf.h b/sys/dev/drm/include/linux/dma-buf.h index 9f30c79..f098cad 100644 --- a/sys/dev/drm/include/linux/dma-buf.h +++ b/sys/dev/drm/include/linux/dma-buf.h @@ -96,8 +96,8 @@ void dma_buf_unmap_attachment(struct dma_buf_attachment *, static inline struct dma_buf_attachment * dma_buf_attach(struct dma_buf *dmabuf, struct device *dev) { - STUB(); - return NULL; + kprintf("dma_buf_attach: not implemented\n"); + return ERR_PTR(-ENOSYS); } static inline void @@ -126,7 +126,7 @@ static inline void dma_buf_detach(struct dma_buf *dmabuf, struct dma_buf_attachment *dmabuf_attach) { - panic("dma_buf_attach is not implemented"); + /* attachment creation always fails on this port; nothing to undo */ } #endif /* LINUX_DMA_BUF_H */