[vbox-dev] k*id_t but expected RT*ID

Alex Xu alex_y_xu at yahoo.ca
Wed Dec 26 15:58:51 PST 2012


Compiling on Gentoo with gcc 4.6.3, Linux 3.8.0-rc1+:

.../vboxdrv/linux/SUPDrv-linux.c: In function 'vboxdrvLinuxUid':
.../vboxdrv/linux/SUPDrv-linux.c:226:5: error: incompatible types when
returning type 'kuid_t' but 'RTUID' was expected
.../vboxdrv/linux/SUPDrv-linux.c: In function 'vboxdrvLinuxGid':
.../vboxdrv/linux/SUPDrv-linux.c:235:5: error: incompatible types when
returning type 'kgid_t' but 'RTGID' was expected
.../vboxdrv/linux/SUPDrv-linux.c: In function 'vboxdrvLinuxEuid':
.../vboxdrv/linux/SUPDrv-linux.c:244:5: error: incompatible types when
returning type 'kuid_t' but 'RTUID' was expected

(error message trimmed for not-clarity)

kuid_t/kgid_t appear to be functionally equivalent to RTUID/RTGID, both
an unsigned int (on my arch anyways). I can't for the life of me find
where exactly "current" in the functions is defined though, so I can't
find why exactly they're those types instead of the RT* types.



More information about the vbox-dev mailing list