Hi,<br><br>Does anybody have an idea why the following code fails in the <a href="http://2.6.21.7">2.6.21.7</a> Fedora 8 XEN kernel but not in 2.6.18.8-xen ?<br><br><blockquote><span style="font-family: courier new,monospace;">emre@xenroot:/d/nvidia/nvidia-source-100.14.19-x86_64-xen$ cc -D__KERNEL__ &#39;-DKBUILD_BASENAME=&quot;#conftest.emre&quot;&#39; &#39;-DKBUILD_MODNAME=&quot;#conftest.emre&quot;&#39; -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.3/include -I/lib/modules/2.6.21.7-3.fc8xen/build/include/asm/mach-xen -I/lib/modules/2.6.21.7-3.fc8xen/build/include -I/lib/modules/2.6.21.7-3.fc8xen/build/include/asm/mach-default -o conftest.emre conftest.emre.c</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">In file included from /lib/modules/2.6.21.7-3.fc8xen/build/include/asm/system.h:10,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /lib/modules/2.6.21.7-3.fc8xen/build/include/asm/mach-xen/asm/processor.h:18,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /lib/modules/2.6.21.7-3.fc8xen/build/include/asm/thread_info.h:16,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /lib/modules/2.6.21.7-3.fc8xen/build/include/linux/thread_info.h:21,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /lib/modules/2.6.21.7-3.fc8xen/build/include/linux/preempt.h:9,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /lib/modules/2.6.21.7-3.fc8xen/build/include/linux/spinlock.h:49,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /lib/modules/2.6.21.7-3.fc8xen/build/include/linux/capability.h:45,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /lib/modules/2.6.21.7-3.fc8xen/build/include/linux/sched.h:46,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /lib/modules/2.6.21.7-3.fc8xen/build/include/linux/utsname.h:35,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from conftest.emre.c:3:</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">/lib/modules/2.6.21.7-3.fc8xen/build/include/asm/mach-xen/asm/hypervisor.h: In function 'HYPERVISOR_poll':</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">/lib/modules/2.6.21.7-3.fc8xen/build/include/asm/mach-xen/asm/hypervisor.h:198: error: request for member 'p' in something not a structure or union</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">emre@xenroot:/d/nvidia/nvidia-source-100.14.19-x86_64-xen$ </span><br clear="all"></blockquote><br>The code is:<br><br><div style="margin-left: 40px;"><span style="font-family: courier new,monospace;">emre@xenroot:/d/nvidia/nvidia-source-100.14.19-x86_64-xen$ cat conftest.emre.c </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">#include &lt;linux/autoconf.h&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #include &lt;linux/version.h&gt;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #include &lt;linux/utsname.h&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int main() {</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (LINUX_VERSION_CODE &gt;= KERNEL_VERSION(2,6,0)) {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } else {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 1;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">emre@xenroot:/d/nvidia/nvidia-source-100.14.19-x86_64-xen$ </span><br></div><br>Due to this, the whole nvidia driver compilation is failing even though it works on 2.6.18.8-xen dom0 kernel.<br>
<br>Any ideas on what&#39;s missing in the <a href="http://2.6.21.7">2.6.21.7</a> sources?<br><br>Thanks a lot,<br><br>Emre Erenoglu<br><br>