Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ramstore
fast-ipc-module
Commits
a244b47e
Commit
a244b47e
authored
Mar 08, 2016
by
Charles Jacobsen
Browse files
lcd: Fix test helper -- get free pages invocation.
parent
f5068365
Changes
1
Show whitespace changes
Inline
Side-by-side
src/platform/kernel/tests/test_helpers.h
View file @
a244b47e
...
...
@@ -86,12 +86,12 @@ test_fipc_create_channel(unsigned int buf_nr_pages_order, /* in pages */
/*
* Allocate buffer pages
*/
buf1
=
(
void
*
)
__get_free_pages
(
buf_nr_pages_order
,
GFP_KERNEL
);
buf1
=
(
void
*
)
__get_free_pages
(
GFP_KERNEL
,
buf_nr_pages_order
);
if
(
!
buf1
)
{
ret
=
-
ENOMEM
;
goto
fail1
;
}
buf2
=
(
void
*
)
__get_free_pages
(
buf_nr_pages_order
,
GFP_KERNEL
);
buf2
=
(
void
*
)
__get_free_pages
(
GFP_KERNEL
,
buf_nr_pages_order
);
if
(
!
buf2
)
{
ret
=
-
ENOMEM
;
goto
fail2
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment