Changeset 5893 in vbox for trunk/src/VBox/Additions/linux/module
- Timestamp:
- Nov 30, 2007 2:21:05 PM (17 years ago)
- Location:
- trunk/src/VBox/Additions/linux/module
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/module/hgcmcall.c
r4996 r5893 24 24 #include "vboxmod.h" 25 25 #include "waitcompat.h" 26 26 27 #include <VBox/log.h> 28 #include <iprt/assert.h> 27 29 28 30 … … 290 292 int rc; 291 293 292 compiler_assert(_IOC_SIZE(IOCTL_VBOXGUEST_HGCM_CALL) == sizeof(VBoxGuestHGCMCallInfo));294 AssertCompiler((_IOC_SIZE(IOCTL_VBOXGUEST_HGCM_CALL) == sizeof(VBoxGuestHGCMCallInfo))); 293 295 /* Get the call header from user space to see how many call parameters there are. */ 294 296 if (copy_from_user(&callHeader, (void*)arg, sizeof(callHeader))) -
trunk/src/VBox/Additions/linux/module/vboxmod.c
r5867 r5893 23 23 #include "vboxmod.h" 24 24 #include "waitcompat.h" 25 25 26 #include <VBox/log.h> 26 27 #include <iprt/asm.h> … … 372 373 int rc; 373 374 374 compiler_assert(sizeof(VMMDevRequestHeader) == _IOC_SIZE(IOCTL_VBOXGUEST_VMMREQUEST));375 AssertCompiler((sizeof(VMMDevRequestHeader) == _IOC_SIZE(IOCTL_VBOXGUEST_VMMREQUEST))); 375 376 if (copy_from_user(&reqHeader, (void*)arg, _IOC_SIZE(cmd))) 376 377 { -
trunk/src/VBox/Additions/linux/module/vboxmod.h
r5817 r5893 67 67 if (n >= vboxadd_verbosity) printk (KERN_DEBUG "vboxadd: " __VA_ARGS__) 68 68 69 #define compiler_assert(val) \70 do { \71 switch(0) { \72 case 0: \73 case (val): \74 default: \75 break; \76 } \77 } while(0);78 79 69 extern int vboxadd_cmc_init (void); 80 70 extern void vboxadd_cmc_fini (void);
Note:
See TracChangeset
for help on using the changeset viewer.