Fix external module build for 2.6.22
PATCH RESEND 1/1 Fix external module build for 2.6.22
Signed-off-by Jan Kiszka <[email protected]>
kernel/external-module-compat-comm.h +5 -0
@@ -517,6 +517,11 @@ static inline int cancel_work_sync(struct work_struct *work) return 0; } +/* ... and it returned void before 2.6.23 */ +#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23) + +#define cancel_work_sync (work) ({ cancel_work_sync(work); 0; }) +#endif #if LINUX_VERSION_CODE <KERNEL_VERSION (2 ,6 ,20 )
Avi Kivity
AppliedQuoted 3 lines · Jan Kiszka
Signed-off-by Jan Kiszka <[email protected]>
Applied, thanks.
Signature · 1 line
error compiling committee.c: too many arguments to function