DKMS make.log for nvidia-340-340.108 for kernel 5.4.0-110-generic (x86_64) mar. 10 mai 2022 14:13:47 CEST NVIDIA: calling KBUILD... make[1] : on entre dans le répertoire « /usr/src/linux-headers-5.4.0-110-generic » 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) make -f ./scripts/Makefile.build obj=/var/lib/dkms/nvidia-340/340.108/build \ single-build= \ need-builtin=1 need-modorder=1 cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.108/build/nv.o /var/lib/dkms/nvidia-340/340.108/build/nv.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv.c:13: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv.c:13: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:65, from /var/lib/dkms/nvidia-340/340.108/build/nv.c:13: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv.c:13: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv.c:13: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv.c:13: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:20, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:175, from /var/lib/dkms/nvidia-340/340.108/build/nv.c:13: ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’: ./include/linux/rtc.h:238:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 238 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:243:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 243 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/nv.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv"' -DKBUILD_MODNAME='"nvidia"' /var/lib/dkms/nvidia-340/340.108/build/nv.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv.ver; /usr/bin/ld.bfd -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv.o /var/lib/dkms/nvidia-340/340.108/build/nv.o -T /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv.o /var/lib/dkms/nvidia-340/340.108/build/nv.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-acpi.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_acpi"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.108/build/nv-acpi.o /var/lib/dkms/nvidia-340/340.108/build/nv-acpi.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-acpi.c:15: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-acpi.c:15: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:65, from /var/lib/dkms/nvidia-340/340.108/build/nv-acpi.c:15: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-acpi.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-acpi.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-acpi.c:15: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:20, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:175, from /var/lib/dkms/nvidia-340/340.108/build/nv-acpi.c:15: ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’: ./include/linux/rtc.h:238:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 238 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:243:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 243 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/nv-acpi.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-acpi.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_acpi"' -DKBUILD_MODNAME='"nvidia"' /var/lib/dkms/nvidia-340/340.108/build/nv-acpi.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-acpi.ver; /usr/bin/ld.bfd -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-acpi.o /var/lib/dkms/nvidia-340/340.108/build/nv-acpi.o -T /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-acpi.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-acpi.o /var/lib/dkms/nvidia-340/340.108/build/nv-acpi.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-acpi.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-chrdev.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_chrdev"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.108/build/nv-chrdev.o /var/lib/dkms/nvidia-340/340.108/build/nv-chrdev.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-chrdev.c:15: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-chrdev.c:15: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:65, from /var/lib/dkms/nvidia-340/340.108/build/nv-chrdev.c:15: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-chrdev.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-chrdev.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-chrdev.c:15: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:20, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:175, from /var/lib/dkms/nvidia-340/340.108/build/nv-chrdev.c:15: ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’: ./include/linux/rtc.h:238:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 238 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:243:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 243 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/nv-chrdev.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-chrdev.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_chrdev"' -DKBUILD_MODNAME='"nvidia"' /var/lib/dkms/nvidia-340/340.108/build/nv-chrdev.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-chrdev.ver; /usr/bin/ld.bfd -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-chrdev.o /var/lib/dkms/nvidia-340/340.108/build/nv-chrdev.o -T /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-chrdev.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-chrdev.o /var/lib/dkms/nvidia-340/340.108/build/nv-chrdev.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-chrdev.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-cray.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_cray"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.108/build/nv-cray.o /var/lib/dkms/nvidia-340/340.108/build/nv-cray.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-cray.c:15: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-cray.c:15: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:65, from /var/lib/dkms/nvidia-340/340.108/build/nv-cray.c:15: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-cray.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-cray.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-cray.c:15: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:20, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:175, from /var/lib/dkms/nvidia-340/340.108/build/nv-cray.c:15: ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’: ./include/linux/rtc.h:238:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 238 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:243:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 243 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/nv-cray.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-cray.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_cray"' -DKBUILD_MODNAME='"nvidia"' /var/lib/dkms/nvidia-340/340.108/build/nv-cray.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-cray.ver; /usr/bin/ld.bfd -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-cray.o /var/lib/dkms/nvidia-340/340.108/build/nv-cray.o -T /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-cray.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-cray.o /var/lib/dkms/nvidia-340/340.108/build/nv-cray.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-cray.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-dma.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_dma"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.108/build/nv-dma.o /var/lib/dkms/nvidia-340/340.108/build/nv-dma.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-dma.c:15: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-dma.c:15: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:65, from /var/lib/dkms/nvidia-340/340.108/build/nv-dma.c:15: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-dma.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-dma.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-dma.c:15: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:20, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:175, from /var/lib/dkms/nvidia-340/340.108/build/nv-dma.c:15: ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’: ./include/linux/rtc.h:238:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 238 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:243:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 243 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/nv-dma.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-dma.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_dma"' -DKBUILD_MODNAME='"nvidia"' /var/lib/dkms/nvidia-340/340.108/build/nv-dma.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-dma.ver; /usr/bin/ld.bfd -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-dma.o /var/lib/dkms/nvidia-340/340.108/build/nv-dma.o -T /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-dma.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-dma.o /var/lib/dkms/nvidia-340/340.108/build/nv-dma.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-dma.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-drm.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_drm"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.108/build/nv-drm.o /var/lib/dkms/nvidia-340/340.108/build/nv-drm.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-drm.c:15: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-drm.c:15: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:65, from /var/lib/dkms/nvidia-340/340.108/build/nv-drm.c:15: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-drm.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-drm.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-drm.c:15: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:20, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:175, from /var/lib/dkms/nvidia-340/340.108/build/nv-drm.c:15: ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’: ./include/linux/rtc.h:238:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 238 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:243:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 243 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/nv-drm.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-drm.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_drm"' -DKBUILD_MODNAME='"nvidia"' /var/lib/dkms/nvidia-340/340.108/build/nv-drm.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-drm.ver; /usr/bin/ld.bfd -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-drm.o /var/lib/dkms/nvidia-340/340.108/build/nv-drm.o -T /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-drm.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-drm.o /var/lib/dkms/nvidia-340/340.108/build/nv-drm.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-drm.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-gvi.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_gvi"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.108/build/nv-gvi.o /var/lib/dkms/nvidia-340/340.108/build/nv-gvi.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-gvi.c:15: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-gvi.c:15: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:65, from /var/lib/dkms/nvidia-340/340.108/build/nv-gvi.c:15: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-gvi.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-gvi.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-gvi.c:15: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:20, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:175, from /var/lib/dkms/nvidia-340/340.108/build/nv-gvi.c:15: ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’: ./include/linux/rtc.h:238:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 238 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:243:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 243 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/nv-gvi.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-gvi.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_gvi"' -DKBUILD_MODNAME='"nvidia"' /var/lib/dkms/nvidia-340/340.108/build/nv-gvi.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-gvi.ver; /usr/bin/ld.bfd -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-gvi.o /var/lib/dkms/nvidia-340/340.108/build/nv-gvi.o -T /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-gvi.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-gvi.o /var/lib/dkms/nvidia-340/340.108/build/nv-gvi.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-gvi.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-i2c.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_i2c"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.108/build/nv-i2c.o /var/lib/dkms/nvidia-340/340.108/build/nv-i2c.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-i2c.c:15: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-i2c.c:15: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:65, from /var/lib/dkms/nvidia-340/340.108/build/nv-i2c.c:15: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-i2c.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-i2c.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-i2c.c:15: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:20, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:175, from /var/lib/dkms/nvidia-340/340.108/build/nv-i2c.c:15: ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’: ./include/linux/rtc.h:238:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 238 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:243:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 243 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/nv-i2c.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-i2c.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_i2c"' -DKBUILD_MODNAME='"nvidia"' /var/lib/dkms/nvidia-340/340.108/build/nv-i2c.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-i2c.ver; /usr/bin/ld.bfd -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-i2c.o /var/lib/dkms/nvidia-340/340.108/build/nv-i2c.o -T /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-i2c.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-i2c.o /var/lib/dkms/nvidia-340/340.108/build/nv-i2c.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-i2c.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-mempool.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_mempool"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.108/build/nv-mempool.o /var/lib/dkms/nvidia-340/340.108/build/nv-mempool.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-mempool.c:15: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-mempool.c:15: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:65, from /var/lib/dkms/nvidia-340/340.108/build/nv-mempool.c:15: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-mempool.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-mempool.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-mempool.c:15: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:20, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:175, from /var/lib/dkms/nvidia-340/340.108/build/nv-mempool.c:15: ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’: ./include/linux/rtc.h:238:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 238 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:243:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 243 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/nv-mempool.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-mempool.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_mempool"' -DKBUILD_MODNAME='"nvidia"' /var/lib/dkms/nvidia-340/340.108/build/nv-mempool.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-mempool.ver; /usr/bin/ld.bfd -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-mempool.o /var/lib/dkms/nvidia-340/340.108/build/nv-mempool.o -T /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-mempool.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-mempool.o /var/lib/dkms/nvidia-340/340.108/build/nv-mempool.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-mempool.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-mmap.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_mmap"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.108/build/nv-mmap.o /var/lib/dkms/nvidia-340/340.108/build/nv-mmap.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-mmap.c:15: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-mmap.c:15: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:65, from /var/lib/dkms/nvidia-340/340.108/build/nv-mmap.c:15: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-mmap.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-mmap.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-mmap.c:15: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:20, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:175, from /var/lib/dkms/nvidia-340/340.108/build/nv-mmap.c:15: ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’: ./include/linux/rtc.h:238:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 238 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:243:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 243 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ /var/lib/dkms/nvidia-340/340.108/build/nv-mmap.c: In function ‘nv_encode_caching’: /var/lib/dkms/nvidia-340/340.108/build/nv-mmap.c:199:16: warning: this statement may fall through [-Wimplicit-fallthrough=] 199 | if (NV_ALLOW_CACHING(memory_type)) | ^ /var/lib/dkms/nvidia-340/340.108/build/nv-mmap.c:201:9: note: here 201 | default: | ^~~~~~~ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/nv-mmap.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-mmap.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_mmap"' -DKBUILD_MODNAME='"nvidia"' /var/lib/dkms/nvidia-340/340.108/build/nv-mmap.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-mmap.ver; /usr/bin/ld.bfd -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-mmap.o /var/lib/dkms/nvidia-340/340.108/build/nv-mmap.o -T /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-mmap.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-mmap.o /var/lib/dkms/nvidia-340/340.108/build/nv-mmap.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-mmap.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-p2p.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_p2p"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.108/build/nv-p2p.o /var/lib/dkms/nvidia-340/340.108/build/nv-p2p.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-p2p.c:15: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-p2p.c:15: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:65, from /var/lib/dkms/nvidia-340/340.108/build/nv-p2p.c:15: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-p2p.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-p2p.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-p2p.c:15: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:20, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:175, from /var/lib/dkms/nvidia-340/340.108/build/nv-p2p.c:15: ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’: ./include/linux/rtc.h:238:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 238 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:243:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 243 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/nv-p2p.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-p2p.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_p2p"' -DKBUILD_MODNAME='"nvidia"' /var/lib/dkms/nvidia-340/340.108/build/nv-p2p.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-p2p.ver; /usr/bin/ld.bfd -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-p2p.o /var/lib/dkms/nvidia-340/340.108/build/nv-p2p.o -T /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-p2p.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-p2p.o /var/lib/dkms/nvidia-340/340.108/build/nv-p2p.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-p2p.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-pat.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_pat"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.108/build/nv-pat.o /var/lib/dkms/nvidia-340/340.108/build/nv-pat.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-pat.c:15: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-pat.c:15: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:65, from /var/lib/dkms/nvidia-340/340.108/build/nv-pat.c:15: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-pat.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-pat.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-pat.c:15: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:20, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:175, from /var/lib/dkms/nvidia-340/340.108/build/nv-pat.c:15: ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’: ./include/linux/rtc.h:238:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 238 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:243:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 243 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/nv-pat.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-pat.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_pat"' -DKBUILD_MODNAME='"nvidia"' /var/lib/dkms/nvidia-340/340.108/build/nv-pat.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-pat.ver; /usr/bin/ld.bfd -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-pat.o /var/lib/dkms/nvidia-340/340.108/build/nv-pat.o -T /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-pat.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-pat.o /var/lib/dkms/nvidia-340/340.108/build/nv-pat.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-pat.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-procfs.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_procfs"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.o /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:15: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:15: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:65, from /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:15: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:15: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:20, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:175, from /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:15: ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’: ./include/linux/rtc.h:238:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 238 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:243:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 243 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-procfs.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_procfs"' -DKBUILD_MODNAME='"nvidia"' /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-procfs.ver; /usr/bin/ld.bfd -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-procfs.o /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.o -T /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-procfs.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-procfs.o /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-procfs.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-usermap.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_usermap"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.108/build/nv-usermap.o /var/lib/dkms/nvidia-340/340.108/build/nv-usermap.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-usermap.c:15: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-usermap.c:15: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:65, from /var/lib/dkms/nvidia-340/340.108/build/nv-usermap.c:15: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-usermap.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-usermap.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-usermap.c:15: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:20, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:175, from /var/lib/dkms/nvidia-340/340.108/build/nv-usermap.c:15: ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’: ./include/linux/rtc.h:238:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 238 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:243:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 243 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/nv-usermap.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-usermap.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_usermap"' -DKBUILD_MODNAME='"nvidia"' /var/lib/dkms/nvidia-340/340.108/build/nv-usermap.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-usermap.ver; /usr/bin/ld.bfd -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-usermap.o /var/lib/dkms/nvidia-340/340.108/build/nv-usermap.o -T /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-usermap.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-usermap.o /var/lib/dkms/nvidia-340/340.108/build/nv-usermap.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-usermap.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-vm.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_vm"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.108/build/nv-vm.o /var/lib/dkms/nvidia-340/340.108/build/nv-vm.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-vm.c:14: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-vm.c:14: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:65, from /var/lib/dkms/nvidia-340/340.108/build/nv-vm.c:14: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-vm.c:14: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-vm.c:14: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-vm.c:14: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:20, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:175, from /var/lib/dkms/nvidia-340/340.108/build/nv-vm.c:14: ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’: ./include/linux/rtc.h:238:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 238 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:243:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 243 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/nv-vm.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-vm.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_vm"' -DKBUILD_MODNAME='"nvidia"' /var/lib/dkms/nvidia-340/340.108/build/nv-vm.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-vm.ver; /usr/bin/ld.bfd -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-vm.o /var/lib/dkms/nvidia-340/340.108/build/nv-vm.o -T /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-vm.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-vm.o /var/lib/dkms/nvidia-340/340.108/build/nv-vm.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-vm.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-vtophys.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_vtophys"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.108/build/nv-vtophys.o /var/lib/dkms/nvidia-340/340.108/build/nv-vtophys.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-vtophys.c:15: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-vtophys.c:15: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:65, from /var/lib/dkms/nvidia-340/340.108/build/nv-vtophys.c:15: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-vtophys.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-vtophys.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-vtophys.c:15: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:20, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:175, from /var/lib/dkms/nvidia-340/340.108/build/nv-vtophys.c:15: ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’: ./include/linux/rtc.h:238:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 238 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:243:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 243 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/nv-vtophys.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-vtophys.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_vtophys"' -DKBUILD_MODNAME='"nvidia"' /var/lib/dkms/nvidia-340/340.108/build/nv-vtophys.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-vtophys.ver; /usr/bin/ld.bfd -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-vtophys.o /var/lib/dkms/nvidia-340/340.108/build/nv-vtophys.o -T /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-vtophys.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-vtophys.o /var/lib/dkms/nvidia-340/340.108/build/nv-vtophys.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-vtophys.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.os-interface.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"os_interface"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.108/build/os-interface.o /var/lib/dkms/nvidia-340/340.108/build/os-interface.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-interface.c:15: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-interface.c:15: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:65, from /var/lib/dkms/nvidia-340/340.108/build/os-interface.c:15: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-interface.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-interface.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-interface.c:15: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:20, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:175, from /var/lib/dkms/nvidia-340/340.108/build/os-interface.c:15: ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’: ./include/linux/rtc.h:238:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 238 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:243:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 243 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/os-interface.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.os-interface.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"os_interface"' -DKBUILD_MODNAME='"nvidia"' /var/lib/dkms/nvidia-340/340.108/build/os-interface.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-interface.ver; /usr/bin/ld.bfd -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-interface.o /var/lib/dkms/nvidia-340/340.108/build/os-interface.o -T /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-interface.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-interface.o /var/lib/dkms/nvidia-340/340.108/build/os-interface.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-interface.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.os-mlock.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"os_mlock"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.108/build/os-mlock.o /var/lib/dkms/nvidia-340/340.108/build/os-mlock.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-mlock.c:15: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-mlock.c:15: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:65, from /var/lib/dkms/nvidia-340/340.108/build/os-mlock.c:15: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-mlock.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-mlock.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-mlock.c:15: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:20, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:175, from /var/lib/dkms/nvidia-340/340.108/build/os-mlock.c:15: ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’: ./include/linux/rtc.h:238:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 238 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:243:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 243 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/os-mlock.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.os-mlock.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"os_mlock"' -DKBUILD_MODNAME='"nvidia"' /var/lib/dkms/nvidia-340/340.108/build/os-mlock.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-mlock.ver; /usr/bin/ld.bfd -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-mlock.o /var/lib/dkms/nvidia-340/340.108/build/os-mlock.o -T /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-mlock.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-mlock.o /var/lib/dkms/nvidia-340/340.108/build/os-mlock.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-mlock.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.os-pci.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"os_pci"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.108/build/os-pci.o /var/lib/dkms/nvidia-340/340.108/build/os-pci.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-pci.c:15: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-pci.c:15: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:65, from /var/lib/dkms/nvidia-340/340.108/build/os-pci.c:15: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-pci.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-pci.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-pci.c:15: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:20, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:175, from /var/lib/dkms/nvidia-340/340.108/build/os-pci.c:15: ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’: ./include/linux/rtc.h:238:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 238 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:243:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 243 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/os-pci.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.os-pci.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"os_pci"' -DKBUILD_MODNAME='"nvidia"' /var/lib/dkms/nvidia-340/340.108/build/os-pci.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-pci.ver; /usr/bin/ld.bfd -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-pci.o /var/lib/dkms/nvidia-340/340.108/build/os-pci.o -T /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-pci.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-pci.o /var/lib/dkms/nvidia-340/340.108/build/os-pci.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-pci.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.os-registry.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"os_registry"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.108/build/os-registry.o /var/lib/dkms/nvidia-340/340.108/build/os-registry.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-registry.c:15: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-registry.c:15: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:65, from /var/lib/dkms/nvidia-340/340.108/build/os-registry.c:15: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-registry.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-registry.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-registry.c:15: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:20, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:175, from /var/lib/dkms/nvidia-340/340.108/build/os-registry.c:15: ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’: ./include/linux/rtc.h:238:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 238 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:243:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 243 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/os-registry.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.os-registry.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"os_registry"' -DKBUILD_MODNAME='"nvidia"' /var/lib/dkms/nvidia-340/340.108/build/os-registry.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-registry.ver; /usr/bin/ld.bfd -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-registry.o /var/lib/dkms/nvidia-340/340.108/build/os-registry.o -T /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-registry.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-registry.o /var/lib/dkms/nvidia-340/340.108/build/os-registry.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-registry.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.os-smp.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"os_smp"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.108/build/os-smp.o /var/lib/dkms/nvidia-340/340.108/build/os-smp.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-smp.c:15: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-smp.c:15: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:65, from /var/lib/dkms/nvidia-340/340.108/build/os-smp.c:15: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-smp.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-smp.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-smp.c:15: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:20, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:175, from /var/lib/dkms/nvidia-340/340.108/build/os-smp.c:15: ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’: ./include/linux/rtc.h:238:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 238 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:243:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 243 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/os-smp.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.os-smp.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"os_smp"' -DKBUILD_MODNAME='"nvidia"' /var/lib/dkms/nvidia-340/340.108/build/os-smp.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-smp.ver; /usr/bin/ld.bfd -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-smp.o /var/lib/dkms/nvidia-340/340.108/build/os-smp.o -T /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-smp.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-smp.o /var/lib/dkms/nvidia-340/340.108/build/os-smp.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-smp.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.os-usermap.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"os_usermap"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.108/build/os-usermap.o /var/lib/dkms/nvidia-340/340.108/build/os-usermap.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-usermap.c:15: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-usermap.c:15: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:65, from /var/lib/dkms/nvidia-340/340.108/build/os-usermap.c:15: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-usermap.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-usermap.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/os-usermap.c:15: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:20, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:175, from /var/lib/dkms/nvidia-340/340.108/build/os-usermap.c:15: ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’: ./include/linux/rtc.h:238:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 238 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:243:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 243 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/os-usermap.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.os-usermap.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"os_usermap"' -DKBUILD_MODNAME='"nvidia"' /var/lib/dkms/nvidia-340/340.108/build/os-usermap.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-usermap.ver; /usr/bin/ld.bfd -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-usermap.o /var/lib/dkms/nvidia-340/340.108/build/os-usermap.o -T /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-usermap.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-usermap.o /var/lib/dkms/nvidia-340/340.108/build/os-usermap.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_os-usermap.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv_uvm_interface.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_uvm_interface"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.108/build/nv_uvm_interface.o /var/lib/dkms/nvidia-340/340.108/build/nv_uvm_interface.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv_uvm_interface.c:21: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv_uvm_interface.c:21: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:65, from /var/lib/dkms/nvidia-340/340.108/build/nv_uvm_interface.c:21: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv_uvm_interface.c:21: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv_uvm_interface.c:21: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv_uvm_interface.c:21: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:20, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:175, from /var/lib/dkms/nvidia-340/340.108/build/nv_uvm_interface.c:21: ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’: ./include/linux/rtc.h:238:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 238 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:243:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 243 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/nv_uvm_interface.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv_uvm_interface.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_uvm_interface"' -DKBUILD_MODNAME='"nvidia"' /var/lib/dkms/nvidia-340/340.108/build/nv_uvm_interface.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv_uvm_interface.ver; /usr/bin/ld.bfd -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv_uvm_interface.o /var/lib/dkms/nvidia-340/340.108/build/nv_uvm_interface.o -T /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv_uvm_interface.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv_uvm_interface.o /var/lib/dkms/nvidia-340/340.108/build/nv_uvm_interface.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv_uvm_interface.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-frontend.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_frontend"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.108/build/nv-frontend.o /var/lib/dkms/nvidia-340/340.108/build/nv-frontend.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-frontend.c:13: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-frontend.c:13: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:65, from /var/lib/dkms/nvidia-340/340.108/build/nv-frontend.c:13: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-frontend.c:13: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-frontend.c:13: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-frontend.c:13: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:20, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:175, from /var/lib/dkms/nvidia-340/340.108/build/nv-frontend.c:13: ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’: ./include/linux/rtc.h:238:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 238 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:243:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 243 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/nv-frontend.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nv-frontend.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/lib/dkms/nvidia-340/340.108/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nv_frontend"' -DKBUILD_MODNAME='"nvidia"' /var/lib/dkms/nvidia-340/340.108/build/nv-frontend.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-frontend.ver; /usr/bin/ld.bfd -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-frontend.o /var/lib/dkms/nvidia-340/340.108/build/nv-frontend.o -T /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-frontend.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-frontend.o /var/lib/dkms/nvidia-340/340.108/build/nv-frontend.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/.tmp_nv-frontend.ver; fi /usr/bin/ld.bfd -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/nvidia.o /var/lib/dkms/nvidia-340/340.108/build/nv-kernel.o /var/lib/dkms/nvidia-340/340.108/build/nv.o /var/lib/dkms/nvidia-340/340.108/build/nv-acpi.o /var/lib/dkms/nvidia-340/340.108/build/nv-chrdev.o /var/lib/dkms/nvidia-340/340.108/build/nv-cray.o /var/lib/dkms/nvidia-340/340.108/build/nv-dma.o /var/lib/dkms/nvidia-340/340.108/build/nv-drm.o /var/lib/dkms/nvidia-340/340.108/build/nv-gvi.o /var/lib/dkms/nvidia-340/340.108/build/nv-i2c.o /var/lib/dkms/nvidia-340/340.108/build/nv-mempool.o /var/lib/dkms/nvidia-340/340.108/build/nv-mmap.o /var/lib/dkms/nvidia-340/340.108/build/nv-p2p.o /var/lib/dkms/nvidia-340/340.108/build/nv-pat.o /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.o /var/lib/dkms/nvidia-340/340.108/build/nv-usermap.o /var/lib/dkms/nvidia-340/340.108/build/nv-vm.o /var/lib/dkms/nvidia-340/340.108/build/nv-vtophys.o /var/lib/dkms/nvidia-340/340.108/build/os-interface.o /var/lib/dkms/nvidia-340/340.108/build/os-mlock.o /var/lib/dkms/nvidia-340/340.108/build/os-pci.o /var/lib/dkms/nvidia-340/340.108/build/os-registry.o /var/lib/dkms/nvidia-340/340.108/build/os-smp.o /var/lib/dkms/nvidia-340/340.108/build/os-usermap.o /var/lib/dkms/nvidia-340/340.108/build/nv_uvm_interface.o /var/lib/dkms/nvidia-340/340.108/build/nv-frontend.o { echo /var/lib/dkms/nvidia-340/340.108/build/nv-kernel.o /var/lib/dkms/nvidia-340/340.108/build/nv.o /var/lib/dkms/nvidia-340/340.108/build/nv-acpi.o /var/lib/dkms/nvidia-340/340.108/build/nv-chrdev.o /var/lib/dkms/nvidia-340/340.108/build/nv-cray.o /var/lib/dkms/nvidia-340/340.108/build/nv-dma.o /var/lib/dkms/nvidia-340/340.108/build/nv-drm.o /var/lib/dkms/nvidia-340/340.108/build/nv-gvi.o /var/lib/dkms/nvidia-340/340.108/build/nv-i2c.o /var/lib/dkms/nvidia-340/340.108/build/nv-mempool.o /var/lib/dkms/nvidia-340/340.108/build/nv-mmap.o /var/lib/dkms/nvidia-340/340.108/build/nv-p2p.o /var/lib/dkms/nvidia-340/340.108/build/nv-pat.o /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.o /var/lib/dkms/nvidia-340/340.108/build/nv-usermap.o /var/lib/dkms/nvidia-340/340.108/build/nv-vm.o /var/lib/dkms/nvidia-340/340.108/build/nv-vtophys.o /var/lib/dkms/nvidia-340/340.108/build/os-interface.o /var/lib/dkms/nvidia-340/340.108/build/os-mlock.o /var/lib/dkms/nvidia-340/340.108/build/os-pci.o /var/lib/dkms/nvidia-340/340.108/build/os-registry.o /var/lib/dkms/nvidia-340/340.108/build/os-smp.o /var/lib/dkms/nvidia-340/340.108/build/os-usermap.o /var/lib/dkms/nvidia-340/340.108/build/nv_uvm_interface.o /var/lib/dkms/nvidia-340/340.108/build/nv-frontend.o; echo; } > /var/lib/dkms/nvidia-340/340.108/build/nvidia.mod { echo /var/lib/dkms/nvidia-340/340.108/build/nvidia.ko; :; } \ | awk '!x[$0]++' - > /var/lib/dkms/nvidia-340/340.108/build/modules.order make -f ./scripts/Makefile.modpost sed 's/ko$/o/' /var/lib/dkms/nvidia-340/340.108/build/modules.order | scripts/mod/modpost -m -a -i ./Module.symvers -I /var/lib/dkms/nvidia-340/340.108/build/Module.symvers -o /var/lib/dkms/nvidia-340/340.108/build/Module.symvers -s -T - WARNING: could not find /var/lib/dkms/nvidia-340/340.108/build/.nv-kernel.o.cmd for /var/lib/dkms/nvidia-340/340.108/build/nv-kernel.o make -f ./scripts/Makefile.modfinal cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/.nvidia.mod.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DMODULE -DKBUILD_BASENAME='"nvidia.mod"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-340/340.108/build/nvidia.mod.o /var/lib/dkms/nvidia-340/340.108/build/nvidia.mod.c /usr/bin/ld.bfd -r -m elf_x86_64 -z max-page-size=0x200000 --build-id -T ./scripts/module-common.lds -o /var/lib/dkms/nvidia-340/340.108/build/nvidia.ko /var/lib/dkms/nvidia-340/340.108/build/nvidia.o /var/lib/dkms/nvidia-340/340.108/build/nvidia.mod.o; true make[1] : on quitte le répertoire « /usr/src/linux-headers-5.4.0-110-generic » NVIDIA: left KBUILD. make : on entre dans le répertoire « /var/lib/dkms/nvidia-340/340.108/build/uvm » cp ../Module.symvers Module.symvers NVIDIA UVM: CC=cc, HOST_CC=cc NV_TARGET_ARCH=x86_64 NVIDIA UVM: CONFTEST=/bin/sh ./conftest.sh cc cc x86_64 /lib/modules/5.4.0-110-generic/build /lib/modules/5.4.0-110-generic/build KERNEL_SOURCES: /lib/modules/5.4.0-110-generic/build EXTRA_CFLAGS: -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build -I./.. -I. -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING="340.108" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME="nvidia-uvm" -fno-stack-clash-protection -fcf-protection=none NVIDIA: calling KBUILD... make[1] : on entre dans le répertoire « /usr/src/linux-headers-5.4.0-110-generic » 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) make -f ./scripts/Makefile.build obj=/var/lib/dkms/nvidia-340/340.108/build/uvm \ single-build= \ need-builtin=1 need-modorder=1 cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/uvm/.nvidia_uvm_linux.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -I/var/lib/dkms/nvidia-340/340.108/build/uvm -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia-uvm\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nvidia_uvm_linux"' -DKBUILD_MODNAME='"nvidia_uvm"' -c -o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.c:24: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.c:24: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:83, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.c:24: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.c:24: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.c:24: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.c:24: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/uvm/.nvidia_uvm_linux.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -I/var/lib/dkms/nvidia-340/340.108/build/uvm -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia-uvm\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nvidia_uvm_linux"' -DKBUILD_MODNAME='"nvidia_uvm"' /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_linux.ver; ld -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_linux.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.o -T /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_linux.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_linux.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_linux.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/uvm/.nvidia_uvm_common.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -I/var/lib/dkms/nvidia-340/340.108/build/uvm -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia-uvm\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nvidia_uvm_common"' -DKBUILD_MODNAME='"nvidia_uvm"' -c -o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.c:41: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.c:41: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:83, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.c:41: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.c:41: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.c:41: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.c:41: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/uvm/.nvidia_uvm_common.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -I/var/lib/dkms/nvidia-340/340.108/build/uvm -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia-uvm\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nvidia_uvm_common"' -DKBUILD_MODNAME='"nvidia_uvm"' /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_common.ver; ld -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_common.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.o -T /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_common.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_common.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_common.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/uvm/.nvidia_uvm_utils.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -I/var/lib/dkms/nvidia-340/340.108/build/uvm -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia-uvm\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nvidia_uvm_utils"' -DKBUILD_MODNAME='"nvidia_uvm"' -c -o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_utils.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_utils.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_utils.c:25: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_utils.c:25: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:83, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_utils.c:25: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_utils.c:25: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_utils.c:25: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_utils.c:25: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_utils.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/uvm/.nvidia_uvm_utils.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -I/var/lib/dkms/nvidia-340/340.108/build/uvm -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia-uvm\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nvidia_uvm_utils"' -DKBUILD_MODNAME='"nvidia_uvm"' /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_utils.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_utils.ver; ld -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_utils.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_utils.o -T /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_utils.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_utils.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_utils.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_utils.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/uvm/.nvidia_uvm_lite.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -I/var/lib/dkms/nvidia-340/340.108/build/uvm -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia-uvm\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nvidia_uvm_lite"' -DKBUILD_MODNAME='"nvidia_uvm"' -c -o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite.c:26: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite.c:26: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:83, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite.c:26: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite.c:26: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite.c:26: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite.c:26: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/uvm/.nvidia_uvm_lite.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -I/var/lib/dkms/nvidia-340/340.108/build/uvm -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia-uvm\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nvidia_uvm_lite"' -DKBUILD_MODNAME='"nvidia_uvm"' /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_lite.ver; ld -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_lite.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite.o -T /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_lite.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_lite.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_lite.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/uvm/.nvidia_uvm_page_cache.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -I/var/lib/dkms/nvidia-340/340.108/build/uvm -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia-uvm\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nvidia_uvm_page_cache"' -DKBUILD_MODNAME='"nvidia_uvm"' -c -o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_page_cache.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_page_cache.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_page_cache.c:25: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_page_cache.c:25: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:83, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_page_cache.c:25: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_page_cache.c:25: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_page_cache.c:25: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_page_cache.c:25: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_page_cache.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/uvm/.nvidia_uvm_page_cache.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -I/var/lib/dkms/nvidia-340/340.108/build/uvm -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia-uvm\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nvidia_uvm_page_cache"' -DKBUILD_MODNAME='"nvidia_uvm"' /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_page_cache.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_page_cache.ver; ld -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_page_cache.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_page_cache.o -T /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_page_cache.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_page_cache.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_page_cache.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_page_cache.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/uvm/.nvidia_uvm_lite_api.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -I/var/lib/dkms/nvidia-340/340.108/build/uvm -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia-uvm\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nvidia_uvm_lite_api"' -DKBUILD_MODNAME='"nvidia_uvm"' -c -o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_api.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_api.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_api.c:25: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_api.c:25: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:83, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_api.c:25: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_api.c:25: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_api.c:25: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_api.c:25: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_api.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/uvm/.nvidia_uvm_lite_api.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -I/var/lib/dkms/nvidia-340/340.108/build/uvm -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia-uvm\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nvidia_uvm_lite_api"' -DKBUILD_MODNAME='"nvidia_uvm"' /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_api.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_lite_api.ver; ld -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_lite_api.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_api.o -T /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_lite_api.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_lite_api.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_api.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_lite_api.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/uvm/.nvidia_uvm_lite_counters.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -I/var/lib/dkms/nvidia-340/340.108/build/uvm -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia-uvm\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nvidia_uvm_lite_counters"' -DKBUILD_MODNAME='"nvidia_uvm"' -c -o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_counters.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_counters.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_counters.c:28: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_counters.c:28: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:83, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_counters.c:28: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_counters.c:28: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_counters.c:28: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_counters.c:28: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_counters.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/uvm/.nvidia_uvm_lite_counters.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -I/var/lib/dkms/nvidia-340/340.108/build/uvm -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia-uvm\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nvidia_uvm_lite_counters"' -DKBUILD_MODNAME='"nvidia_uvm"' /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_counters.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_lite_counters.ver; ld -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_lite_counters.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_counters.o -T /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_lite_counters.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_lite_counters.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_counters.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_lite_counters.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/uvm/.nvidia_page_migration.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -I/var/lib/dkms/nvidia-340/340.108/build/uvm -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia-uvm\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nvidia_page_migration"' -DKBUILD_MODNAME='"nvidia_uvm"' -c -o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_page_migration.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_page_migration.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_page_migration.c:28: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_page_migration.c:28: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:83, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_page_migration.c:28: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_page_migration.c:28: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_page_migration.c:28: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_page_migration.c:28: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_page_migration.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/uvm/.nvidia_page_migration.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -I/var/lib/dkms/nvidia-340/340.108/build/uvm -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia-uvm\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nvidia_page_migration"' -DKBUILD_MODNAME='"nvidia_uvm"' /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_page_migration.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_page_migration.ver; ld -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_page_migration.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_page_migration.o -T /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_page_migration.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_page_migration.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_page_migration.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_page_migration.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/uvm/.nvidia_page_migration_kepler.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -I/var/lib/dkms/nvidia-340/340.108/build/uvm -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia-uvm\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nvidia_page_migration_kepler"' -DKBUILD_MODNAME='"nvidia_uvm"' -c -o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_page_migration_kepler.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_page_migration_kepler.c if objdump -h /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_page_migration_kepler.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/uvm/.nvidia_page_migration_kepler.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -I/var/lib/dkms/nvidia-340/340.108/build/uvm -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia-uvm\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nvidia_page_migration_kepler"' -DKBUILD_MODNAME='"nvidia_uvm"' /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_page_migration_kepler.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_page_migration_kepler.ver; ld -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_page_migration_kepler.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_page_migration_kepler.o -T /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_page_migration_kepler.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_page_migration_kepler.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_page_migration_kepler.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_page_migration_kepler.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/uvm/.nvidia_uvm_lite_events.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -I/var/lib/dkms/nvidia-340/340.108/build/uvm -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia-uvm\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nvidia_uvm_lite_events"' -DKBUILD_MODNAME='"nvidia_uvm"' -c -o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_events.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_events.c In file included from ./include/linux/byteorder/little_endian.h:11, from ./arch/x86/include/uapi/asm/byteorder.h:5, from ./include/asm-generic/bitops/le.h:6, from ./arch/x86/include/asm/bitops.h:393, from ./include/linux/bitops.h:26, from ./include/linux/kernel.h:12, from ./arch/x86/include/asm/percpu.h:45, from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_events.c:25: ./include/linux/byteorder/generic.h: In function ‘cpu_to_be32_array’: ./include/linux/byteorder/generic.h:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 195 | for (i = 0; i < len; i++) | ^ ./include/linux/byteorder/generic.h: In function ‘be32_to_cpu_array’: ./include/linux/byteorder/generic.h:203:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 203 | for (i = 0; i < len; i++) | ^ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_events.c:25: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:154:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 154 | if (unlikely(sz >= 0 && sz < bytes)) { | ^ ./include/linux/compiler.h:78:42: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:6, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:13, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:83, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_events.c:25: ./include/linux/page-flags.h: In function ‘PagePoisoned’: ./include/linux/page-flags.h:194:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 194 | return page->flags == PAGE_POISON_PATTERN; | ^~ In file included from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_events.c:25: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:1058:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1058 | if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) | ^~ ./include/linux/compiler.h:77:40: note: in definition of macro ‘likely’ 77 | # define likely(x) __builtin_expect(!!(x), 1) | ^ In file included from ./arch/x86/include/asm/current.h:6, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_events.c:25: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:192:3: note: in expansion of macro ‘this_cpu_add’ 192 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:291:3: note: in expansion of macro ‘this_cpu_sub’ 291 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ 401 | #define raw_cpu_add_1(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘raw_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ 402 | #define raw_cpu_add_2(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘raw_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:403:34: note: in expansion of macro ‘percpu_add_op’ 403 | #define raw_cpu_add_4(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘raw_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:483:35: note: in expansion of macro ‘percpu_add_op’ 483 | #define raw_cpu_add_8(pcp, val) percpu_add_op(, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘raw_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:422:32: note: in expansion of macro ‘__pcpu_size_call’ 422 | #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:458:2: note: in expansion of macro ‘raw_cpu_add’ 458 | raw_cpu_add(pcp, val); \ | ^~~~~~~~~~~ ./include/linux/percpu-defs.h:496:34: note: in expansion of macro ‘__this_cpu_add’ 496 | #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:498:30: note: in expansion of macro ‘__this_cpu_sub’ 498 | #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:91:3: note: in expansion of macro ‘__this_cpu_dec’ 91 | __this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.h:62, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.h:49, from /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_events.c:25: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:156:2: note: in expansion of macro ‘for_each_online_cpu’ 156 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:259:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 259 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:807:36: note: in expansion of macro ‘for_each_cpu’ 807 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:221:2: note: in expansion of macro ‘for_each_online_cpu’ 221 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ if objdump -h /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_events.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/uvm/.nvidia_uvm_lite_events.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -I/var/lib/dkms/nvidia-340/340.108/build/uvm -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia-uvm\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"nvidia_uvm_lite_events"' -DKBUILD_MODNAME='"nvidia_uvm"' /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_events.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_lite_events.ver; ld -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_lite_events.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_events.o -T /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_lite_events.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_lite_events.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_events.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_nvidia_uvm_lite_events.ver; fi cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/uvm/.uvm_gpu_ops_tests.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -I/var/lib/dkms/nvidia-340/340.108/build/uvm -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia-uvm\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"uvm_gpu_ops_tests"' -DKBUILD_MODNAME='"nvidia_uvm"' -c -o /var/lib/dkms/nvidia-340/340.108/build/uvm/uvm_gpu_ops_tests.o /var/lib/dkms/nvidia-340/340.108/build/uvm/uvm_gpu_ops_tests.c if objdump -h /var/lib/dkms/nvidia-340/340.108/build/uvm/uvm_gpu_ops_tests.o | grep -q __ksymtab; then cc -E -D__GENKSYMS__ -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/uvm/.uvm_gpu_ops_tests.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -O2 -DNVIDIA_UVM_LITE_ENABLED -DLinux -D__linux__ -DNVIDIA_UVM_RM_ENABLED -I/var/lib/dkms/nvidia-340/340.108/build/uvm -I/var/lib/dkms/nvidia-340/340.108/build/uvm/.. -I/var/lib/dkms/nvidia-340/340.108/build/uvm -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia-uvm\" -fno-stack-clash-protection -fcf-protection=none -DMODULE -DKBUILD_BASENAME='"uvm_gpu_ops_tests"' -DKBUILD_MODNAME='"nvidia_uvm"' /var/lib/dkms/nvidia-340/340.108/build/uvm/uvm_gpu_ops_tests.c | scripts/genksyms/genksyms -r /dev/null > /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_uvm_gpu_ops_tests.ver; ld -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_uvm_gpu_ops_tests.o /var/lib/dkms/nvidia-340/340.108/build/uvm/uvm_gpu_ops_tests.o -T /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_uvm_gpu_ops_tests.ver; mv -f /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_uvm_gpu_ops_tests.o /var/lib/dkms/nvidia-340/340.108/build/uvm/uvm_gpu_ops_tests.o; rm -f /var/lib/dkms/nvidia-340/340.108/build/uvm/.tmp_uvm_gpu_ops_tests.ver; fi ld -m elf_x86_64 -z max-page-size=0x200000 -r -o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia-uvm.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_utils.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_page_cache.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_api.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_counters.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_page_migration.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_page_migration_kepler.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_events.o /var/lib/dkms/nvidia-340/340.108/build/uvm/uvm_gpu_ops_tests.o { echo /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_linux.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_common.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_utils.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_page_cache.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_api.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_counters.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_page_migration.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_page_migration_kepler.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia_uvm_lite_events.o /var/lib/dkms/nvidia-340/340.108/build/uvm/uvm_gpu_ops_tests.o; echo; } > /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia-uvm.mod { echo /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia-uvm.ko; :; } \ | awk '!x[$0]++' - > /var/lib/dkms/nvidia-340/340.108/build/uvm/modules.order make -f ./scripts/Makefile.modpost sed 's/ko$/o/' /var/lib/dkms/nvidia-340/340.108/build/uvm/modules.order | scripts/mod/modpost -m -a -i ./Module.symvers -I /var/lib/dkms/nvidia-340/340.108/build/uvm/Module.symvers -e /var/lib/dkms/nvidia-340/340.108/build/uvm/Module.symvers -o /var/lib/dkms/nvidia-340/340.108/build/uvm/Module.symvers -s -T - make -f ./scripts/Makefile.modfinal cc -Wp,-MD,/var/lib/dkms/nvidia-340/340.108/build/uvm/.nvidia-uvm.mod.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/9/include -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Iubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -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 -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -DMODULE -DKBUILD_BASENAME='"nvidia_uvm.mod"' -DKBUILD_MODNAME='"nvidia_uvm"' -c -o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia-uvm.mod.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia-uvm.mod.c ld -r -m elf_x86_64 -z max-page-size=0x200000 --build-id -T ./scripts/module-common.lds -o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia-uvm.ko /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia-uvm.o /var/lib/dkms/nvidia-340/340.108/build/uvm/nvidia-uvm.mod.o; true make[1] : on quitte le répertoire « /usr/src/linux-headers-5.4.0-110-generic » NVIDIA: left KBUILD. make : on quitte le répertoire « /var/lib/dkms/nvidia-340/340.108/build/uvm »