DKMS make.log for nvidia-340-340.102 for kernel 4.11.0-14-generic (x86_64) Do 14. Sep 14:04:03 CEST 2017 NVIDIA: calling KBUILD... make[1]: Verzeichnis „/usr/src/linux-headers-4.11.0-14-generic“ wird betreten 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 /var/lib/dkms/nvidia-340/340.102/build/.tmp_versions ; rm -f /var/lib/dkms/nvidia-340/340.102/build/.tmp_versions/* make -f ./scripts/Makefile.build obj=/var/lib/dkms/nvidia-340/340.102/build cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.102/build/.nv.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.102/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -DKBUILD_BASENAME='"nv"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.102/build/nv.o /var/lib/dkms/nvidia-340/340.102/build/nv.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv.c:13: ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv.c:13: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:966:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv.c:13: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv.c:13: ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’: ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’: ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-340/340.102/build/nv.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-340/340.102/build/nv.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.102/build/.nv-acpi.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.102/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -DKBUILD_BASENAME='"nv_acpi"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.102/build/nv-acpi.o /var/lib/dkms/nvidia-340/340.102/build/nv-acpi.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-acpi.c:15: ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-acpi.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:966:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-acpi.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-acpi.c:15: ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’: ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’: ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-340/340.102/build/nv-acpi.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-340/340.102/build/nv-acpi.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.102/build/.nv-chrdev.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.102/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -DKBUILD_BASENAME='"nv_chrdev"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.102/build/nv-chrdev.o /var/lib/dkms/nvidia-340/340.102/build/nv-chrdev.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-chrdev.c:15: ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-chrdev.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:966:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-chrdev.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-chrdev.c:15: ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’: ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’: ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-340/340.102/build/nv-chrdev.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-340/340.102/build/nv-chrdev.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.102/build/.nv-cray.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.102/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -DKBUILD_BASENAME='"nv_cray"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.102/build/nv-cray.o /var/lib/dkms/nvidia-340/340.102/build/nv-cray.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-cray.c:15: ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-cray.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:966:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-cray.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-cray.c:15: ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’: ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’: ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-340/340.102/build/nv-cray.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-340/340.102/build/nv-cray.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.102/build/.nv-dma.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.102/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -DKBUILD_BASENAME='"nv_dma"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.102/build/nv-dma.o /var/lib/dkms/nvidia-340/340.102/build/nv-dma.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-dma.c:15: ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-dma.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:966:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-dma.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-dma.c:15: ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’: ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’: ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-340/340.102/build/nv-dma.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-340/340.102/build/nv-dma.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.102/build/.nv-drm.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.102/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -DKBUILD_BASENAME='"nv_drm"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.102/build/nv-drm.o /var/lib/dkms/nvidia-340/340.102/build/nv-drm.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-drm.c:15: ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-drm.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:966:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-drm.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-drm.c:15: ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’: ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’: ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ /var/lib/dkms/nvidia-340/340.102/build/nv-drm.c: At top level: /var/lib/dkms/nvidia-340/340.102/build/nv-drm.c:124:15: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .unload = nv_drm_unload, ^ /var/lib/dkms/nvidia-340/340.102/build/nv-drm.c:124:15: note: (near initialization for ‘nv_drm_driver.unload’) cc1: some warnings being treated as errors scripts/Makefile.build:294: die Regel für Ziel „/var/lib/dkms/nvidia-340/340.102/build/nv-drm.o“ scheiterte make[2]: *** [/var/lib/dkms/nvidia-340/340.102/build/nv-drm.o] Fehler 1 cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.102/build/.nv-gvi.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.102/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -DKBUILD_BASENAME='"nv_gvi"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.102/build/nv-gvi.o /var/lib/dkms/nvidia-340/340.102/build/nv-gvi.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-gvi.c:15: ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-gvi.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:966:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-gvi.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-gvi.c:15: ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’: ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’: ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-340/340.102/build/nv-gvi.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-340/340.102/build/nv-gvi.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.102/build/.nv-i2c.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.102/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -DKBUILD_BASENAME='"nv_i2c"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.102/build/nv-i2c.o /var/lib/dkms/nvidia-340/340.102/build/nv-i2c.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-i2c.c:15: ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-i2c.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:966:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-i2c.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-i2c.c:15: ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’: ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’: ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-340/340.102/build/nv-i2c.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-340/340.102/build/nv-i2c.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.102/build/.nv-mempool.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.102/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -DKBUILD_BASENAME='"nv_mempool"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.102/build/nv-mempool.o /var/lib/dkms/nvidia-340/340.102/build/nv-mempool.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-mempool.c:15: ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-mempool.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:966:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-mempool.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-mempool.c:15: ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’: ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’: ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-340/340.102/build/nv-mempool.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-340/340.102/build/nv-mempool.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.102/build/.nv-mmap.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.102/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -DKBUILD_BASENAME='"nv_mmap"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.102/build/nv-mmap.o /var/lib/dkms/nvidia-340/340.102/build/nv-mmap.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-mmap.c:15: ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-mmap.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:966:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-mmap.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-mmap.c:15: ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’: ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’: ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-340/340.102/build/nv-mmap.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-340/340.102/build/nv-mmap.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.102/build/.nv-p2p.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.102/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -DKBUILD_BASENAME='"nv_p2p"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.102/build/nv-p2p.o /var/lib/dkms/nvidia-340/340.102/build/nv-p2p.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-p2p.c:15: ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-p2p.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:966:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-p2p.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-p2p.c:15: ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’: ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’: ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-340/340.102/build/nv-p2p.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-340/340.102/build/nv-p2p.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.102/build/.nv-pat.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.102/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -DKBUILD_BASENAME='"nv_pat"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.102/build/nv-pat.o /var/lib/dkms/nvidia-340/340.102/build/nv-pat.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-pat.c:15: ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-pat.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:966:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-pat.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-pat.c:15: ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’: ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’: ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-340/340.102/build/nv-pat.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-340/340.102/build/nv-pat.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.102/build/.nv-procfs.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.102/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -DKBUILD_BASENAME='"nv_procfs"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.102/build/nv-procfs.o /var/lib/dkms/nvidia-340/340.102/build/nv-procfs.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-procfs.c:15: ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-procfs.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:966:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-procfs.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-procfs.c:15: ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’: ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’: ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-340/340.102/build/nv-procfs.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-340/340.102/build/nv-procfs.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.102/build/.nv-usermap.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.102/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -DKBUILD_BASENAME='"nv_usermap"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.102/build/nv-usermap.o /var/lib/dkms/nvidia-340/340.102/build/nv-usermap.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-usermap.c:15: ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-usermap.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:966:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-usermap.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-usermap.c:15: ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’: ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’: ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-340/340.102/build/nv-usermap.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-340/340.102/build/nv-usermap.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.102/build/.nv-vm.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.102/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -DKBUILD_BASENAME='"nv_vm"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.102/build/nv-vm.o /var/lib/dkms/nvidia-340/340.102/build/nv-vm.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-vm.c:14: ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-vm.c:14: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:966:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-vm.c:14: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-vm.c:14: ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’: ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’: ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-340/340.102/build/nv-vm.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-340/340.102/build/nv-vm.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.102/build/.nv-vtophys.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.102/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -DKBUILD_BASENAME='"nv_vtophys"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.102/build/nv-vtophys.o /var/lib/dkms/nvidia-340/340.102/build/nv-vtophys.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-vtophys.c:15: ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-vtophys.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:966:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-vtophys.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-vtophys.c:15: ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’: ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’: ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-340/340.102/build/nv-vtophys.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-340/340.102/build/nv-vtophys.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.102/build/.os-interface.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.102/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -DKBUILD_BASENAME='"os_interface"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.102/build/os-interface.o /var/lib/dkms/nvidia-340/340.102/build/os-interface.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/os-interface.c:15: ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/os-interface.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:966:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/os-interface.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/os-interface.c:15: ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’: ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’: ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-340/340.102/build/os-interface.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-340/340.102/build/os-interface.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.102/build/.os-mlock.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.102/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -DKBUILD_BASENAME='"os_mlock"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.102/build/os-mlock.o /var/lib/dkms/nvidia-340/340.102/build/os-mlock.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/os-mlock.c:15: ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/os-mlock.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:966:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/os-mlock.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/os-mlock.c:15: ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’: ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’: ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-340/340.102/build/os-mlock.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-340/340.102/build/os-mlock.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.102/build/.os-pci.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.102/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -DKBUILD_BASENAME='"os_pci"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.102/build/os-pci.o /var/lib/dkms/nvidia-340/340.102/build/os-pci.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/os-pci.c:15: ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/os-pci.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:966:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/os-pci.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/os-pci.c:15: ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’: ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’: ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-340/340.102/build/os-pci.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-340/340.102/build/os-pci.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.102/build/.os-registry.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.102/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -DKBUILD_BASENAME='"os_registry"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.102/build/os-registry.o /var/lib/dkms/nvidia-340/340.102/build/os-registry.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/os-registry.c:15: ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/os-registry.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:966:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/os-registry.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/os-registry.c:15: ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’: ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’: ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-340/340.102/build/os-registry.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-340/340.102/build/os-registry.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.102/build/.os-smp.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.102/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -DKBUILD_BASENAME='"os_smp"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.102/build/os-smp.o /var/lib/dkms/nvidia-340/340.102/build/os-smp.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/os-smp.c:15: ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/os-smp.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:966:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/os-smp.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/os-smp.c:15: ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’: ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’: ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-340/340.102/build/os-smp.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-340/340.102/build/os-smp.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.102/build/.os-usermap.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.102/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -DKBUILD_BASENAME='"os_usermap"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.102/build/os-usermap.o /var/lib/dkms/nvidia-340/340.102/build/os-usermap.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/os-usermap.c:15: ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/os-usermap.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:966:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/os-usermap.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/os-usermap.c:15: ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’: ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’: ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-340/340.102/build/os-usermap.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-340/340.102/build/os-usermap.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.102/build/.nv_uvm_interface.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.102/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -DKBUILD_BASENAME='"nv_uvm_interface"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.102/build/nv_uvm_interface.o /var/lib/dkms/nvidia-340/340.102/build/nv_uvm_interface.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv_uvm_interface.c:21: ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv_uvm_interface.c:21: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:966:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv_uvm_interface.c:21: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv_uvm_interface.c:21: ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’: ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’: ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-340/340.102/build/nv_uvm_interface.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-340/340.102/build/nv_uvm_interface.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.102/build/.nv-frontend.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.102/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -DKBUILD_BASENAME='"nv_frontend"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.102/build/nv-frontend.o /var/lib/dkms/nvidia-340/340.102/build/nv-frontend.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-frontend.c:13: ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-frontend.c:13: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:966:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-frontend.c:13: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-340/340.102/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.102/build/nv-frontend.c:13: ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’: ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’: ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(sz < 0 || sz >= n)) { ^ ./include/linux/compiler.h:178:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-340/340.102/build/nv-frontend.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-340/340.102/build/nv-frontend.o"; fi; fi; (cat /dev/null; echo kernel//var/lib/dkms/nvidia-340/340.102/build/nvidia.ko;) > /var/lib/dkms/nvidia-340/340.102/build/modules.order make[2]: Das Ziel „__build“ wurde wegen Fehlern nicht aktualisiert. Makefile:1526: die Regel für Ziel „_module_/var/lib/dkms/nvidia-340/340.102/build“ scheiterte make[1]: *** [_module_/var/lib/dkms/nvidia-340/340.102/build] Fehler 2 make[1]: Das Ziel „modules“ wurde wegen Fehlern nicht aktualisiert. make[1]: Verzeichnis „/usr/src/linux-headers-4.11.0-14-generic“ wird verlassen NVIDIA: left KBUILD. nvidia.ko failed to build! Makefile:185: die Regel für Ziel „nvidia.ko“ scheiterte make: *** [nvidia.ko] Fehler 1 make: Das Ziel „module“ wurde wegen Fehlern nicht aktualisiert. make: Verzeichnis „/var/lib/dkms/nvidia-340/340.102/build/uvm“ wird betreten cd ./..; make module SYSSRC=/lib/modules/4.11.0-14-generic/build SYSOUT=/lib/modules/4.11.0-14-generic/build KBUILD_EXTMOD=./.. make[1]: Verzeichnis „/var/lib/dkms/nvidia-340/340.102/build“ wird betreten NVIDIA: calling KBUILD... make[2]: Verzeichnis „/usr/src/linux-headers-4.11.0-14-generic“ wird betreten 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_versions ; rm -f ./../.tmp_versions/* make -f ./scripts/Makefile.build obj=./.. scripts/Makefile.build:44: ../Makefile: Datei oder Verzeichnis nicht gefunden make[3]: *** Keine Regel, um „../Makefile“ zu erstellen. Schluss. Makefile:1526: die Regel für Ziel „_module_./..“ scheiterte make[2]: *** [_module_./..] Fehler 2 make[2]: Verzeichnis „/usr/src/linux-headers-4.11.0-14-generic“ wird verlassen NVIDIA: left KBUILD. nvidia.ko failed to build! Makefile:185: die Regel für Ziel „nvidia.ko“ scheiterte make[1]: *** [nvidia.ko] Fehler 1 make[1]: Verzeichnis „/var/lib/dkms/nvidia-340/340.102/build“ wird verlassen Makefile:219: die Regel für Ziel „../Module.symvers“ scheiterte make: *** [../Module.symvers] Fehler 2 make: Verzeichnis „/var/lib/dkms/nvidia-340/340.102/build/uvm“ wird verlassen