projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9e86a9
)
flex_array: fix flex_array_put_ptr macro to be valid C
author
Eric Paris
<eparis@redhat.com>
Mon, 29 Nov 2010 20:47:09 +0000
(15:47 -0500)
committer
Eric Paris
<eparis@redhat.com>
Tue, 30 Nov 2010 22:28:57 +0000
(17:28 -0500)
Using flex_array_put_ptr() results in a compile error "error: lvalue
required as unary ‘&’ operand" fix the casting order to fix this.
Signed-off-by: Eric Paris <eparis@redhat.com>
include/linux/flex_array.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/flex_array.h
b/include/linux/flex_array.h
index 631b77f2ac70fb38c1481305bd4f088c1073e7d7..70e4efabe0fb6983ed9524f4ade4e5d91e2ce2d0 100644
(file)
--- a/
include/linux/flex_array.h
+++ b/
include/linux/flex_array.h
@@
-71,7
+71,7
@@
void *flex_array_get(struct flex_array *fa, unsigned int element_nr);
int flex_array_shrink(struct flex_array *fa);
#define flex_array_put_ptr(fa, nr, src, gfp) \
- flex_array_put(fa, nr,
&(void *)
(src), gfp)
+ flex_array_put(fa, nr,
(void *)&
(src), gfp)
void *flex_array_get_ptr(struct flex_array *fa, unsigned int element_nr);