The following patch file can be applied to the NVIDIA-Linux-x86_64-295.33.run or NVIDIA-Linux-x64-295.33.run driver to allow it to install into the latest kernel-3.4-rcx. Copy the text from the code block below and pasted into your favorite text editor and then save it as the text file called NVIDIA-295.33.patch:
Index: NVIDIA-Linux-x86-295.33/kernel/conftest.sh
===================================================================
--- kernel.orig/conftest.sh
+++ kernel/conftest.sh
@@ -95,7 +95,7 @@ build_cflags() {
fi
fi
- CFLAGS="$CFLAGS $OUTPUT_CFLAGS -I$HEADERS $AUTOCONF_CFLAGS"
+ CFLAGS="$CFLAGS $OUTPUT_CFLAGS -I$HEADERS -I$OUTPUT/arch/x86/include/generated $AUTOCONF_CFLAGS"
test_xen
@@ -126,7 +126,7 @@ build_cflags() {
CFLAGS="$BASE_CFLAGS $MACH_CFLAGS $OUTPUT_CFLAGS -I$HEADERS $AUTOCONF_CFLAGS"
if "$ARCH" = "i386" -o "$ARCH" = "x86_64" ]; then
- CFLAGS="$CFLAGS -I$SOURCES/arch/x86/include -I$SOURCES/arch/x86/include/generated"
+ CFLAGS="$CFLAGS -I$SOURCES/arch/x86/include -I$OUTPUT/arch/x86/include/generated"
elif "$ARCH" = "ARMv7" ]; then
CFLAGS="$CFLAGS -I$SOURCES/arch/arm/include -I$SOURCES/arch/arm/include/generated"
fi
@@ -512,7 +512,7 @@
# and if it as an 'event' member.
#
echo "$CONFTEST_PREAMBLE
- #include <asm/system.h>
+ #include <asm/switch_to.h>
#include <linux/pm.h>
void conftest_pm_message_t(pm_message_t state) {
pm_message_t *p = &state;
@@ -965,11 +965,12 @@ compile_test() {
#
echo "$CONFTEST_PREAMBLE
#include <linux/acpi.h>
+ #include <acpi/acpixf.h>
void conftest_acpi_walk_namespace(void) {
acpi_walk_namespace();
}" > conftest$$.c
- $CC $CFLAGS -c conftest$$.c > /dev/null 2>&1
+ #CC $CFLAGS -c conftest$$.c > /dev/null 2>&1
rm -f conftest$$.c
if -f conftest$$.o ]; then
@@ -980,6 +981,7 @@ compile_test() {
echo "$CONFTEST_PREAMBLE
#include <linux/acpi.h>
+ #include <acpi/acpixf.h>
void conftest_acpi_walk_namespace(void) {
acpi_walk_namespace(0, NULL, 0, NULL, NULL, NULL, NULL);
}" > conftest$$.c
@@ -996,6 +998,7 @@ compile_test() {
echo "$CONFTEST_PREAMBLE
#include <linux/acpi.h>
+ #include <acpi/acpixf.h>
void conftest_acpi_walk_namespace(void) {
acpi_walk_namespace(0, NULL, 0, NULL, NULL, NULL);
}" > conftest$$.c
@@ -1604,6 +1607,9 @@ case "$6" in
fi
fi
+ RET=0
+ SELECTED_MAKEFILE=Makefile.kbuild
+
if "$RET" = "0" ]; then
ln -s $SELECTED_MAKEFILE Makefile
exit 0
Index: NVIDIA-Linux-x86-295.33/kernel/nv-linux.h
===================================================================
--- kernel.orig/nv-linux.h
+++ kernel/nv-linux.h
@@ -111,7 +111,7 @@
#include <linux/timer.h>
#include <asm/div64.h> /* do_div() */
-#include <asm/system.h> /* cli, sli, save_flags */
+#include <asm/switch_to.h> /* cli, sli, save_flags */
#include <asm/io.h> /* ioremap, virt_to_phys */
#include <asm/uaccess.h> /* access_ok */
#include <asm/page.h> /* PAGE_OFFSET */
To then apply the patch you can use S.A.N.D.I. - SuSE Automated NVIDIA Driver Installer - Version 1.45 or manuallly with the following command:
sh ./NVIDIA-Linux-x86_64-295.33.run --apply-patch NVIDIA-295.33.patch
which creates the file NVIDIA-Linux-x86_64-295.33-custom.run
OR
sh ./NVIDIA-Linux-x64-295.33.run --apply-patch NVIDIA-295.33.patch
which creates the file NVIDIA-Linux-x64-295.33-custom.run
Thank You,