Commit b8ae30a7 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Greg Kroah-Hartman

vbox: fix link error with 'gcc -Og'

With the new CONFIG_CC_OPTIMIZE_FOR_DEBUGGING option, we get a link
error in the vboxguest driver, when that fails to optimize out the
call to the compat handler:

drivers/virt/vboxguest/vboxguest_core.o: In function `vbg_ioctl_hgcm_call':
vboxguest_core.c:(.text+0x1f6e): undefined reference to `vbg_hgcm_call32'

Another compile-time check documents better what we want and avoids
the error.
Acked-by: default avatarRandy Dunlap <>
Tested-by: default avatarRandy Dunlap <>
Signed-off-by: default avatarArnd Bergmann <>
Reviewed-by: default avatarHans de Goede <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 9e9a6151
......@@ -1312,7 +1312,7 @@ static int vbg_ioctl_hgcm_call(struct vbg_dev *gdev,
return -EINVAL;
if (f32bit)
ret = vbg_hgcm_call32(gdev, client_id,
call->function, call->timeout_ms,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment