projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'defconfig-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[linux-2.6-microblaze.git]
/
drivers
/
dma-buf
/
st-dma-fence-chain.c
diff --git
a/drivers/dma-buf/st-dma-fence-chain.c
b/drivers/dma-buf/st-dma-fence-chain.c
index
9525f7f
..
8ce1ea5
100644
(file)
--- a/
drivers/dma-buf/st-dma-fence-chain.c
+++ b/
drivers/dma-buf/st-dma-fence-chain.c
@@
-58,28
+58,20
@@
static struct dma_fence *mock_fence(void)
return &f->base;
}
return &f->base;
}
-static inline struct mock_chain {
- struct dma_fence_chain base;
-} *to_mock_chain(struct dma_fence *f) {
- return container_of(f, struct mock_chain, base.base);
-}
-
static struct dma_fence *mock_chain(struct dma_fence *prev,
struct dma_fence *fence,
u64 seqno)
{
static struct dma_fence *mock_chain(struct dma_fence *prev,
struct dma_fence *fence,
u64 seqno)
{
- struct
mock
_chain *f;
+ struct
dma_fence
_chain *f;
- f =
kmalloc(sizeof(*f), GFP_KERNEL
);
+ f =
dma_fence_chain_alloc(
);
if (!f)
return NULL;
if (!f)
return NULL;
- dma_fence_chain_init(&f->base,
- dma_fence_get(prev),
- dma_fence_get(fence),
+ dma_fence_chain_init(f, dma_fence_get(prev), dma_fence_get(fence),
seqno);
seqno);
- return &f->base
.base
;
+ return &f->base;
}
static int sanitycheck(void *arg)
}
static int sanitycheck(void *arg)