* Problem with KERNEL_VERSION macros in 3.7-rc1?
@ 2012-10-15 16:21 Larry Finger
0 siblings, 0 replies; only message in thread
From: Larry Finger @ 2012-10-15 16:21 UTC (permalink / raw)
To: LKML
The VirtualBox kernel modules need to be modified to account for the removal of
VM_RESERVED in version 3.7-rc1. When I used the normal test of
LINUX_VERSION_CODE against KERNEL_VERSION(3, 7, 0), the fix did not work. To
test why, I added the following code snippet to a module:
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 7, 0)
#warning "Compiling 3.7.0"
#else
#warning "Compiling older kernel"
#endif
When compiling this code, I get 'warning: #warning "Compiling older kernel"
[-Wcpp]' on the console. The command 'uname -r' echoes "3.7.0-rc1", and 'git
describe' returns "v3.7-rc1".
My workaround is to define VM_RESERVED if it is not defined.
Thanks,
Larry
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-10-15 16:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-15 16:21 Problem with KERNEL_VERSION macros in 3.7-rc1? Larry Finger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox