Avi Kivity wrote: > Muli Ben-Yehuda wrote: >>> >>> Checks on kernel version are (usually) not accepted in mainline. I >>> think I can cook up some Makefile magic to work around the #include >>> though. >>> >> >> They're never accepted. They might slip through the cracks if no one >> reviews the patch thoroughly enough. >> >> > [avi@firebolt linux-2.6]$ find drivers/ -type f -name '*.[ch]' | > xargs cat | grep -c LINUX_VERSION_CODE > 98 > > I've no intention of pursuing that path though. > We simply parse such things out of the sources in the video4linux project before submitting the code to the upstream kernel Attached another patch, I haven't touched the LINUX_VERSION_CODE include check in kvm.h Signed-off-by: Markus Rechberger -- Markus Rechberger Operating System Research Center AMD Saxony LLC & Co. KG