[ 已解决 ]Nvidia 7300gt 官方驱动问题

因为是滚动版,显卡驱动只能安装官方的 run 文件,N 卡 7300gt,内核是 3.15.1-35,32 位系统,安装出现了:unable to build the nvidia kernel module. 不知道问题何解?
另外显卡的安装日志:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sat Jun 28 09:03:32 2014
installer version: 304.88

PATH: /home/oo/bin:/usr/local/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin

nvidia-installer command line:
    ./nvidia-installer

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 304.88.
-> Running distribution scripts
   executing: '/usr/lib/nvidia/pre-install'...
-> done.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/3.15.1-35.g3289da4-desktop/source'
-> Kernel output path: '/lib/modules/3.15.1-35.g3289da4-desktop/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
   executing: 'cd ./kernel; make clean'...
-> Building kernel module:
   executing: 'cd ./kernel; make module SYSSRC=/lib/modules/3.15.1-35.g3289da4-desktop/source SYSOUT=/lib/modules/3.15.1-35.g3289da4-desktop/build'...
   NVIDIA: calling KBUILD...
   make -C /lib/modules/3.15.1-35.g3289da4-desktop/build \
   KBUILD_SRC=/usr/src/linux-3.15.1-35.g3289da4 \
   KBUILD_EXTMOD="/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel" -f /usr/src/linux-3.15.1-35.g3289da4/Makefile \
   modules
   test -e include/generated/autoconf.h -a -e include/config/auto.conf || (		\
   echo >&2;							\
   echo >&2 "  ERROR: Kernel configuration is invalid.";		\
   echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
   echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
   echo >&2 ;							\
   /bin/false)
   mkdir -p /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/.tmp_versions ; rm -f /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/.tmp_versions/*
   make -f /usr/src/linux-3.15.1-35.g3289da4/scripts/Makefile.build obj=/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel
     cc -Wp,-MD,/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/.nv.o.d  -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.8/include -I/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include -Iarch/x86/include/generated  -I/usr/src/linux-3.15.1-35.g3289da4/include -Iinclude -I/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.15.1-35.g3289da4/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.15.1-35.g3289da4/include/linux/kconfig.h   -I/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mno-mmx -mno-sse -fno-pic -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -fstack-protector
    -Wno-unused-but-set-variable -fasynchronous-unwind-tables -g -pg -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO   -I/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"304.88\" -Wno-unused-function -Wuninitialized -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/.tmp_nv.o /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv.c
   In file included from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/cpumask.h:4:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/msr.h:10,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/processor.h:20,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/thread_info.h:23,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/thread_info.h:54,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/preempt.h:6,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/preempt.h:18,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/spinlock.h:50,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/seqlock.h:35,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/time.h:5,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/timex.h:56,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/timex.h:56,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:19,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv.c:13:
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/cpumask.h: In function ‘cpumask_parse’:
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/cpumask.h:603:26: warning: signed and unsigned type in conditional expression -Wsign-compare]
     int len = nl ? nl - buf : strlen(buf);
                             ^
   In file included from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone.h:2:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/mmzone.h:926,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/topology.h:32,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:41,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv.c:13:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone_32.h: In function ‘pfn_valid’:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone_32.h:47:15: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
      return (pfn < node_end_pfn(nid));
                  ^
   In file included from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/stddef.h:1:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/stddef.h:4,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/posix_types.h:4,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/types.h:13,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/types.h:5,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/capability.h:16,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/capability.h:15,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:15,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv.c:13:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h:712:26: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
     if (likely(sz < 0 || sz >= n))
                             ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler.h:159:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h:730:26: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
     if (likely(sz < 0 || sz >= n))
                             ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler.h:159:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   In file included from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:292:0,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv.c:13:
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h: At top level:
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h:98:43: warning: ‘struct acpi_pci_root’ declared inside parameter list [enabled by default]
    struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root);
                                              ^
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h:98:43: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
     if  "-pg" = "-pg" ]; then if  /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv.o != "scripts/mod/empty.o" ]; then /usr/src/linux-3.15.1-35.g3289da4-obj/i386/desktop/scripts/recordmcount  "/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv.o"; fi; fi;
     cc -Wp,-MD,/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/.nv-acpi.o.d  -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.8/include -I/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include -Iarch/x86/include/generated  -I/usr/src/linux-3.15.1-35.g3289da4/include -Iinclude -I/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.15.1-35.g3289da4/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.15.1-35.g3289da4/include/linux/kconfig.h   -I/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mno-mmx -mno-sse -fno-pic -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SI
   GNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -fstack-protector -Wno-unused-but-set-variable -fasynchronous-unwind-tables -g -pg -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO   -I/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"304.88\" -Wno-unused-function -Wuninitialized -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_acpi)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/.tmp_nv-acpi.o /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c
   In file included from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/cpumask.h:4:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/msr.h:10,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/processor.h:20,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/thread_info.h:23,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/thread_info.h:54,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/preempt.h:6,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/preempt.h:18,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/spinlock.h:50,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/seqlock.h:35,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/time.h:5,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/timex.h:56,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/timex.h:56,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:19,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/cpumask.h: In function ‘cpumask_parse’:
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/cpumask.h:603:26: warning: signed and unsigned type in conditional expression -Wsign-compare]
     int len = nl ? nl - buf : strlen(buf);
                             ^
   In file included from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone.h:2:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/mmzone.h:926,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/topology.h:32,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:41,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone_32.h: In function ‘pfn_valid’:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone_32.h:47:15: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
      return (pfn < node_end_pfn(nid));
                  ^
   In file included from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/stddef.h:1:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/stddef.h:4,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/posix_types.h:4,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/types.h:13,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/types.h:5,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/capability.h:16,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/capability.h:15,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:15,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h:712:26: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
     if (likely(sz < 0 || sz >= n))
                             ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler.h:159:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h:730:26: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
     if (likely(sz < 0 || sz >= n))
                             ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler.h:159:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   In file included from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:292:0,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h: At top level:
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h:98:43: warning: ‘struct acpi_pci_root’ declared inside parameter list [enabled by default]
    struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root);
                                              ^
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h:98:43: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:54:21: error: variable ‘nv_acpi_driver_template’ has initializer but incomplete type
    static const struct acpi_driver nv_acpi_driver_template = {
                        ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:55:5: error: unknown field ‘name’ specified in initializer
        .name = "NVIDIA ACPI Video Driver",
        ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:55:5: warning: excess elements in struct initializer [enabled by default]
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:55:5: warning: (near initialization for ‘nv_acpi_driver_template’) [enabled by default]
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:56:5: error: unknown field ‘class’ specified in initializer
        .class = "video",
        ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:56:5: warning: excess elements in struct initializer [enabled by default]
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:56:5: warning: (near initialization for ‘nv_acpi_driver_template’) [enabled by default]
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:61:5: error: unknown field ‘ids’ specified in initializer
        .ids = ACPI_VIDEO_HID,
        ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:61:5: warning: excess elements in struct initializer [enabled by default]
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:61:5: warning: (near initialization for ‘nv_acpi_driver_template’) [enabled by default]
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:64:5: error: unknown field ‘ops’ specified in initializer
        .ops = {
        ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:64:5: error: extra brace group at end of initializer
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:64:5: error: (near initialization for ‘nv_acpi_driver_template’)
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:70:5: warning: excess elements in struct initializer [enabled by default]
        },
        ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:70:5: warning: (near initialization for ‘nv_acpi_driver_template’) [enabled by default]
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c: In function ‘nv_acpi_init’:
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:102:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct acpi_driver’
                sizeof(struct acpi_driver));
                       ^
   In file included from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/string.h:2:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/string.h:17,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/page_32.h:34,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/page.h:13,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/thread_info.h:11,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/thread_info.h:54,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/preempt.h:6,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/preempt.h:18,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/spinlock.h:50,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/seqlock.h:35,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/time.h:5,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/timex.h:56,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/timex.h:56,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:19,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:107:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct acpi_driver’
                sizeof(struct acpi_driver));
                       ^
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/string_32.h:182:48: note: in definition of macro ‘memcpy’
    #define memcpy(t, f, n) __builtin_memcpy(t, f, n)
                                                   ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:109:5: error: implicit declaration of function ‘acpi_bus_register_driver’ -Werror=implicit-function-declaration]
        status = acpi_bus_register_driver(nv_acpi_driver);
        ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c: In function ‘nv_acpi_uninit’:
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:144:5: error: implicit declaration of function ‘acpi_bus_unregister_driver’ -Werror=implicit-function-declaration]
        acpi_bus_unregister_driver(nv_acpi_driver);
        ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c: In function ‘nv_acpi_add’:
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:187:11: error: dereferencing pointer to incomplete type
        device->driver_data = pNvAcpiObject;
              ^
   In file included from /usr/src/linux-3.15.1-35.g3289da4/include/linux/preempt.h:10:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/spinlock.h:50,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/seqlock.h:35,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/time.h:5,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/timex.h:56,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/timex.h:56,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:19,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:194:43: error: dereferencing pointer to incomplete type
        list_for_each_safe(node, next, &device->children) 
                                              ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:425:14: note: in definition of macro ‘list_for_each_safe’
     for (pos = (head)->next, n = pos->next; pos != (head); \
                 ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:425:25: warning: left-hand operand of comma expression has no effect -Wunused-value]
     for (pos = (head)->next, n = pos->next; pos != (head); \
                            ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:194:5: note: in expansion of macro ‘list_for_each_safe’
        list_for_each_safe(node, next, &device->children) 
        ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:194:43: error: dereferencing pointer to incomplete type
        list_for_each_safe(node, next, &device->children) 
                                              ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:425:50: note: in definition of macro ‘list_for_each_safe’
     for (pos = (head)->next, n = pos->next; pos != (head); \
                                                     ^
   In file included from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:17:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/kernel.h:846:27: error: dereferencing pointer to incomplete type
     const typeof( ((type *)0)->member ) *__mptr = (ptr); \
                              ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:351:2: note: in expansion of macro ‘container_of’
     container_of(ptr, type, member)
     ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:197:13: note: in expansion of macro ‘list_entry’
                list_entry(node, struct acpi_device, node);
                ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/kernel.h:846:48: warning: initialization from incompatible pointer type [enabled by default]
     const typeof( ((type *)0)->member ) *__mptr = (ptr); \
                                                   ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:351:2: note: in expansion of macro ‘container_of’
     container_of(ptr, type, member)
     ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:197:13: note: in expansion of macro ‘list_entry’
                list_entry(node, struct acpi_device, node);
                ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/kernel.h:846:48: warning: (near initialization for ‘dev’) [enabled by default]
     const typeof( ((type *)0)->member ) *__mptr = (ptr); \
                                                   ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:351:2: note: in expansion of macro ‘container_of’
     container_of(ptr, type, member)
     ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:197:13: note: in expansion of macro ‘list_entry’
                list_entry(node, struct acpi_device, node);
                ^
   In file included from /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler-gcc.h:106:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler.h:54,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/stddef.h:1,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/stddef.h:4,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/posix_types.h:4,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/types.h:13,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/types.h:5,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/capability.h:16,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/capability.h:15,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:15,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:197:37: error: invalid use of undefined type ‘struct acpi_device’
                list_entry(node, struct acpi_device, node);
                                        ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler-gcc4.h:14:53: note: in definition of macro ‘__compiler_offsetof’
    #define __compiler_offsetof(a,b) __builtin_offsetof(a,b)
                                                        ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/kernel.h:847:29: note: in expansion of macro ‘offsetof’
     (type *)( (char *)__mptr - offsetof(type,member) );})
                                ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:351:2: note: in expansion of macro ‘container_of’
     container_of(ptr, type, member)
     ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:197:13: note: in expansion of macro ‘list_entry’
                list_entry(node, struct acpi_device, node);
                ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:211:13: error: implicit declaration of function ‘acpi_evaluate_integer’ -Werror=implicit-function-declaration]
                acpi_evaluate_integer(dev->handle, "_ADR", NULL, &device_id);
                ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:211:38: error: dereferencing pointer to incomplete type
                acpi_evaluate_integer(dev->handle, "_ADR", NULL, &device_id);
                                         ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:230:65: error: dereferencing pointer to incomplete type
            pNvAcpiObject->pNvVideo[device_counter].dev_handle = dev->handle;
                                                                    ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:245:41: error: dereferencing pointer to incomplete type
        status = acpi_evaluate_object(device->handle, "_DOS", &control_argument_list, NULL);
                                            ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:253:48: error: dereferencing pointer to incomplete type
        status = acpi_install_notify_handler(device->handle, ACPI_DEVICE_NOTIFY,
                                                   ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c: In function ‘nv_acpi_remove’:
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:278:38: error: dereferencing pointer to incomplete type
        nv_acpi_t *pNvAcpiObject = device->driver_data;
                                         ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:292:41: error: dereferencing pointer to incomplete type
        status = acpi_evaluate_object(device->handle, "_DOS", &control_argument_list, NULL);
                                            ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:305:51: error: dereferencing pointer to incomplete type
            status = acpi_remove_notify_handler(device->handle, ACPI_DEVICE_NOTIFY, nv_acpi_event);
                                                      ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:319:15: error: dereferencing pointer to incomplete type
            device->driver_data = NULL;
                  ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c: In function ‘nv_install_notifier’:
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:448:28: error: dereferencing pointer to incomplete type
        if ((!device) || device->driver_data)
                               ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:465:11: error: dereferencing pointer to incomplete type
        device->driver_data = pNvAcpiObject;
              ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:471:48: error: dereferencing pointer to incomplete type
        status = acpi_install_notify_handler(device->handle, ACPI_DEVICE_NOTIFY,
                                                   ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:485:12: error: dereferencing pointer to incomplete type
         device->driver_data = NULL;
               ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c: In function ‘nv_uninstall_notifier’:
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:499:27: error: dereferencing pointer to incomplete type
        pNvAcpiObject = device->driver_data;
                              ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:502:51: error: dereferencing pointer to incomplete type
            status = acpi_remove_notify_handler(device->handle, ACPI_DEVICE_NOTIFY, handler);
                                                      ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:512:19: error: dereferencing pointer to incomplete type
                device->driver_data = NULL;
                      ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c: In function ‘nv_acpi_methods_init’:
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:550:13: error: implicit declaration of function ‘acpi_bus_get_device’ -Werror=implicit-function-declaration]
                retVal = acpi_bus_get_device(nvif_parent_gpu_handle, &device);
                ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:555:23: error: dereferencing pointer to incomplete type
                if (device->driver_data)
                          ^
   In file included from /usr/src/linux-3.15.1-35.g3289da4/include/linux/preempt.h:10:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/spinlock.h:50,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/seqlock.h:35,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/time.h:5,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/timex.h:56,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/timex.h:56,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:19,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c: In function ‘nv_acpi_ddc_method’:
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:1131:43: error: dereferencing pointer to incomplete type
        list_for_each_safe(node, next, &device->children) 
                                              ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:425:14: note: in definition of macro ‘list_for_each_safe’
     for (pos = (head)->next, n = pos->next; pos != (head); \
                 ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:425:25: warning: left-hand operand of comma expression has no effect -Wunused-value]
     for (pos = (head)->next, n = pos->next; pos != (head); \
                            ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:1131:5: note: in expansion of macro ‘list_for_each_safe’
        list_for_each_safe(node, next, &device->children) 
        ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:1131:43: error: dereferencing pointer to incomplete type
        list_for_each_safe(node, next, &device->children) 
                                              ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:425:50: note: in definition of macro ‘list_for_each_safe’
     for (pos = (head)->next, n = pos->next; pos != (head); \
                                                     ^
   In file included from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:17:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/kernel.h:846:27: error: dereferencing pointer to incomplete type
     const typeof( ((type *)0)->member ) *__mptr = (ptr); \
                              ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:351:2: note: in expansion of macro ‘container_of’
     container_of(ptr, type, member)
     ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:1134:13: note: in expansion of macro ‘list_entry’
                list_entry(node, struct acpi_device, node);
                ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/kernel.h:846:48: warning: initialization from incompatible pointer type [enabled by default]
     const typeof( ((type *)0)->member ) *__mptr = (ptr); \
                                                   ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:351:2: note: in expansion of macro ‘container_of’
     container_of(ptr, type, member)
     ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:1134:13: note: in expansion of macro ‘list_entry’
                list_entry(node, struct acpi_device, node);
                ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/kernel.h:846:48: warning: (near initialization for ‘dev’) [enabled by default]
     const typeof( ((type *)0)->member ) *__mptr = (ptr); \
                                                   ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:351:2: note: in expansion of macro ‘container_of’
     container_of(ptr, type, member)
     ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:1134:13: note: in expansion of macro ‘list_entry’
                list_entry(node, struct acpi_device, node);
                ^
   In file included from /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler-gcc.h:106:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler.h:54,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/stddef.h:1,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/stddef.h:4,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/posix_types.h:4,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/types.h:13,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/types.h:5,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/capability.h:16,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/capability.h:15,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:15,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:1134:37: error: invalid use of undefined type ‘struct acpi_device’
                list_entry(node, struct acpi_device, node);
                                        ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler-gcc4.h:14:53: note: in definition of macro ‘__compiler_offsetof’
    #define __compiler_offsetof(a,b) __builtin_offsetof(a,b)
                                                        ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/kernel.h:847:29: note: in expansion of macro ‘offsetof’
     (type *)( (char *)__mptr - offsetof(type,member) );})
                                ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:351:2: note: in expansion of macro ‘container_of’
     container_of(ptr, type, member)
     ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:1134:13: note: in expansion of macro ‘list_entry’
                list_entry(node, struct acpi_device, node);
                ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:1139:43: error: dereferencing pointer to incomplete type
            status = acpi_evaluate_integer(dev->handle, "_ADR", NULL, &device_id);
                                              ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:1148:33: error: dereferencing pointer to incomplete type
                lcd_dev_handle = dev->handle;
                                    ^
   cc1: some warnings being treated as errors
   make[4]: *** [/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.o] 错误 1
   make[3]: *** [_module_/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel] 错误 2
   make[2]: *** [sub-make] 错误 2
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   make[1]: *** [module] 错误 1
   make: *** [module] 错误 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at http://www.nvidia.com.

安装了 kernel-devel,kernel-desktop-devel,kernel-source 之类的没?
安装过 make,gcc 之类的编译工具没?
如果都有的话,可能是内核版本较新,你用的驱动版本不够新还不支持当前内核版本,去官网下最新版。

PS:提个建议,贴错误信息的时候能用个 吗?这么直接刷屏真的好吗?看着心烦

安装了。

去下最新版驱动。304.8 应该不是最新版的,因为我看到我的是 337.19

可我 7300gt 对应的型号就是 304.88,你的显卡是什么?抱歉,贴出来是很多,不知道你说的功能。

囧,我一直以为 Nvidia 的驱动都是全系列支持的。刚才特意去官网看了下 7 系的果然最新的就是 304.88,这个就比较坑了。翻了下你的错误记录,我以前也碰到,应该就是驱动不支持最新的内核的问题。
这样俺也没招了,总不能怂恿你去降内核版本吧。坐等高手了。

另外,我说的 code 功能是指这个,可能表述的不清楚。


也就是把错误代码在放在 之间。

 Run 'make oldconfig && make prepare' on kernel src to fix it."; 

错误提示里的这个也尝试过了吗

还没有,内核不支持这个驱动,那这显卡不废了,如果要降内核,也不知降到什么版本。

等高手出现呗。
实在不行,就 nouveau 开源驱动凑合呗。反正 linux 下又没啥游戏可玩的。正常使用 nouveau 足够了

阁下用的是什么驱动,什么系统?

是说我吗?我两台机,一个 openSUSE 11.4 Geforce 100 的卡 一个 openSUSE 13.1+ mate Geforce 500 系列的卡。这两个最新的驱动都支持。没有任何问题。

注意不是内核不支持 304.88 驱动,是 304.88 驱动不支持新内核,大是大非的问题要搞清楚。

解决方案应该也很简单,改驱动。

   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:1134:37: error: invalid use of undefined type ‘struct acpi_device’
                list_entry(node, struct acpi_device, node);
                                        ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler-gcc4.h:14:53: note: in definition of macro ‘__compiler_offsetof’
    #define __compiler_offsetof(a,b) __builtin_offsetof(a,b)
                                                        ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/kernel.h:847:29: note: in expansion of macro ‘offsetof’
     (type *)( (char *)__mptr - offsetof(type,member) );})
                                ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:351:2: note: in expansion of macro ‘container_of’
     container_of(ptr, type, member)
     ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:1134:13: note: in expansion of macro ‘list_entry’
                list_entry(node, struct acpi_device, node);
                ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:1139:43: error: dereferencing pointer to incomplete type
            status = acpi_evaluate_integer(dev->handle, "_ADR", NULL, &device_id);
                                              ^
   /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:1148:33: error: dereferencing pointer to incomplete type
                lcd_dev_handle = dev->handle;
                                    ^
   cc1: some warnings being treated as errors

而且看起来是 gcc 的版本问题…

麻烦管理员完善了标题,驱动怎么改?

试试这样:

sh NVIDIA-Linux-x86_64-304.88.run --extract-only

会解压出一个 NVIDIA-Linux-x86_64-304.88 的文件夹,编辑 NVIDIA-Linux-x86_64-304.88/kernel/nv-acpi.c 文件

#include "nv-misc.h"
#include "os-interface.h"
#include "nv-linux.h"
#include "nv-reg.h"

在这一堆下面加一个

include “acpi/acpi_bus.h”

再切换到 init3 去安装,不过这时候不是运行 sh NVIDIA-Linux-x86_64-304.88 .run ,而是运行你解压的那个文件夹里的 nvidia-installer

也就是切换到 tty1 登录之后:

cd NVIDIA-Linux-x86_64-304.88
./nvidia-installer

即使再报错,应该也不会是这个错误了。到时候再传 nvidia-installer.log 好了。

这次依然出现 ERROR:Unable to build the NVIDIA kernel module. :sweat:
nvidia-installer log file '/var/log/nvidia-installer.log’
creation time: Tue Jul 1 15:16:16 2014
installer version: 304.88

PATH: /home/oo/bin:/usr/local/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin

nvidia-installer command line:
    /home/oo/NVIDIA-Linux-x86-304.88/nvidia-installer

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 304.88.
-> Running distribution scripts
   executing: '/usr/lib/nvidia/pre-install'...
-> done.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/3.15.1-35.g3289da4-desktop/source'
-> Kernel output path: '/lib/modules/3.15.1-35.g3289da4-desktop/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
   executing: 'cd ./kernel; make clean'...
-> Building kernel module:
   executing: 'cd ./kernel; make module SYSSRC=/lib/modules/3.15.1-35.g3289da4-desktop/source SYSOUT=/lib/modules/3.15.1-35.g3289da4-desktop/build'...
   NVIDIA: calling KBUILD...
   make -C /lib/modules/3.15.1-35.g3289da4-desktop/build \
   KBUILD_SRC=/usr/src/linux-3.15.1-35.g3289da4 \
   KBUILD_EXTMOD="/home/oo/NVIDIA-Linux-x86-304.88/kernel" -f /usr/src/linux-3.15.1-35.g3289da4/Makefile \
   modules
   test -e include/generated/autoconf.h -a -e include/config/auto.conf || (		\
   echo >&2;							\
   echo >&2 "  ERROR: Kernel configuration is invalid.";		\
   echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
   echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
   echo >&2 ;							\
   /bin/false)
   mkdir -p /home/oo/NVIDIA-Linux-x86-304.88/kernel/.tmp_versions ; rm -f /home/oo/NVIDIA-Linux-x86-304.88/kernel/.tmp_versions/*
   make -f /usr/src/linux-3.15.1-35.g3289da4/scripts/Makefile.build obj=/home/oo/NVIDIA-Linux-x86-304.88/kernel
     cc -Wp,-MD,/home/oo/NVIDIA-Linux-x86-304.88/kernel/.nv.o.d  -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.8/include -I/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include -Iarch/x86/include/generated  -I/usr/src/linux-3.15.1-35.g3289da4/include -Iinclude -I/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.15.1-35.g3289da4/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.15.1-35.g3289da4/include/linux/kconfig.h   -I/home/oo/NVIDIA-Linux-x86-304.88/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mno-mmx -mno-sse -fno-pic -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -fstack-protector -Wno-unused-but-set-variable -fasynchrono
   us-unwind-tables -g -pg -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO   -I/home/oo/NVIDIA-Linux-x86-304.88/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"304.88\" -Wno-unused-function -Wuninitialized -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /home/oo/NVIDIA-Linux-x86-304.88/kernel/.tmp_nv.o /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv.c
   In file included from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/cpumask.h:4:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/msr.h:10,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/processor.h:20,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/thread_info.h:23,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/thread_info.h:54,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/preempt.h:6,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/preempt.h:18,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/spinlock.h:50,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/seqlock.h:35,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/time.h:5,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/timex.h:56,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/timex.h:56,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:19,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv.c:13:
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/cpumask.h: In function ‘cpumask_parse’:
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/cpumask.h:603:26: warning: signed and unsigned type in conditional expression -Wsign-compare]
     int len = nl ? nl - buf : strlen(buf);
                             ^
   In file included from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone.h:2:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/mmzone.h:926,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/topology.h:32,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:41,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv.c:13:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone_32.h: In function ‘pfn_valid’:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone_32.h:47:15: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
      return (pfn < node_end_pfn(nid));
                  ^
   In file included from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/stddef.h:1:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/stddef.h:4,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/posix_types.h:4,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/types.h:13,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/types.h:5,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/capability.h:16,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/capability.h:15,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:15,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv.c:13:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h:712:26: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
     if (likely(sz < 0 || sz >= n))
                             ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler.h:159:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h:730:26: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
     if (likely(sz < 0 || sz >= n))
                             ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler.h:159:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   In file included from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:292:0,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv.c:13:
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h: At top level:
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h:98:43: warning: ‘struct acpi_pci_root’ declared inside parameter list [enabled by default]
    struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root);
                                              ^
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h:98:43: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
     if  "-pg" = "-pg" ]; then if  /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv.o != "scripts/mod/empty.o" ]; then /usr/src/linux-3.15.1-35.g3289da4-obj/i386/desktop/scripts/recordmcount  "/home/oo/NVIDIA-Linux-x86-304.88/kernel/nv.o"; fi; fi;
     cc -Wp,-MD,/home/oo/NVIDIA-Linux-x86-304.88/kernel/.nv-acpi.o.d  -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.8/include -I/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include -Iarch/x86/include/generated  -I/usr/src/linux-3.15.1-35.g3289da4/include -Iinclude -I/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.15.1-35.g3289da4/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.15.1-35.g3289da4/include/linux/kconfig.h   -I/home/oo/NVIDIA-Linux-x86-304.88/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mno-mmx -mno-sse -fno-pic -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -mno-sse -mno-mmx -mno-sse
   2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -fstack-protector -Wno-unused-but-set-variable -fasynchronous-unwind-tables -g -pg -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO   -I/home/oo/NVIDIA-Linux-x86-304.88/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"304.88\" -Wno-unused-function -Wuninitialized -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_acpi)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /home/oo/NVIDIA-Linux-x86-304.88/kernel/.tmp_nv-acpi.o /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c
   In file included from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/cpumask.h:4:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/msr.h:10,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/processor.h:20,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/thread_info.h:23,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/thread_info.h:54,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/preempt.h:6,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/preempt.h:18,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/spinlock.h:50,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/seqlock.h:35,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/time.h:5,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/timex.h:56,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/timex.h:56,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:19,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/cpumask.h: In function ‘cpumask_parse’:
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/cpumask.h:603:26: warning: signed and unsigned type in conditional expression -Wsign-compare]
     int len = nl ? nl - buf : strlen(buf);
                             ^
   In file included from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone.h:2:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/mmzone.h:926,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/topology.h:32,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:41,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone_32.h: In function ‘pfn_valid’:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone_32.h:47:15: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
      return (pfn < node_end_pfn(nid));
                  ^
   In file included from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/stddef.h:1:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/stddef.h:4,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/posix_types.h:4,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/types.h:13,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/types.h:5,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/capability.h:16,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/capability.h:15,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:15,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h:712:26: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
     if (likely(sz < 0 || sz >= n))
                             ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler.h:159:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h:730:26: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
     if (likely(sz < 0 || sz >= n))
                             ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler.h:159:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   In file included from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:292:0,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h: At top level:
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h:98:43: warning: ‘struct acpi_pci_root’ declared inside parameter list [enabled by default]
    struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root);
                                              ^
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h:98:43: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
   /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:61:5: warning: initialization from incompatible pointer type [enabled by default]
        .ids = ACPI_VIDEO_HID,
        ^
   /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:61:5: warning: (near initialization for ‘nv_acpi_driver_template.ids’) [enabled by default]
   /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:66:9: warning: initialization from incompatible pointer type [enabled by default]
            .remove = nv_acpi_remove,
            ^
   /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:66:9: warning: (near initialization for ‘nv_acpi_driver_template.ops.remove’) [enabled by default]
   /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c: In function ‘nv_acpi_add’:
   /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:211:13: warning: passing argument 4 of ‘acpi_evaluate_integer’ from incompatible pointer type [enabled by default]
                acpi_evaluate_integer(dev->handle, "_ADR", NULL, &device_id);
                ^
   In file included from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:17:0:
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_bus.h:43:1: note: expected ‘long long unsigned int *’ but argument is of type ‘nv_acpi_integer_t *’
    acpi_evaluate_integer(acpi_handle handle,
    ^
   /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c: In function ‘nv_acpi_event’:
   /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:359:48: warning: passing argument 4 of ‘acpi_evaluate_integer’ from incompatible pointer type [enabled by default]
                                                   &state);
                                                   ^
   In file included from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:17:0:
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_bus.h:43:1: note: expected ‘long long unsigned int *’ but argument is of type ‘nv_acpi_integer_t *’
    acpi_evaluate_integer(acpi_handle handle,
    ^
   /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c: In function ‘nv_acpi_ddc_method’:
   /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:1139:9: warning: passing argument 4 of ‘acpi_evaluate_integer’ from incompatible pointer type [enabled by default]
            status = acpi_evaluate_integer(dev->handle, "_ADR", NULL, &device_id);
            ^
   In file included from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:17:0:
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_bus.h:43:1: note: expected ‘long long unsigned int *’ but argument is of type ‘nv_acpi_integer_t *’
    acpi_evaluate_integer(acpi_handle handle,
    ^
     if  "-pg" = "-pg" ]; then if  /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.o != "scripts/mod/empty.o" ]; then /usr/src/linux-3.15.1-35.g3289da4-obj/i386/desktop/scripts/recordmcount  "/home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.o"; fi; fi;
     cc -Wp,-MD,/home/oo/NVIDIA-Linux-x86-304.88/kernel/.nv-chrdev.o.d  -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.8/include -I/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include -Iarch/x86/include/generated  -I/usr/src/linux-3.15.1-35.g3289da4/include -Iinclude -I/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.15.1-35.g3289da4/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.15.
   1-35.g3289da4/include/linux/kconfig.h   -I/home/oo/NVIDIA-Linux-x86-304.88/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mno-mmx -mno-sse -fno-pic -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -fstack-protector -Wno-unused-but-set-variable -fasynchronous-unwind-tables -g -pg -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO   -I/home/oo/NVIDIA-Linux-x86-304.88/kernel -Wall -MD -Ws
   ign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"304.88\" -Wno-unused-function -Wuninitialized -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_chrdev)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /home/oo/NVIDIA-Linux-x86-304.88/kernel/.tmp_nv-chrdev.o /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-chrdev.c
   In file included from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/cpumask.h:4:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/msr.h:10,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/processor.h:20,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/thread_info.h:23,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/thread_info.h:54,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/preempt.h:6,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/preempt.h:18,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/spinlock.h:50,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/seqlock.h:35,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/time.h:5,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/timex.h:56,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/timex.h:56,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:19,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-chrdev.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/cpumask.h: In function ‘cpumask_parse’:
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/cpumask.h:603:26: warning: signed and unsigned type in conditional expression -Wsign-compare]
     int len = nl ? nl - buf : strlen(buf);
                             ^
   In file included from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone.h:2:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/mmzone.h:926,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/topology.h:32,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:41,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-chrdev.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone_32.h: In function ‘pfn_valid’:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone_32.h:47:15: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
      return (pfn < node_end_pfn(nid));
                  ^
   In file included from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/stddef.h:1:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/stddef.h:4,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/posix_types.h:4,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/types.h:13,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/types.h:5,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/capability.h:16,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/capability.h:15,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:15,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-chrdev.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h:712:26: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
     if (likely(sz < 0 || sz >= n))
                             ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler.h:159:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h:730:26: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
     if (likely(sz < 0 || sz >= n))
                             ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler.h:159:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   In file included from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:292:0,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-chrdev.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h: At top level:
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h:98:43: warning: ‘struct acpi_pci_root’ declared inside parameter list [enabled by default]
    struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root);
                                              ^
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h:98:43: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
     if  "-pg" = "-pg" ]; then if  /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-chrdev.o != "scripts/mod/empty.o" ]; then /usr/src/linux-3.15.1-35.g3289da4-obj/i386/desktop/scripts/recordmcount  "/home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-chrdev.o"; fi; fi;
     cc -Wp,-MD,/home/oo/NVIDIA-Linux-x86-304.88/kernel/.nv-cray.o.d  -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.8/include -I/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include -Iarch/x86/include/generated  -I/usr/src/linux-3.15.1-35.g3289da4/include -Iinclude -I/usr/src/linux-3.15.1-35
   .g3289da4/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.15.1-35.g3289da4/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.15.1-35.g3289da4/include/linux/kconfig.h   -I/home/oo/NVIDIA-Linux-x86-304.88/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mno-mmx -mno-sse -fno-pic -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -fstack-protector -Wno-unused-but-set-variable -fasynchronous-unwind-tables -g -pg -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-point
   er-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO   -I/home/oo/NVIDIA-Linux-x86-304.88/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"304.88\" -Wno-unused-function -Wuninitialized -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_cray)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /home/oo/NVIDIA-Linux-x86-304.88/kernel/.tmp_nv-cray.o /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-cray.c
   In file included from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/cpumask.h:4:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/msr.h:10,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/processor.h:20,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/thread_info.h:23,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/thread_info.h:54,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/preempt.h:6,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/preempt.h:18,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/spinlock.h:50,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/seqlock.h:35,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/time.h:5,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/timex.h:56,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/timex.h:56,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:19,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-cray.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/cpumask.h: In function ‘cpumask_parse’:
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/cpumask.h:603:26: warning: signed and unsigned type in conditional expression -Wsign-compare]
     int len = nl ? nl - buf : strlen(buf);
                             ^
   In file included from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone.h:2:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/mmzone.h:926,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/topology.h:32,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:41,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-cray.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone_32.h: In function ‘pfn_valid’:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone_32.h:47:15: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
      return (pfn < node_end_pfn(nid));
                  ^
   In file included from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/stddef.h:1:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/stddef.h:4,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/posix_types.h:4,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/types.h:13,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/types.h:5,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/capability.h:16,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/capability.h:15,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:15,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-cray.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h:712:26: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
     if (likely(sz < 0 || sz >= n))
                             ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler.h:159:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h:730:26: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
     if (likely(sz < 0 || sz >= n))
                             ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler.h:159:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   In file included from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:292:0,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-cray.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h: At top level:
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h:98:43: warning: ‘struct acpi_pci_root’ declared inside parameter list [enabled by default]
    struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root);
                                              ^
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h:98:43: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
     if  "-pg" = "-pg" ]; then if  /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-cray.o != "scripts/mod/empty.o" ]; then /usr/src/linux-3.15.1-35.g3289da4-obj/i386/desktop/scripts/recordmcount  "/home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-cray.o"; fi; fi;
     cc -Wp,-MD,/home/oo/NVIDIA-Linux-x86-304.88/kernel/.nv-gvi.o.d  -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.8/include -I/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include -Iarch/x86/include/generated  -I/usr/src/linux-3.15.1-35.g3289da4/include -Iinclude -I/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.15.1-35.g3289da4/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.15.1-35.g3289da4/include/linux/kconfig.h   -I/home/oo/NVIDIA-Linux-x86-304.88/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mno-mmx -mno-sse -fno-pic -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -fstack
   -protector -Wno-unused-but-set-variable -fasynchronous-unwind-tables -g -pg -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO   -I/home/oo/NVIDIA-Linux-x86-304.88/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"304.88\" -Wno-unused-function -Wuninitialized -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_gvi)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /home/oo/NVIDIA-Linux-x86-304.88/kernel/.tmp_nv-gvi.o /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-gvi.c
   In file included from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/cpumask.h:4:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/msr.h:10,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/processor.h:20,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/thread_info.h:23,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/thread_info.h:54,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/preempt.h:6,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/preempt.h:18,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/spinlock.h:50,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/seqlock.h:35,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/time.h:5,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/timex.h:56,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/timex.h:56,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:19,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-gvi.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/cpumask.h: In function ‘cpumask_parse’:
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/cpumask.h:603:26: warning: signed and unsigned type in conditional expression -Wsign-compare]
     int len = nl ? nl - buf : strlen(buf);
                             ^
   In file included from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone.h:2:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/mmzone.h:926,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/topology.h:32,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:41,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-gvi.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone_32.h: In function ‘pfn_valid’:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone_32.h:47:15: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
      return (pfn < node_end_pfn(nid));
                  ^
   In file included from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/stddef.h:1:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/stddef.h:4,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/posix_types.h:4,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/types.h:13,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/types.h:5,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/capability.h:16,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/capability.h:15,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:15,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-gvi.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h:712:26: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
     if (likely(sz < 0 || sz >= n))
                             ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler.h:159:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h:730:26: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
     if (likely(sz < 0 || sz >= n))
                             ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler.h:159:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   In file included from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:292:0,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-gvi.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h: At top level:
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h:98:43: warning: ‘struct acpi_pci_root’ declared inside parameter list [enabled by default]
    struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root);
                                              ^
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h:98:43: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
     if  "-pg" = "-pg" ]; then if  /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-gvi.o != "scripts/mod/empty.o" ]; then /usr/src/linux-3.15.1-35.g3289da4-obj/i386/desktop/scripts/recordmcount  "/home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-gvi.o"; fi; fi;
     cc -Wp,-MD,/home/oo/NVIDIA-Linux-x86-304.88/kernel/.nv-i2c.o.d  -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.8/include -I/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include -Iarch/x86/include/generated  -I/usr/src/linux-3.15.1-35.g3289da4/include -Iinclude -I/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.15.1-35.g3289da4/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.15.1-35.g3289da4/include/linux/kconfig.h   -I/home/oo/NVIDIA-Linux-x86-304.88/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mno-mmx -mno-sse -fno-pic -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_CRC32=1 
   -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -fstack-protector -Wno-unused-but-set-variable -fasynchronous-unwind-tables -g -pg -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO   -I/home/oo/NVIDIA-Linux-x86-304.88/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"304.88\" -Wno-unused-function -Wuninitialized -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_i2c)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /home/oo/NVIDIA-Linux-x86-304.88/kernel/.tmp_nv-i2c.o /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-i2c.c
   In file included from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/cpumask.h:4:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/msr.h:10,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/processor.h:20,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/thread_info.h:23,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/thread_info.h:54,
                    from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/preempt.h:6,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/preempt.h:18,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/spinlock.h:50,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/seqlock.h:35,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/time.h:5,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/timex.h:56,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/timex.h:56,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:19,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-i2c.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/cpumask.h: In function ‘cpumask_parse’:
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/cpumask.h:603:26: warning: signed and unsigned type in conditional expression -Wsign-compare]
     int len = nl ? nl - buf : strlen(buf);
                             ^
   In file included from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone.h:2:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/mmzone.h:926,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/topology.h:32,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:41,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-i2c.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone_32.h: In function ‘pfn_valid’:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone_32.h:47:15: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
      return (pfn < node_end_pfn(nid));
                  ^
   In file included from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/stddef.h:1:0,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/stddef.h:4,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/posix_types.h:4,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/types.h:13,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/types.h:5,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/capability.h:16,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/capability.h:15,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:15,
                    from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-i2c.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h:712:26: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
     if (likely(sz < 0 || sz >= n))
                             ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler.h:159:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
   /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h:730:26: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
     if (likely(sz < 0 || sz >= n))
                             ^
   /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler.h:159:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   In file included from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:292:0,
                    from /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-i2c.c:15:
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h: At top level:
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h:98:43: warning: ‘struct acpi_pci_root’ declared inside parameter list [enabled by default]
    struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root);
                                              ^
   /usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h:98:43: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
   /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-i2c.c: In function ‘nv_i2c_del_adapter’:
   /home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-i2c.c:327:14: error: void value not ignored as it ought to be
        osstatus = i2c_del_adapter(pI2cAdapter);
                 ^
   make[4]: *** [/home/oo/NVIDIA-Linux-x86-304.88/kernel/nv-i2c.o] 错误 1
   make[3]: *** [_module_/home/oo/NVIDIA-Linux-x86-304.88/kernel] 错误 2
   make[2]: *** [sub-make] 错误 2
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   make[1]: *** [module] 错误 1
   make: *** [module] 错误 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

直接解压驱动

cd NVIDIA-Linux-x86_64-304.88
patch -p1 < patch_nvidia_304.88_kernel_3.11.10.patch
./nvidia-installer

patch_nvidia_304.88_kernel_3.11.10.patch (19.3 KB)

1赞

我是把 nvidia-installer 文件拖进终端运行的,管理员 cd 命令运行出现没有那个文件或目录,除非先 cd 到 NVIDIA-Linux-x86-304.88 目录,然后./nvidia-installer 才可以运行。管理员提供的补丁运行出现 Could not parse diff output. 可能补丁我使用方式不对,幸苦了,管理员。

补丁要在 NVIDIA 解压出来的那个目录打。我测试都编译出 nvidia.ko 了…

Sent from my iPhone 5s using Tapatalk

性能最好的是官方驱动,还是那种一键安装的驱动?

一键安装的就是官方的闭源驱动,开源驱动一般无需安装。装完系统以后没不良反应基本就间接证明你用了开源驱动然后没有问题。所以装驱动不是装完系统以后必需的。