{"id":1209,"date":"2014-10-21T02:32:10","date_gmt":"2014-10-21T01:32:10","guid":{"rendered":"http:\/\/rglinuxtech.com\/?p=1209"},"modified":"2014-10-21T02:34:08","modified_gmt":"2014-10-21T01:34:08","slug":"kernel-3-18-rc1-nvidia-fix","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=1209","title":{"rendered":"Kernel 3.18-rc1 &#8211; NVIDIA Fix.."},"content":{"rendered":"<p>Thanks to <em><strong>juston_li<\/strong><\/em>, there is a one-line fix to enable the latest NVIDIA drivers to compile with Kernel <strong>3.18-rc1<\/strong><\/p>\n<p>See: <a title=\"https:\/\/devtalk.nvidia.com\/default\/topic\/783364\/linux\/343-22-driver-incompatible-with-linux-3-18-\/\" href=\"https:\/\/devtalk.nvidia.com\/default\/topic\/783364\/linux\/343-22-driver-incompatible-with-linux-3-18-\/\" target=\"_blank\">https:\/\/devtalk.nvidia.com\/default\/topic\/783364\/linux\/343-22-driver-incompatible-with-linux-3-18-\/<\/a><\/p>\n<p>The fix there is for <em>Beta<\/em> version 343.22, but I applied it to <em>main<\/em> version <strong>340.46<\/strong>, as follows:<\/p>\n<p>In NVIDIA-Linux-x86_64-340.46\/kernel\/<strong>nv-drm.c<\/strong> , at line 19, change<\/p>\n<pre>#if defined(NV_DRM_AVAILABLE)\r\n\r\n#include &lt;drm\/drmP.h&gt;<\/pre>\n<p>to<\/p>\n<pre>#if defined(NV_DRM_AVAILABLE)\r\n\r\n#include &lt;drm\/drmP.h&gt;\r\n<strong>#include &lt;drm\/drm_gem.h&gt;<\/strong><\/pre>\n<p>Then re-compile..<\/p>\n<p><em>Robert Gadsdon.\u00a0 October 20, 2014.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Thanks to juston_li, there is a one-line fix to enable the latest NVIDIA drivers to compile with Kernel 3.18-rc1 See: https:\/\/devtalk.nvidia.com\/default\/topic\/783364\/linux\/343-22-driver-incompatible-with-linux-3-18-\/ The fix there is for Beta version 343.22, but I applied it to main version 340.46, as follows: In NVIDIA-Linux-x86_64-340.46\/kernel\/nv-drm.c , at line 19, change #if defined(NV_DRM_AVAILABLE) #include &lt;drm\/drmP.h&gt; to #if defined(NV_DRM_AVAILABLE) #include &lt;drm\/drmP.h&gt; #include &lt;drm\/drm_gem.h&gt; <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=1209\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5,6,11,15,18,19,20,350],"tags":[928,927,922,926,281,925],"class_list":["post-1209","post","type-post","status-publish","format-standard","hentry","category-compilation","category-crash-and-burn","category-hacks","category-linux-2","category-nvidia","category-opinion","category-performance-2","category-success","tag-340-46","tag-drm_gem-h","tag-kernel-3-18-rc1","tag-nv-drm-c","tag-nvidia-fix","tag-one-line"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1209","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1209"}],"version-history":[{"count":2,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1209\/revisions"}],"predecessor-version":[{"id":1211,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1209\/revisions\/1211"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}