diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2016-09-04 11:55:25 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2016-11-04 17:17:03 +1000 |
commit | 3ef735e50da77655768562a5d1483cde51993584 (patch) | |
tree | ff9a77fe53024e2178637bb02ecd1c9b04912f4a /lib | |
parent | 747a0ffb93985b056924e84ae30328c105b99307 (diff) | |
download | nouveau-3ef735e50da77655768562a5d1483cde51993584.tar.gz |
lib: fix for linux dma_attrs api change
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/include/nvif/os.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/include/nvif/os.h b/lib/include/nvif/os.h index c265ab446..2f34c5a28 100644 --- a/lib/include/nvif/os.h +++ b/lib/include/nvif/os.h @@ -859,22 +859,16 @@ enum dma_attr { DMA_ATTR_MAX, }; -struct dma_attrs { -}; - -static inline void init_dma_attrs(struct dma_attrs *attrs) {} -static inline void dma_set_attr(enum dma_attr attr, struct dma_attrs *attrs) {} - static inline void * dma_alloc_attrs(struct device *dev, size_t sz, dma_addr_t *hdl, gfp_t gfp, - struct dma_attrs *attrs) + unsigned long attrs) { return NULL; } static inline void dma_free_attrs(struct device *dev, size_t sz, void *vaddr, dma_addr_t bus, - struct dma_attrs *attrs) + unsigned long attrs) { } |