Centos 7.7 Install NVIDIA-Linux-x86_64-340.107 Fails -Solved

Hello

I updated from Centos 7.6 to 7.7. I do manual installs of the NVidia driver (NVIDIA-Linux-x86_64-340.107.run) and rebuild the kernel. The driver used is NVIDIA-Linux-x86_64-340.107.run

This failed.

My graphics card is:
01:00.0 VGA compatible controller: NVIDIA Corporation G98 [Quadro NVS 295] (rev a1)

Suggestions!

Thanks

rjb

Below is the installer log.

$ cat nvidia-installer.log
nvidia-installer log file ‘/var/log/nvidia-installer.log’
creation time: Fri Sep 27 09:09:05 2019
installer version: 340.107

PATH: /usr/lib64/qt-3.3/bin:/root/perl5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin

nvidia-installer command line:
./nvidia-installer

Unable to load: nvidia-installer ncurses v6 user interface

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 340.107.
-> There appears to already be a driver installed on your system (version: 340.107). 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)
-> Performing CC sanity check with CC="/usr/bin/cc".
-> Kernel source path: ‘/lib/modules/3.10.0-1062.1.1.el7.x86_64/source’
-> Kernel output path: ‘/lib/modules/3.10.0-1062.1.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; /usr/bin/make clean’…
-> Building NVIDIA kernel module:
executing: ‘cd ./kernel; /usr/bin/make module SYSSRC=/lib/modules/3.10.0-1062.1.1.el7.x86_64/source SYSOUT=/lib/modules/3.10.0-1062.1.1.el7.x86_64/build NV_BUILD_MODULE_INSTANCES=’…
NVIDIA: calling KBUILD…
make[1]: Entering directory /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64' /usr/bin/make -C /lib/modules/3.10.0-1062.1.1.el7.x86_64/build \ KBUILD_SRC=/usr/src/kernels/3.10.0-1062.1.1.el7.x86_64 \ KBUILD_EXTMOD="/tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel" -f /usr/src/kernels/3.10.0-1062.1.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/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/.tmp_versions ; rm -f /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/.tmp_versions/* /usr/bin/make -f /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/scripts/Makefile.build obj=/tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel cc -Wp,-MD,/tmp/selfgz2872/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.1.1.el7.x86_64/arch/x86/include -Iarch/x86/include/generated -I/usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include -Iinclude -I/usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/uapi -Iinclude/generated/uapi -include /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/kconfig.h -I/tmp/selfgz2872/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/selfgz2872/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/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/.tmp_nv.o /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv.c In file included from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/byteorder/little_endian.h:6:0, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/uapi/asm/byteorder.h:4, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/asm-generic/bitops/le.h:5, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/bitops.h:514, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/bitops.h:37, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/kernel.h:10, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/sched.h:15, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv.c:13: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: /usr/src/kernels/3.10.0-1062.1.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.1.1.el7.x86_64/include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: /usr/src/kernels/3.10.0-1062.1.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.1.1.el7.x86_64/arch/x86/include/asm/cpumask.h:4:0, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/msr.h:10, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/processor.h:20, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/cpufeature.h:7, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/thread_info.h:22, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/thread_info.h:66, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/preempt.h:9, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/spinlock.h:50, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/seqlock.h:35, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/time.h:5, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/uapi/linux/timex.h:56, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/timex.h:56, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/sched.h:17, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv.c:13: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/cpumask.h: In function ‘cpumask_parse’: /usr/src/kernels/3.10.0-1062.1.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.1.1.el7.x86_64/include/linux/rh_kabi.h:22:0, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/sched.h:5, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv.c:13: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: /usr/src/kernels/3.10.0-1062.1.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.1.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/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:91:0, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv.c:13: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/cpufreq.h: In function ‘cpufreq_next_valid’: /usr/src/kernels/3.10.0-1062.1.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.1.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.1.1.el7.x86_64/include/linux/rh_kabi.h:22:0, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/sched.h:5, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv.c:13: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’: /usr/src/kernels/3.10.0-1062.1.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.1.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.1.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_to_user’: /usr/src/kernels/3.10.0-1062.1.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.1.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/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv.o"; fi; fi; cc -Wp,-MD,/tmp/selfgz2872/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.1.1.el7.x86_64/arch/x86/include -Iarch/x86/include/generated -I/usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include -Iinclude -I/usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/uapi -Iinclude/generated/uapi -include /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/kconfig.h -I/tmp/selfgz2872/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-out going-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/selfgz2872/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_acpi)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/.tmp_nv-acpi.o /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-acpi.c In file included from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/byteorder/little_endian.h:6:0, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/uapi/asm/byteorder.h:4, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/asm-generic/bitops/le.h:5, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/bitops.h:514, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/bitops.h:37, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/kernel.h:10, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/sched.h:15, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-acpi.c:15: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: /usr/src/kernels/3.10.0-1062.1.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.1.1.el7.x86_64/include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: /usr/src/kernels/3.10.0-1062.1.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.1.1.el7.x86_64/arch/x86/include/asm/cpumask.h:4:0, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/msr.h:10, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/processor.h:20, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/cpufeature.h:7, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/thread_info.h:22, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/thread_info.h:66, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/preempt.h:9, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/spinlock.h:50, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/seqlock.h:35, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/time.h:5, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/uapi/linux/timex.h:56, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/timex.h:56, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/sched.h:17, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-acpi.c:15: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/cpumask.h: In function ‘cpumask_parse’: /usr/src/kernels/3.10.0-1062.1.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.1.1.el7.x86_64/include/linux/rh_kabi.h:22:0, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/sched.h:5, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-acpi.c:15: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: /usr/src/kernels/3.10.0-1062.1.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.1.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/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:91:0, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-acpi.c:15: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/cpufreq.h: In function ‘cpufreq_next_valid’: /usr/src/kernels/3.10.0-1062.1.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.1.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.1.1.el7.x86_64/include/linux/rh_kabi.h:22:0, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/sched.h:5, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-acpi.c:15: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’: /usr/src/kernels/3.10.0-1062.1.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.1.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.1.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_to_user’: /usr/src/kernels/3.10.0-1062.1.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.1.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/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-acpi.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-acpi.o"; fi; fi; cc -Wp,-MD,/tmp/selfgz2872/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.1.1.el7.x86_64/arch/x86/include -Iarch/x86/include/generated -I/usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include -Iinclude -I/usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/uapi -Iinclude/generated/uapi -include /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/kconfig.h -I/tmp/selfgz2872/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/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel -Wall -MD -Wsign-compa re -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/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/.tmp_nv-chrdev.o /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-chrdev.c In file included from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/byteorder/little_endian.h:6:0, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/uapi/asm/byteorder.h:4, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/asm-generic/bitops/le.h:5, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/bitops.h:514, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/bitops.h:37, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/kernel.h:10, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/sched.h:15, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-chrdev.c:15: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: /usr/src/kernels/3.10.0-1062.1.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.1.1.el7.x86_64/include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: /usr/src/kernels/3.10.0-1062.1.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.1.1.el7.x86_64/arch/x86/include/asm/cpumask.h:4:0, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/msr.h:10, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/processor.h:20, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/cpufeature.h:7, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/thread_info.h:22, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/thread_info.h:66, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/preempt.h:9, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/spinlock.h:50, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/seqlock.h:35, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/time.h:5, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/uapi/linux/timex.h:56, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/timex.h:56, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/sched.h:17, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-chrdev.c:15: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/cpumask.h: In function ‘cpumask_parse’: /usr/src/kernels/3.10.0-1062.1.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.1.1.el7.x86_64/include/linux/rh_kabi.h:22:0, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/sched.h:5, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-chrdev.c:15: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: /usr/src/kernels/3.10.0-1062.1.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.1.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/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:91:0, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-chrdev.c:15: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/cpufreq.h: In function ‘cpufreq_next_valid’: /usr/src/kernels/3.10.0-1062.1.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.1.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.1.1.el7.x86_64/include/linux/rh_kabi.h:22:0, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/sched.h:5, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-chrdev.c:15: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’: /usr/src/kernels/3.10.0-1062.1.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.1.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.1.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_to_user’: /usr/src/kernels/3.10.0-1062.1.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.1.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/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-chrdev.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-chrdev.o"; fi; fi; cc -Wp,-MD,/tmp/selfgz2872/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.1.1.el7.x86_64/arch/x86/include -Iarch/x86/include/generated -I/usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include -Iinclude -I/usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/uapi -Iinclude/generated/uapi -include /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/kconfig.h -I/tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel -D__KERNE L__ -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/selfgz2872/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/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/.tmp_nv-cray.o /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-cray.c In file included from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/byteorder/little_endian.h:6:0, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/uapi/asm/byteorder.h:4, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/asm-generic/bitops/le.h:5, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/bitops.h:514, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/bitops.h:37, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/kernel.h:10, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/sched.h:15, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-cray.c:15: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: /usr/src/kernels/3.10.0-1062.1.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.1.1.el7.x86_64/include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: /usr/src/kernels/3.10.0-1062.1.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.1.1.el7.x86_64/arch/x86/include/asm/cpumask.h:4:0, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/msr.h:10, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/processor.h:20, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/cpufeature.h:7, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/thread_info.h:22, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/thread_info.h:66, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/preempt.h:9, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/spinlock.h:50, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/seqlock.h:35, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/time.h:5, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/uapi/linux/timex.h:56, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/timex.h:56, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/sched.h:17, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-cray.c:15: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/cpumask.h: In function ‘cpumask_parse’: /usr/src/kernels/3.10.0-1062.1.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.1.1.el7.x86_64/include/linux/rh_kabi.h:22:0, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/sched.h:5, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-cray.c:15: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: /usr/src/kernels/3.10.0-1062.1.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.1.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/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:91:0, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-cray.c:15: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/cpufreq.h: In function ‘cpufreq_next_valid’: /usr/src/kernels/3.10.0-1062.1.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.1.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.1.1.el7.x86_64/include/linux/rh_kabi.h:22:0, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/sched.h:5, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-cray.c:15: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’: /usr/src/kernels/3.10.0-1062.1.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.1.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.1.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_to_user’: /usr/src/kernels/3.10.0-1062.1.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.1.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/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-cray.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-cray.o"; fi; fi; cc -Wp,-MD,/tmp/selfgz2872/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.1.1.el7.x86_64/arch/x86/include -Iarch/x86/include/generated -I/usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include -Iinclude -I/usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/uapi -Iinclude/generat ed/uapi -include /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/kconfig.h -I/tmp/selfgz2872/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 -mf entry -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/selfgz2872/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/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/.tmp_nv-dma.o /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-dma.c In file included from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/byteorder/little_endian.h:6:0, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/uapi/asm/byteorder.h:4, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/asm-generic/bitops/le.h:5, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/bitops.h:514, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/bitops.h:37, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/kernel.h:10, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/sched.h:15, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-dma.c:15: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: /usr/src/kernels/3.10.0-1062.1.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.1.1.el7.x86_64/include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: /usr/src/kernels/3.10.0-1062.1.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.1.1.el7.x86_64/arch/x86/include/asm/cpumask.h:4:0, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/msr.h:10, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/processor.h:20, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/cpufeature.h:7, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/thread_info.h:22, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/thread_info.h:66, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/preempt.h:9, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/spinlock.h:50, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/seqlock.h:35, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/time.h:5, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/uapi/linux/timex.h:56, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/timex.h:56, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/sched.h:17, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-dma.c:15: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/cpumask.h: In function ‘cpumask_parse’: /usr/src/kernels/3.10.0-1062.1.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.1.1.el7.x86_64/include/linux/rh_kabi.h:22:0, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/sched.h:5, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-dma.c:15: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: /usr/src/kernels/3.10.0-1062.1.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.1.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/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:91:0, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-dma.c:15: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/cpufreq.h: In function ‘cpufreq_next_valid’: /usr/src/kernels/3.10.0-1062.1.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.1.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.1.1.el7.x86_64/include/linux/rh_kabi.h:22:0, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/sched.h:5, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-dma.c:15: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’: /usr/src/kernels/3.10.0-1062.1.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.1.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.1.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_to_user’: /usr/src/kernels/3.10.0-1062.1.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.1.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/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-dma.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-dma.o"; fi; fi; cc -Wp,-MD,/tmp/selfgz2872/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.1.1.el7.x86_64/arch/x86/include -Iarch/x86/include/generated -I/usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include -Iinclude -I/usr/src/kernels/3.10.0-1062.1.1.el7. x86_64/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/uapi -Iinclude/generated/uapi -include /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/kconfig.h -I/tmp/selfgz2872/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 -W frame-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/selfgz2872/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/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/.tmp_nv-drm.o /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-drm.c In file included from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/byteorder/little_endian.h:6:0, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/uapi/asm/byteorder.h:4, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/asm-generic/bitops/le.h:5, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/bitops.h:514, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/bitops.h:37, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/kernel.h:10, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/sched.h:15, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-drm.c:15: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: /usr/src/kernels/3.10.0-1062.1.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.1.1.el7.x86_64/include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: /usr/src/kernels/3.10.0-1062.1.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.1.1.el7.x86_64/arch/x86/include/asm/cpumask.h:4:0, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/msr.h:10, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/processor.h:20, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/cpufeature.h:7, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/thread_info.h:22, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/thread_info.h:66, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/preempt.h:9, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/spinlock.h:50, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/seqlock.h:35, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/time.h:5, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/uapi/linux/timex.h:56, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/timex.h:56, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/sched.h:17, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-drm.c:15: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/cpumask.h: In function ‘cpumask_parse’: /usr/src/kernels/3.10.0-1062.1.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.1.1.el7.x86_64/include/linux/rh_kabi.h:22:0, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/sched.h:5, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-drm.c:15: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: /usr/src/kernels/3.10.0-1062.1.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.1.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/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:91:0, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-drm.c:15: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/cpufreq.h: In function ‘cpufreq_next_valid’: /usr/src/kernels/3.10.0-1062.1.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.1.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.1.1.el7.x86_64/include/linux/rh_kabi.h:22:0, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/sched.h:5, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/utsname.h:5, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-linux.h:44, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-drm.c:15: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’: /usr/src/kernels/3.10.0-1062.1.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.1.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.1.1.el7.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_to_user’: /usr/src/kernels/3.10.0-1062.1.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.1.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.1.1.el7.x86_64/include/drm/drm_crtc.h:31:0, from /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/drm/drmP.h:69, from /tmp/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-drm.c:19: /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/include/linux/fb.h: In function ‘__fb_pad_aligned_buffer’: /usr/src/kernels/3.10.0-1062.1.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/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-drm.c: In function ‘nv_alloc_os_descriptor_handle’: /tmp/selfgz2872/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/selfgz2872/NVIDIA-Linux-x86_64-340.107/kernel/nv-drm.o] Error 1 make[2]: *** [_module_/tmp/selfgz2872/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.1.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.

I should also add NVidia Chat Support directed me to post the issue in this forum.

rjb

Asked and Answered

See https://devtalk.nvidia.com/default/topic/1047179/linux/-solved-nvidia-340-107-linux-5-0-rc5-failed-to-build-kernel-module/

Download the patch and do the following. My notes:

Run nvidia install in one window

./NVIDIA-Linux-x86_64-340.107.run

Let it expand to produce a /tmp/self#### directory

In another window

cd /tmp/selfgz####/NVIDIA-Linux-x86_64-340.107

patch -p0 -l < /var/tmp/nv_patch_340.107_linux_kernel_5.0

patching file kernel/Makefile
patching file kernel/conftest.sh
patching file kernel/nv-drm.c
patching file kernel/nv-time.h
patching file kernel/os-interface.c
patching file kernel/uvm/Makefile
patching file kernel/uvm/nvidia_uvm_linux.h
patching file kernel/uvm/nvidia_uvm_lite.c
Hunk #1 succeeded at 2008 (offset -11 lines).
Hunk #2 succeeded at 2040 (offset -11 lines).

cd /

Go back to first window and continue the install

reboot

From the nvidia-installer.log
…deleted
ld -r -m elf_x86_64 -T /usr/src/kernels/3.10.0-1062.1.1.el7.x86_64/scripts/module-common.lds --build-id -o /tmp/selfgz6649/NVIDIA-Linux-x86_64-340.107/kernel/uvm/nvidia-uvm.ko /tmp/selfgz6649/NVIDIA-Linux-x86_64-340.107/kernel/uvm/nvidia-uvm.o /tmp/selfgz6649/NVIDIA-Linux-x86_64-340.107/kernel/uvm/nvidia-uvm.mod.o
make[1]: Leaving directory `/usr/src/kernels/3.10.0-1062.1.1.el7.x86_64’
NVIDIA: left KBUILD.
-> done.
-> Kernel module compilation complete.

-> Unable to determine if Secure Boot is enabled: No such file or directory
-> Kernel messages:
[ 8155.054693] usb 1-1.1: new low-speed USB device number 28 using ehci-pci
[ 8155.145915] usb 1-1.1: New USB device found, idVendor=046d, idProduct=c077, bcdDevice=72.00
[ 8155.146140] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 8155.146357] usb 1-1.1: Product: USB Optical Mouse
[ 8155.146471] usb 1-1.1: Manufacturer: Logitech
[ 8155.149271] input: Logitech USB Optical Mouse as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/input/input156
[ 8155.149940] hid-generic 0003:046D:C077.0096: input,hidraw0: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-0000:00:1a.0-1.1/input0
[ 8208.641869] usb 1-1.1: USB disconnect, device number 28
[ 8210.099152] usb 1-1.1: new low-speed USB device number 29 using ehci-pci
[ 8210.188499] usb 1-1.1: New USB device found, idVendor=046d, idProduct=c077, bcdDevice=72.00
[ 8210.188669] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 8210.188836] usb 1-1.1: Product: USB Optical Mouse
[ 8210.188921] usb 1-1.1: Manufacturer: Logitech
[ 8210.190990] input: Logitech USB Optical Mouse as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/input/input157
[ 8210.191378] hid-generic 0003:046D:C077.0097: input,hidraw0: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-0000:00:1a.0-1.1/input0
[ 8224.184164] nvidia: loading out-of-tree module taints kernel.
[ 8224.184169] nvidia: module license ‘NVIDIA’ taints kernel.
[ 8224.184170] Disabling lock debugging due to kernel taint
[ 8224.201210] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[ 8224.221122] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=io+mem
[ 8224.221320] [drm] Initialized nvidia-drm 0.0.0 20150116 for 0000:01:00.0 on minor 0
[ 8224.221333] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 340.107 Thu May 24 21:54:01 PDT 2018
[ 8224.222593] nvidia_uvm: Loaded the UVM driver, major device number 241
[ 8224.224526] nvidia_uvm: Unregistered the UVM driver
[ 8224.226506] [drm] Module unloaded
-> Installing both new and classic TLS OpenGL libraries.
-> Installing classic TLS 32bit OpenGL libraries.
-> Install NVIDIA’s 32-bit compatibility libraries? (Answer: Yes)
-> Parsing log file:
-> done.
-> Validating previous installation:
ERROR: File ‘/usr/lib64/xorg/modules/extensions/libglx.so’ is not a symbolic link.
-> done.
WARNING: Your driver installation has been altered since it was initially installed; this may happen, for example, if you have since installed the NVIDIA driver through a mechanism other than nvidia-installer (such as your distribution’s native package management system). nvidia-installer will attempt to uninstall as best it can. Please see the file ‘/var/log/nvidia-installer.log’ for details.
-> Uninstalling NVIDIA Accelerated Graphics Driver for Linux-x86_64 (1.0-340107 (340.107)):
-> done.
-> Uninstallation of existing driver: NVIDIA Accelerated Graphics Driver for Linux-x86_64 (340.107) is complete.
-> nvidia-installer will install the libvdpau and libvdpau_trace libraries that were included with this installer package. These libraries are available separately through the libvdpau project and will be removed from the NVIDIA Linux driver installer package in the future, so it is recommended that VDPAU users install libvdpau separately, e.g. by using packages available from their distributions, or by building from the sources available at:

http://people.freedesktop.org/~aplattner/vdpau
-> Searching for conflicting X files:
-> done.
-> Searching for conflicting OpenGL files:
-> done.
-> Installing ‘NVIDIA Accelerated Graphics Driver for Linux-x86_64’ (340.107):
executing: ‘/usr/sbin/ldconfig’…
executing: '/usr/sbin/depmod -aq '…
-> done.
-> Driver file installation is complete.
-> Running post-install sanity check:
-> done.
-> Post-install sanity check passed.
-> Shared memory test passed.
-> Running runtime sanity check:
-> done.
-> Runtime sanity check passed.
-> Would you like to run the nvidia-xconfig utility to automatically update your X configuration file so that the NVIDIA X driver will be used when you restart X? Any pre-existing X configuration file will be backed up. (Answer: No)
-> Installation of the NVIDIA Accelerated Graphics Driver for Linux-x86_64 (version: 340.107) is now complete. Please update your XF86Config or xorg.conf file as appropriate; see the file /usr/share/doc/NVIDIA_GLX-1.0/README.txt for detail