Oleksandr Natalenko
2015-05-09 21:23:07 UTC
Hi, Nigel.
One of my user has reported the following issue with TOI disabled:
===
kernel/power/snapshot.c: In function ‘get_image_page’:
kernel/power/snapshot.c:105:31: error: expected expression before ‘do’
return (void *) toi_get_nonconflicting_page();
^
scripts/Makefile.build:258: recipe for target 'kernel/power/snapshot.o' failed
===
That happens because of explicit cast of macro result to (void*), but in case
of TOI disabled that macro is just noop do{}, so the cast is invalid.
The user has suggested to protect toi_get_nonconflicting_page() call with
ifdefs, but I have doubts about that (why one would want to cast unsigned long
to void*?). Probably, there should be struct page
*___toi_get_nonconflicting_page() call protected with ifdefs?
One of my user has reported the following issue with TOI disabled:
===
kernel/power/snapshot.c: In function ‘get_image_page’:
kernel/power/snapshot.c:105:31: error: expected expression before ‘do’
return (void *) toi_get_nonconflicting_page();
^
scripts/Makefile.build:258: recipe for target 'kernel/power/snapshot.o' failed
===
That happens because of explicit cast of macro result to (void*), but in case
of TOI disabled that macro is just noop do{}, so the cast is invalid.
The user has suggested to protect toi_get_nonconflicting_page() call with
ifdefs, but I have doubts about that (why one would want to cast unsigned long
to void*?). Probably, there should be struct page
*___toi_get_nonconflicting_page() call protected with ifdefs?
--
Oleksandr post-factum Natalenko, MSc
pf-kernel community
https://natalenko.name/
Oleksandr post-factum Natalenko, MSc
pf-kernel community
https://natalenko.name/