Cannot install Linux driver 340.107 for NVIDIA Corporation GT218 [GeForce 210] (rev a2)

I am trying to install 340.107 on my CentOS server.

I run the command sh ./nvidia-linux-x86_64-340.107.run

Here is the log file.

nvidia-installer log file ‘/var/log/nvidia-installer.log’
creation time: Wed Dec 11 19:43:07 2019
installer version: 340.107

PATH: /sbin:/bin:/usr/sbin:/usr/bin

nvidia-installer command line:
./nvidia-installer

Unable to load: nvidia-installer ncurses v6 user interface

Using: nvidia-installer ncurses user interface
→ Tagging shared libraries with chcon -t textrel_shlib_t.
→ License accepted.
→ Installing NVIDIA driver version 340.107.
→ There appears to already be a driver installed on your system (version: 340.96). As part of installing this driver (version: 340.107), the existing driver will be uninstalled. Are you sure you want to continue? (Answer: Continue installation)
→ Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later. (Answer: No)
→ Performing CC sanity check with CC=“/bin/cc”.
→ Kernel source path: ‘/lib/modules/3.10.0-1062.9.1.el7.x86_64/source’
→ Kernel output path: ‘/lib/modules/3.10.0-1062.9.1.el7.x86_64/build’
→ Performing rivafb check.
→ Performing nvidiafb check.
→ Performing Xen check.
→ Performing PREEMPT_RT check.
→ Cleaning kernel module build directory.
executing: ‘cd ./kernel; /bin/make clean’…
→ Building NVIDIA kernel module:
executing: ‘cd ./kernel; /bin/make module SYSSRC=/lib/modules/3.10.0-1062.9.1.el7.x86_64/source SYSOUT=/lib/modules/3.10.0-1062.9.1.el7.x86_64/build NV_BUILD_MODULE_INSTANCES=’…
NVIDIA: calling KBUILD…
make[1]: Entering directory /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64' /bin/make -C /lib/modules/3.10.0-1062.9.1.el7.x86_64/build \ KBUILD_SRC=/usr/src/kernels/3.10.0-1062.9.1.el7.x86_64 \ KBUILD_EXTMOD="/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel" -f /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/Makefile \ modules test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \ echo >&2; \ echo >&2 " ERROR: Kernel configuration is invalid."; \ echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\ echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo >&2 ; \ /bin/false) mkdir -p /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/.tmp_versions ; rm -f /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/.tmp_versions/* /bin/make -f /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/scripts/Makefile.build obj=/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel cc -Wp,-MD,/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/.nv.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include -I/usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include -Iarch/x86/include/generated -I/usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include -Iinclude -I/usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/uapi -Iinclude/generated/uapi -include /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/kconfig.h -I/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/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 -std=gnu89 -O2 -m64 -mno-mmx -mno-sse -mpreferred-stack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -Wframe-larger-than=2048 -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTION S=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -mindirect-branch=thunk-extern -mindirect-branch-register -DRETPOLINE -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.107\" -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/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/.tmp_nv.o /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv.c In file included from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/little_endian.h:6:0, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/uapi/asm/byteorder.h:4, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/asm-generic/bitops/le.h:5, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/bitops.h:514, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/bitops.h:37, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/kernel.h:10, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/sched.h:15, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv.c:13: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/generic.h:177:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < len; i++) ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/generic.h:185:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < len; i++) ^ In file included from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/cpumask.h:4:0, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/msr.h:10, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/processor.h:20, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/cpufeature.h:7, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/thread_info.h:22, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/thread_info.h:66, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/preempt.h:9, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/spinlock.h:50, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/seqlock.h:35, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/time.h:5, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/uapi/linux/timex.h:56, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/timex.h:56, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/sched.h:17, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv.c:13: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpumask.h: In function ‘cpumask_parse’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpumask.h:634:26: warning: signed and unsigned type in conditional expression [-Wsign-compare] int len = nl ? nl - buf : strlen(buf); ^ In file included from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/rh_kabi.h:22:0, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/sched.h:5, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv.c:13: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/asm-generic/qrwlock.h:93:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/compiler.h:152:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:91:0, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv.c:13: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpufreq.h: In function ‘cpufreq_next_valid’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpufreq.h:534:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while ((*pos)->frequency != CPUFREQ_TABLE_END) ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpufreq.h:535:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if ((*pos)->frequency != CPUFREQ_ENTRY_INVALID) ^ In file included from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/rh_kabi.h:22:0, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/sched.h:5, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv.c:13: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h:78:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz == -1 || sz >= n)) { ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/compiler.h:152:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_to_user’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h:95:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz == -1 || sz >= size)) { ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/compiler.h:152:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv.o"; fi; fi; cc -Wp,-MD,/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/.nv-acpi.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include -I/usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include -Iarch/x86/include/generated -I/usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include -Iinclude -I/usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/uapi -Iinclude/generated/uapi -include /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/kconfig.h -I/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/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 -std=gnu89 -O2 -m64 -mno-mmx -mno-sse -mpreferred-stack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-ar gs -Wframe-larger-than=2048 -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -mindirect-branch=thunk-extern -mindirect-branch-register -DRETPOLINE -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.107\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zon e -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/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/.tmp_nv-acpi.o /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-acpi.c In file included from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/little_endian.h:6:0, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/uapi/asm/byteorder.h:4, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/asm-generic/bitops/le.h:5, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/bitops.h:514, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/bitops.h:37, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/kernel.h:10, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/sched.h:15, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-acpi.c:15: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/generic.h:177:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < len; i++) ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/generic.h:185:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < len; i++) ^ In file included from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/cpumask.h:4:0, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/msr.h:10, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/processor.h:20, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/cpufeature.h:7, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/thread_info.h:22, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/thread_info.h:66, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/preempt.h:9, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/spinlock.h:50, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/seqlock.h:35, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/time.h:5, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/uapi/linux/timex.h:56, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/timex.h:56, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/sched.h:17, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-acpi.c:15: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpumask.h: In function ‘cpumask_parse’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpumask.h:634:26: warning: signed and unsigned type in conditional expression [-Wsign-compare] int len = nl ? nl - buf : strlen(buf); ^ In file included from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/rh_kabi.h:22:0, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/sched.h:5, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-acpi.c:15: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/asm-generic/qrwlock.h:93:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/compiler.h:152:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:91:0, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-acpi.c:15: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpufreq.h: In function ‘cpufreq_next_valid’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpufreq.h:534:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while ((*pos)->frequency != CPUFREQ_TABLE_END) ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpufreq.h:535:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if ((*pos)->frequency != CPUFREQ_ENTRY_INVALID) ^ In file included from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/rh_kabi.h:22:0, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/sched.h:5, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-acpi.c:15: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h:78:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz == -1 || sz >= n)) { ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/compiler.h:152:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_to_user’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h:95:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz == -1 || sz >= size)) { ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/compiler.h:152:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-acpi.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-acpi.o"; fi; fi; cc -Wp,-MD,/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/.nv-chrdev.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include -I/usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include -Iarch/x86/include/generated -I/usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include -Iinclude -I/usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/uapi -Iinclude/generated/uapi -include /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/kconfig.h -I/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/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 - std=gnu89 -O2 -m64 -mno-mmx -mno-sse -mpreferred-stack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -Wframe-larger-than=2048 -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -mindirect-branch=thunk-extern -mindirect-branch-register -DRETPOLINE -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel -Wall -MD -Wsign-compare -Wno- cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.107\" -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/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/.tmp_nv-chrdev.o /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-chrdev.c In file included from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/little_endian.h:6:0, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/uapi/asm/byteorder.h:4, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/asm-generic/bitops/le.h:5, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/bitops.h:514, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/bitops.h:37, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/kernel.h:10, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/sched.h:15, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-chrdev.c:15: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/generic.h:177:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < len; i++) ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/generic.h:185:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < len; i++) ^ In file included from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/cpumask.h:4:0, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/msr.h:10, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/processor.h:20, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/cpufeature.h:7, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/thread_info.h:22, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/thread_info.h:66, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/preempt.h:9, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/spinlock.h:50, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/seqlock.h:35, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/time.h:5, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/uapi/linux/timex.h:56, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/timex.h:56, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/sched.h:17, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-chrdev.c:15: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpumask.h: In function ‘cpumask_parse’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpumask.h:634:26: warning: signed and unsigned type in conditional expression [-Wsign-compare] int len = nl ? nl - buf : strlen(buf); ^ In file included from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/rh_kabi.h:22:0, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/sched.h:5, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-chrdev.c:15: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/asm-generic/qrwlock.h:93:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/compiler.h:152:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:91:0, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-chrdev.c:15: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpufreq.h: In function ‘cpufreq_next_valid’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpufreq.h:534:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while ((*pos)->frequency != CPUFREQ_TABLE_END) ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpufreq.h:535:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if ((*pos)->frequency != CPUFREQ_ENTRY_INVALID) ^ In file included from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/rh_kabi.h:22:0, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/sched.h:5, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-chrdev.c:15: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h:78:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz == -1 || sz >= n)) { ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/compiler.h:152:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_to_user’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h:95:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz == -1 || sz >= size)) { ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/compiler.h:152:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-chrdev.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-chrdev.o"; fi; fi; cc -Wp,-MD,/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/.nv-cray.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include -I/usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include -Iarch/x86/include/generated -I/usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include -Iinclude -I/usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/uapi -Iinclude/generated/uapi -include /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/kconfig.h -I/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel -D__KERNEL__ -Wal l -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -std=gnu89 -O2 -m64 -mno-mmx -mno-sse -mpreferred-stack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -Wframe-larger-than=2048 -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -mindirect-branch=thunk-extern -mindirect-branch-register -DRETPOLINE -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM _GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.107\" -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/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/.tmp_nv-cray.o /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-cray.c In file included from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/little_endian.h:6:0, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/uapi/asm/byteorder.h:4, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/asm-generic/bitops/le.h:5, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/bitops.h:514, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/bitops.h:37, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/kernel.h:10, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/sched.h:15, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-cray.c:15: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/generic.h:177:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < len; i++) ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/generic.h:185:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < len; i++) ^ In file included from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/cpumask.h:4:0, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/msr.h:10, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/processor.h:20, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/cpufeature.h:7, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/thread_info.h:22, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/thread_info.h:66, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/preempt.h:9, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/spinlock.h:50, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/seqlock.h:35, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/time.h:5, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/uapi/linux/timex.h:56, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/timex.h:56, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/sched.h:17, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-cray.c:15: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpumask.h: In function ‘cpumask_parse’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpumask.h:634:26: warning: signed and unsigned type in conditional expression [-Wsign-compare] int len = nl ? nl - buf : strlen(buf); ^ In file included from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/rh_kabi.h:22:0, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/sched.h:5, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-cray.c:15: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/asm-generic/qrwlock.h:93:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/compiler.h:152:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:91:0, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-cray.c:15: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpufreq.h: In function ‘cpufreq_next_valid’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpufreq.h:534:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while ((*pos)->frequency != CPUFREQ_TABLE_END) ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpufreq.h:535:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if ((*pos)->frequency != CPUFREQ_ENTRY_INVALID) ^ In file included from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/rh_kabi.h:22:0, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/sched.h:5, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-cray.c:15: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h:78:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz == -1 || sz >= n)) { ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/compiler.h:152:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_to_user’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h:95:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz == -1 || sz >= size)) { ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/compiler.h:152:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-cray.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-cray.o"; fi; fi; cc -Wp,-MD,/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/.nv-dma.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include -I/usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include -Iarch/x86/include/generated -I/usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include -Iinclude -I/usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/uapi -Iinclude/generated/uapi -include /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/kconfig.h -I/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/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 -std=gnu89 -O2 -m64 -mno-mmx -mno-sse -mpreferred-stack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -Wframe-larger-than=2048 -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -mindirect-branch=thunk-extern -mindirect-branch-register -DRETPOLINE -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -mfentry -D CC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.107\" -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/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/.tmp_nv-dma.o /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-dma.c In file included from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/little_endian.h:6:0, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/uapi/asm/byteorder.h:4, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/asm-generic/bitops/le.h:5, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/bitops.h:514, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/bitops.h:37, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/kernel.h:10, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/sched.h:15, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-dma.c:15: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/generic.h:177:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < len; i++) ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/generic.h:185:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < len; i++) ^ In file included from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/cpumask.h:4:0, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/msr.h:10, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/processor.h:20, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/cpufeature.h:7, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/thread_info.h:22, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/thread_info.h:66, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/preempt.h:9, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/spinlock.h:50, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/seqlock.h:35, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/time.h:5, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/uapi/linux/timex.h:56, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/timex.h:56, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/sched.h:17, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-dma.c:15: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpumask.h: In function ‘cpumask_parse’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpumask.h:634:26: warning: signed and unsigned type in conditional expression [-Wsign-compare] int len = nl ? nl - buf : strlen(buf); ^ In file included from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/rh_kabi.h:22:0, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/sched.h:5, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-dma.c:15: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/asm-generic/qrwlock.h:93:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/compiler.h:152:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:91:0, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-dma.c:15: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpufreq.h: In function ‘cpufreq_next_valid’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpufreq.h:534:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while ((*pos)->frequency != CPUFREQ_TABLE_END) ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpufreq.h:535:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if ((*pos)->frequency != CPUFREQ_ENTRY_INVALID) ^ In file included from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/rh_kabi.h:22:0, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/sched.h:5, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-dma.c:15: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h:78:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz == -1 || sz >= n)) { ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/compiler.h:152:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_to_user’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h:95:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz == -1 || sz >= size)) { ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/compiler.h:152:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-dma.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-dma.o"; fi; fi; cc -Wp,-MD,/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/.nv-drm.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include -I/usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include -Iarch/x86/include/generated -I/usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include -Iinclude -I/usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/a rch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/uapi -Iinclude/generated/uapi -include /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/kconfig.h -I/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/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 -std=gnu89 -O2 -m64 -mno-mmx -mno-sse -mpreferred-stack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -Wframe-larger-than=2048 -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -mindirect-branch=thunk-extern -mindirect-branch-register -DRETPOLINE -Wframe-la rger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.107\" -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/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/.tmp_nv-drm.o /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-drm.c In file included from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/little_endian.h:6:0, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/uapi/asm/byteorder.h:4, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/asm-generic/bitops/le.h:5, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/bitops.h:514, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/bitops.h:37, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/kernel.h:10, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/sched.h:15, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-drm.c:15: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/generic.h:177:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < len; i++) ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/byteorder/generic.h:185:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < len; i++) ^ In file included from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/cpumask.h:4:0, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/msr.h:10, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/processor.h:20, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/cpufeature.h:7, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/thread_info.h:22, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/thread_info.h:66, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/preempt.h:9, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/spinlock.h:50, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/seqlock.h:35, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/time.h:5, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/uapi/linux/timex.h:56, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/timex.h:56, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/sched.h:17, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-drm.c:15: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpumask.h: In function ‘cpumask_parse’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpumask.h:634:26: warning: signed and unsigned type in conditional expression [-Wsign-compare] int len = nl ? nl - buf : strlen(buf); ^ In file included from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/rh_kabi.h:22:0, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/sched.h:5, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-drm.c:15: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/asm-generic/qrwlock.h:93:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/compiler.h:152:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:91:0, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-drm.c:15: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpufreq.h: In function ‘cpufreq_next_valid’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpufreq.h:534:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while ((*pos)->frequency != CPUFREQ_TABLE_END) ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/cpufreq.h:535:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if ((*pos)->frequency != CPUFREQ_ENTRY_INVALID) ^ In file included from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/rh_kabi.h:22:0, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/sched.h:5, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-drm.c:15: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h:78:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz == -1 || sz >= n)) { ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/compiler.h:152:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_to_user’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h:95:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz == -1 || sz >= size)) { ^ /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/compiler.h:152:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/drm/drm_crtc.h:31:0, from /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/drm/drmP.h:69, from /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-drm.c:19: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/fb.h: In function ‘__fb_pad_aligned_buffer’: /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64/include/linux/fb.h:651:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (j = 0; j < s_pitch; j++) ^ /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-drm.c: In function ‘nv_alloc_os_descriptor_handle’: /tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-drm.c:255:5: error: implicit declaration of function ‘drm_gem_object_unreference_unlocked’ [-Werror=implicit-function-declaration] drm_gem_object_unreference_unlocked(&nv_obj->base); ^ cc1: some warnings being treated as errors make[3]: *** [/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel/nv-drm.o] Error 1 make[2]: *** [_module_/tmp/selfgz9667/NVIDIA-Linux-x86_64-340.107/kernel] Error 2 make[1]: *** [sub-make] Error 2 make[1]: Leaving directory /usr/src/kernels/3.10.0-1062.9.1.el7.x86_64’
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make: *** [nvidia.ko] Error 1
→ 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.

any suggestions?

You are the best! Thanks for the solution.