[BUG] nvidia 340.76 build on linux/64 fails after upgrade of kernel v3.19.4 -> v4.0.0

NVidia 340.76 builds and execs, on kernel 3.19.4-1.g74c332b, with no problems.

On upgrade of

kernel 3.19.4-1.g74c332b -> kernel 4.0.0-2.g53b125b

before & after ‘make oldconfig && make prepare’ on new sources, build fails, as follows:

[code]
nvidia-installer log file ‘/var/log/nvidia-installer.log’
creation time: Thu Apr 23 13:20:23 2015
installer version: 340.76

nvidia-installer command line:
./nvidia-installer
–ui=none
–no-nouveau-check
–no-questions
–accept-license
–no-install-vdpau-wrapper
–no-check-for-alternate-installs
–no-cc-version-check

Using built-in stream user interface
-> License accepted by command line option.
-> Installing NVIDIA driver version 340.76.
-> There appears to already be a driver installed on your system (version: 340.76). As part of installing this driver (version: 340.76), the existing driver will be uninstalled. Are you sure you want to continue? (Answer: Continue installation)
-> Running distribution scripts
executing: ‘/usr/lib/nvidia/pre-install’…
-> done.
-> The distribution-provided pre-install script completed successfully. If this is the first time you have run the installer, this script may have helped disable Nouveau, but a reboot may be required first. Would you like to continue, or would you prefer to abort installation to reboot the system? (Answer: Continue installation)
-> Performing CC sanity check with CC="/usr/bin/gcc-5".
-> Kernel source path: ‘/lib/modules/4.0.0-2.g53b125b-desktop/source’
-> Kernel output path: ‘/lib/modules/4.0.0-2.g53b125b-desktop/build’
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Performing PREEMPT_RT check.
-> Cleaning kernel module build directory.
executing: ‘cd ./kernel; /usr/bin/make clean’…
-> Building NVIDIA kernel module:
executing: ‘cd ./kernel; /usr/bin/make module SYSSRC=/lib/modules/4.0.0-2.g53b125b-desktop/source SYSOUT=/lib/modules/4.0.0-2.g53b125b-desktop/build NV_BUILD_MODULE_INSTANCES=’…
NVIDIA: calling KBUILD…
make[1]: Entering directory ‘/usr/src/linux-4.0.0-2.g53b125b’
/usr/bin/make -C /lib/modules/4.0.0-2.g53b125b-desktop/build KBUILD_SRC=/usr/src/linux-4.0.0-2.g53b125b
-f /usr/src/linux-4.0.0-2.g53b125b/Makefile modules
make[2]: Entering directory ‘/usr/src/linux-4.0.0-2.g53b125b-obj/x86_64/desktop’
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/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/.tmp_versions ; rm -f /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/.tmp_versions/*
/usr/bin/make -f /usr/src/linux-4.0.0-2.g53b125b/scripts/Makefile.build obj=/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel
/usr/bin/gcc-5 -Wp,-MD,/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/.nv.o.d -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/5/include -I/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.0.0-2.g53b125b/include -Iinclude -I/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.0.0-2.g53b125b/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.0.0-2.g53b125b/include/linux/kconfig.h -I/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -m64 -mno-80387 -mno-fp-ret-in-387 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=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 -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector -Wno-unused-but-set-variable -fno-var-tracking-assignments -fasynchronous-unwind-tables -g -gdwarf-4 -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=“340.76” -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=“nvidia” -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME
=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/.tmp_nv.o /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv.c
In file included from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/stddef.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/types.h:13,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/types.h:5,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/capability.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/sched.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/utsname.h:5,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-linux.h:44,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv.c:13:
/usr/src/linux-4.0.0-2.g53b125b/include/asm-generic/qrwlock.h: In function ‘queue_write_trylock’:
/usr/src/linux-4.0.0-2.g53b125b/include/asm-generic/qrwlock.h:93:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
^
/usr/src/linux-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
In file included from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/stddef.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/types.h:13,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/types.h:5,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/capability.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/sched.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/utsname.h:5,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-linux.h:44,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv.c:13:
/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
/usr/src/linux-4.0.0-2.g53b125b/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-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
/usr/src/linux-4.0.0-2.g53b125b/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-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
if [ “-pg” = “-pg” ]; then if [ /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv.o != “scripts/mod/empty.o” ]; then ./scripts/recordmcount “/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv.o”; fi; fi;
/usr/bin/gcc-5 -Wp,-MD,/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/.nv-acpi.o.d -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/5/include -I/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.0.0-2.g53b125b/include -Iinclude -I/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.0.0-2.g53b125b/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.0.0-2.g53b125b/include/linux/kconfig.h -I/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel -D__KERNEL
-Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -m64 -mno-80387 -mno-fp-ret-in-387 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=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 -fno-delete-null-pointer-checks -O2 --par
am=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector -Wno-unused-but-set-variable -fno-var-tracking-assignments -fasynchronous-unwind-tables -g -gdwarf-4 -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL
-DMODULE -DNVRM -DNV_VERSION_STRING=“340.76” -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux
-DNV_DEV_NAME=“nvidia” -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_acpi)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/.tmp_nv-acpi.o /tmp/selfgz21975/NVIDIA-
Linux-x86_64-340.76-no-compat32/kernel/nv-acpi.c
In file included from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/stddef.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/types.h:13,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/types.h:5,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/capability.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/sched.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/utsname.h:5,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-linux.h:44,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-acpi.c:15:
/usr/src/linux-4.0.0-2.g53b125b/include/asm-generic/qrwlock.h: In function ‘queue_write_trylock’:
/usr/src/linux-4.0.0-2.g53b125b/include/asm-generic/qrwlock.h:93:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
^
/usr/src/linux-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
In file included from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/stddef.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/types.h:13,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/types.h:5,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/capability.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/sched.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/utsname.h:5,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-linux.h:44,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-acpi.c:15:
/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
/usr/src/linux-4.0.0-2.g53b125b/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-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
/usr/src/linux-4.0.0-2.g53b125b/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-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
if [ “-pg” = “-pg” ]; then if [ /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-acpi.o != “scripts/mod/empty.o” ]; then ./scripts/recordmcount “/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-acpi.o”; fi; fi;
/usr/bin/gcc-5 -Wp,-MD,/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/.nv-chrdev.o.d -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/5/include -I/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.0.0-2.g53b125b/include -Iinclude
-I/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.0.0-2.g53b125b/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.0.0-2.g53b125b/include/linux/kconfig.h -I/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel -D__KERNEL
-Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -m64 -mno-80387 -mno-fp-ret-in-387 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=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 -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector -Wno-unused-but-set-variable -fno-var-tracking-assignments -f
asynchronous-unwind-tables -g -gdwarf-4 -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL
-DMODULE -DNVRM -DNV_VERSION_STRING=“340.76” -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux
-DNV_DEV_NAME=“nvidia” -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_chrdev)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/.tmp_nv-chrdev.o /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-chrdev.c
In file included from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/stddef.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/types.h:13,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/types.h:5,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/capability.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/sched.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/utsname.h:5,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-linux.h:44,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-chrdev.c:15:
/usr/src/linux-4.0.0-2.g53b125b/include/asm-generic/qrwlock.h: In function ‘queue_write_trylock’:
/usr/src/linux-4.0.0-2.g53b125b/include/asm-generic/qrwlock.h:93:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
^
/usr/src/linux-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
In file included from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/stddef.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/types.h:13,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/types.h:5,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/capability.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/sched.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/utsname.h:5,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-linux.h:44,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-chrdev.c:15:
/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
/usr/src/linux-4.0.0-2.g53b125b/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-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
/usr/src/linux-4.0.0-2.g53b125b/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-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
if [ “-pg” = “-pg” ]; then if [ /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-chrdev.o != “scripts/mod/empty.o” ]; then ./scripts/recordmcount “/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-chrdev.o”; fi; fi;
/usr/bin/gcc-5 -Wp,-MD,/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/.nv-cray.o.d -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/5/include -I/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.0.0-2.g53b125b/include -Iinclude -I/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.0.0-2.g53b1
25b/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.0.0-2.g53b125b/include/linux/kconfig.h -I/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel -D__KERNEL
-Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -m64 -mno-80387 -mno-fp-ret-in-387 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=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 -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector -Wno-unused-but-set-variable -fno-var-tracking-assignments -fasynchronous-unwind-tables -g -gdwarf-4 -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-a
fter-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL
-DMODULE -DNVRM -DNV_VERSION_STRING=“340.76” -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux
-DNV_DEV_NAME=“nvidia” -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_cray)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/.tmp_nv-cray.o /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-cray.c
In file included from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/stddef.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/types.h:13,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/types.h:5,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/capability.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/sched.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/utsname.h:5,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-linux.h:44,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-cray.c:15:
/usr/src/linux-4.0.0-2.g53b125b/include/asm-generic/qrwlock.h: In function ‘queue_write_trylock’:
/usr/src/linux-4.0.0-2.g53b125b/include/asm-generic/qrwlock.h:93:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
^
/usr/src/linux-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
In file included from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/stddef.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/types.h:13,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/types.h:5,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/capability.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/sched.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/utsname.h:5,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-linux.h:44,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-cray.c:15:
/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
/usr/src/linux-4.0.0-2.g53b125b/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-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
/usr/src/linux-4.0.0-2.g53b125b/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-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
if [ “-pg” = “-pg” ]; then if [ /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-cray.o != “scripts/mod/empty.o” ]; then ./scripts/recordmcount “/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-cray.o”; fi; fi;
/usr/bin/gcc-5 -Wp,-MD,/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/.nv-dma.o.d -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/5/include -I/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.0.0-2.g53b125b/include -Iinclude -I/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.0.0-2.g53b125b/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.0.0-2.g53b125b/include/linux/kconfig.h -I/tmp/selfgz21975/NVIDIA-
Linux-x86_64-340.76-no-compat32/kernel -D__KERNEL
-Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -m64 -mno-80387 -mno-fp-ret-in-387 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=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 -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector -Wno-unused-but-set-variable -fno-var-tracking-assignments -fasynchronous-unwind-tables -g -gdwarf-4 -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time
-DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL
-DMODULE -DNVRM -DNV_VERSION_STRING=“340.76” -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux
-DNV_DEV_NAME=“nvidia” -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_dma)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/.tmp_nv-dma.o /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-dma.c
In file included from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/stddef.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/types.h:13,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/types.h:5,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/capability.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/sched.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/utsname.h:5,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-linux.h:44,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-dma.c:15:
/usr/src/linux-4.0.0-2.g53b125b/include/asm-generic/qrwlock.h: In function ‘queue_write_trylock’:
/usr/src/linux-4.0.0-2.g53b125b/include/asm-generic/qrwlock.h:93:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
^
/usr/src/linux-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
In file included from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/stddef.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/types.h:13,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/types.h:5,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/capability.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/sched.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/utsname.h:5,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-linux.h:44,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-dma.c:15:
/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
/usr/src/linux-4.0.0-2.g53b125b/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-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
/usr/src/linux-4.0.0-2.g53b125b/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-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
if [ “-pg” = “-pg” ]; then if [ /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-dma.o != “scripts/mod/empty.o” ]; then ./scripts/recordmcount “/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-dma.o”; fi; fi;
/usr/bin/gcc-5 -Wp,-MD,/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/.nv-drm.o.d -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/5/include -I/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.0.0-2.g53b125b/include -Iinclude -I/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.0.0-2.g53b125b/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.0.0-2.g53b125b/include/linux/kconfig.h -I/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel -D__KERNEL
-Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-
implicit-function-declaration -Wno-format-security -std=gnu89 -m64 -mno-80387 -mno-fp-ret-in-387 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=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 -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector -Wno-unused-but-set-variable -fno-var-tracking-assignments -fasynchronous-unwind-tables -g -gdwarf-4 -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz21975/NVIDIA-Linux-x86_64-34
0.76-no-compat32/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL
-DMODULE -DNVRM -DNV_VERSION_STRING=“340.76” -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux
-DNV_DEV_NAME=“nvidia” -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_drm)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/.tmp_nv-drm.o /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-drm.c
In file included from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/stddef.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/types.h:13,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/types.h:5,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/capability.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/sched.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/utsname.h:5,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-linux.h:44,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-drm.c:15:
/usr/src/linux-4.0.0-2.g53b125b/include/asm-generic/qrwlock.h: In function ‘queue_write_trylock’:
/usr/src/linux-4.0.0-2.g53b125b/include/asm-generic/qrwlock.h:93:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
^
/usr/src/linux-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
In file included from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/stddef.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/types.h:13,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/types.h:5,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/capability.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/sched.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/utsname.h:5,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-linux.h:44,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-drm.c:15:
/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
/usr/src/linux-4.0.0-2.g53b125b/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-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
/usr/src/linux-4.0.0-2.g53b125b/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-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
if [ “-pg” = “-pg” ]; then if [ /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-drm.o != “scripts/mod/empty.o” ]; then ./scripts/recordmcount “/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-drm.o”; fi; fi;
/usr/bin/gcc-5 -Wp,-MD,/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/.nv-gvi.o.d -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/5/include -I/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.0.0-2.g53b125b/include -Iinclude -I/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.0.0-2.g53b125b/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.0.0-2.g53b125b/include/linux/kconfig.h -I/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel -D__KERNEL
-Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -m64 -mno-80387 -mno-fp-ret-in-387 -mtune=generic -mno-red-zone -mcmodel=kernel
-funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=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 -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector -Wno-unused-but-set-variable -fno-var-tracking-assignments -fasynchronous-unwind-tables -g -gdwarf-4 -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL
-DMODULE -DNVRM -DNV_VERSION_STRING=“340.76” -Wno-un
used-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux
-DNV_DEV_NAME=“nvidia” -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_gvi)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/.tmp_nv-gvi.o /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-gvi.c
In file included from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/stddef.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/types.h:13,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/types.h:5,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/capability.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/sched.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/utsname.h:5,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-linux.h:44,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-gvi.c:15:
/usr/src/linux-4.0.0-2.g53b125b/include/asm-generic/qrwlock.h: In function ‘queue_write_trylock’:
/usr/src/linux-4.0.0-2.g53b125b/include/asm-generic/qrwlock.h:93:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
^
/usr/src/linux-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
In file included from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/stddef.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/types.h:13,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/types.h:5,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/capability.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/sched.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/utsname.h:5,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-linux.h:44,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-gvi.c:15:
/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
/usr/src/linux-4.0.0-2.g53b125b/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-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
/usr/src/linux-4.0.0-2.g53b125b/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-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
if [ “-pg” = “-pg” ]; then if [ /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-gvi.o != “scripts/mod/empty.o” ]; then ./scripts/recordmcount “/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-gvi.o”; fi; fi;
/usr/bin/gcc-5 -Wp,-MD,/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/.nv-i2c.o.d -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/5/include -I/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.0.0-2.g53b125b/include -Iinclude -I/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.0.0-2.g53b125b/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.0.0-2.g53b125b/include/linux/kconfig.h -I/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel -D__KERNEL
-Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -m64 -mno-80387 -mno-fp-ret-in-387 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -
DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=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 -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector -Wno-unused-but-set-variable -fno-var-tracking-assignments -fasynchronous-unwind-tables -g -gdwarf-4 -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL
-DMODULE -DNVRM -DNV_VERSION_STRING=“340.76” -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux
-DNV_DEV_NAME=“nvidia” -DMODUL
E -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_i2c)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/.tmp_nv-i2c.o /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-i2c.c
In file included from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/stddef.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/types.h:13,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/types.h:5,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/capability.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/sched.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/utsname.h:5,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-linux.h:44,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-i2c.c:15:
/usr/src/linux-4.0.0-2.g53b125b/include/asm-generic/qrwlock.h: In function ‘queue_write_trylock’:
/usr/src/linux-4.0.0-2.g53b125b/include/asm-generic/qrwlock.h:93:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
^
/usr/src/linux-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
In file included from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/stddef.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/types.h:13,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/types.h:5,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/capability.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/sched.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/utsname.h:5,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-linux.h:44,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-i2c.c:15:
/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
/usr/src/linux-4.0.0-2.g53b125b/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-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
/usr/src/linux-4.0.0-2.g53b125b/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-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
if [ “-pg” = “-pg” ]; then if [ /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-i2c.o != “scripts/mod/empty.o” ]; then ./scripts/recordmcount “/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-i2c.o”; fi; fi;
/usr/bin/gcc-5 -Wp,-MD,/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/.nv-mempool.o.d -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/5/include -I/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.0.0-2.g53b125b/include -Iinclude -I/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.0.0-2.g53b125b/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.0.0-2.g53b125b/include/linux/kconfig.h -I/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel -D__KERNEL
-Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -m64 -mno-80387 -mno-fp-ret-in-387 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -mno-sse -mno-mm
x -mno-sse2 -mno-3dnow -mno-avx -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector -Wno-unused-but-set-variable -fno-var-tracking-assignments -fasynchronous-unwind-tables -g -gdwarf-4 -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL
-DMODULE -DNVRM -DNV_VERSION_STRING=“340.76” -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux
-DNV_DEV_NAME=“nvidia” -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_mempool)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz21975/NVIDIA-Li
nux-x86_64-340.76-no-compat32/kernel/.tmp_nv-mempool.o /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-mempool.c
In file included from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/stddef.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/types.h:13,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/types.h:5,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/capability.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/sched.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/utsname.h:5,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-linux.h:44,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-mempool.c:15:
/usr/src/linux-4.0.0-2.g53b125b/include/asm-generic/qrwlock.h: In function ‘queue_write_trylock’:
/usr/src/linux-4.0.0-2.g53b125b/include/asm-generic/qrwlock.h:93:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
^
/usr/src/linux-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
In file included from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/stddef.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/types.h:13,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/types.h:5,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/capability.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/sched.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/utsname.h:5,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-linux.h:44,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-mempool.c:15:
/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
/usr/src/linux-4.0.0-2.g53b125b/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-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
/usr/src/linux-4.0.0-2.g53b125b/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-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
if [ “-pg” = “-pg” ]; then if [ /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-mempool.o != “scripts/mod/empty.o” ]; then ./scripts/recordmcount “/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-mempool.o”; fi; fi;
/usr/bin/gcc-5 -Wp,-MD,/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/.nv-mmap.o.d -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/5/include -I/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.0.0-2.g53b125b/include -Iinclude -I/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.0.0-2.g53b125b/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.0.0-2.g53b125b/include/linux/kconfig.h -I/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel -D__KERNEL
-Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -m64 -mno-80387 -mno-fp-ret-in-387 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=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 -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larg
er-than=2048 -fstack-protector -Wno-unused-but-set-variable -fno-var-tracking-assignments -fasynchronous-unwind-tables -g -gdwarf-4 -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL
-DMODULE -DNVRM -DNV_VERSION_STRING=“340.76” -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux
-DNV_DEV_NAME=“nvidia” -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_mmap)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/.tmp_nv-mmap.o /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/n
v-mmap.c
In file included from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/stddef.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/types.h:13,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/types.h:5,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/capability.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/sched.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/utsname.h:5,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-linux.h:44,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-mmap.c:15:
/usr/src/linux-4.0.0-2.g53b125b/include/asm-generic/qrwlock.h: In function ‘queue_write_trylock’:
/usr/src/linux-4.0.0-2.g53b125b/include/asm-generic/qrwlock.h:93:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
^
/usr/src/linux-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) __builtin_expect(!!(x), 1)
^
In file included from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/stddef.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/types.h:13,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/types.h:5,
from /usr/src/linux-4.0.0-2.g53b125b/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/capability.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/sched.h:15,
from /usr/src/linux-4.0.0-2.g53b125b/include/linux/utsname.h:5,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-linux.h:44,
from /tmp/selfgz21975/NVIDIA-Linux-x86_64-340.76-no-compat32/kernel/nv-mmap.c:15:
/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
/usr/src/linux-4.0.0-2.g53b125b/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-4.0.0-2.g53b125b/include/linux/compiler.h:163:40: note: in definition of macro ‘likely’
# define likely(x) __builtin_expect(!!(x), 1)
^
/usr/src/linux-4.0.0-2.g53b125b/arch/x86/include/asm/uaccess.h:

Try the latest 340.76 driver from mamarley ppa. It worked for me!

(1) I am using the 340.76 driver source
(2) I have no idea what the ‘mamarley ppa’ is. I assume it’s a Ubuntu user’s binary repo
(3) I’m not interested in a binary, I’m interested in the build
(4) I’m building on opensuse, not ubuntu

Then you have to patch your nvidia-installer.

The installer build worked fine for kernel 3.19.x. Not with v4.0.0.

I’m not going to patch Nvidia’s product … I’m reporting the bug.

I may confirm it is a bug affecting me too.
Here you may find a solution: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-304-updates/+bug/1431278
Tested on my system (OPENsuse factory with kernel 4.0.0-1 and nvidia 340.76) and WORKING!

@pingeonskiller

Can you explain how you got it to work?
I am also running Opensuse Tumbleweed with kernel 4.0.0.-1 and I never patched a driver.

For Cneugeb:

You have to go to link https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-304-updates/+bug/1431278/comments/6 and follow the procedure explained there.

Remember to repeat that procedure every time you update your kernel!