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

去下最新版驱动。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

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

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

在 nvidia 目录下打开也是这样,不知道哪里弄错了。

现在用回官方版本,驱动没有问题了,此贴已经没有意义,弄得管理员白忙活一场,真不好意思。以后不随意发帖了。

  1. 因为 NVIDIA-Linux-x86-304.88 不在系统环境变量里,你必须得先 cd。

  2. 补丁不是用来「运行的」,打补丁的全套方式我已经写了。或者你也可以看:[ 教学 ] 如何制作和应用补丁

请不要「发明」使用方法…