DKMS make.log for nvidia-340-340.108 for kernel 5.6.0-1018-oem (x86_64) саб, 27 јун 02:14:22 CEST 2020 NVIDIA: calling KBUILD... make[1]: Entering directory '/usr/src/linux-headers-5.6.0-1018-oem' 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 -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -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 -DCONFIG_AS_ADX=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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -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=./= -fcf-protection=none -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:395, from ./include/linux/bitops.h:29, 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:141:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 141 | 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:16, 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:1055:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1055 | 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_tryget_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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:162:2: note: in expansion of macro ‘for_each_online_cpu’ 162 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:227:2: note: in expansion of macro ‘for_each_online_cpu’ 227 | 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:173, 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:244:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 244 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:249:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 249 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ 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 -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -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 -DCONFIG_AS_ADX=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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -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=./= -fcf-protection=none -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:395, from ./include/linux/bitops.h:29, 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:141:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 141 | 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:16, 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:1055:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1055 | 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_tryget_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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:162:2: note: in expansion of macro ‘for_each_online_cpu’ 162 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:227:2: note: in expansion of macro ‘for_each_online_cpu’ 227 | 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:173, 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:244:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 244 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:249:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 249 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ 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 -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -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 -DCONFIG_AS_ADX=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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -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=./= -fcf-protection=none -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:395, from ./include/linux/bitops.h:29, 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:141:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 141 | 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:16, 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:1055:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1055 | 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_tryget_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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:162:2: note: in expansion of macro ‘for_each_online_cpu’ 162 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:227:2: note: in expansion of macro ‘for_each_online_cpu’ 227 | 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:173, 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:244:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 244 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:249:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 249 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ 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 -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -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 -DCONFIG_AS_ADX=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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -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=./= -fcf-protection=none -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:395, from ./include/linux/bitops.h:29, 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:141:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 141 | 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:16, 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:1055:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1055 | 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_tryget_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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:162:2: note: in expansion of macro ‘for_each_online_cpu’ 162 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:227:2: note: in expansion of macro ‘for_each_online_cpu’ 227 | 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:173, 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:244:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 244 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:249:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 249 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ 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 -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -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 -DCONFIG_AS_ADX=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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -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=./= -fcf-protection=none -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:395, from ./include/linux/bitops.h:29, 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:141:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 141 | 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:16, 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:1055:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1055 | 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_tryget_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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:162:2: note: in expansion of macro ‘for_each_online_cpu’ 162 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:227:2: note: in expansion of macro ‘for_each_online_cpu’ 227 | 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:173, 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:244:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 244 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:249:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 249 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ 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 -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -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 -DCONFIG_AS_ADX=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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -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=./= -fcf-protection=none -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:395, from ./include/linux/bitops.h:29, 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:141:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 141 | 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:16, 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:1055:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1055 | 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_tryget_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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:162:2: note: in expansion of macro ‘for_each_online_cpu’ 162 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:227:2: note: in expansion of macro ‘for_each_online_cpu’ 227 | 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:173, 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:244:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 244 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:249:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 249 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ /var/lib/dkms/nvidia-340/340.108/build/nv-drm.c: In function ‘nv_drm_init’: /var/lib/dkms/nvidia-340/340.108/build/nv-drm.c:54:25: error: implicit declaration of function ‘drm_pci_init’; did you mean ‘drm_mm_init’? [-Werror=implicit-function-declaration] 54 | #define nv_drm_pci_init drm_pci_init | ^~~~~~~~~~~~ /var/lib/dkms/nvidia-340/340.108/build/nv-drm.c:214:11: note: in expansion of macro ‘nv_drm_pci_init’ 214 | ret = nv_drm_pci_init(&nv_drm_driver, pci_driver); | ^~~~~~~~~~~~~~~ /var/lib/dkms/nvidia-340/340.108/build/nv-drm.c: In function ‘nv_drm_exit’: /var/lib/dkms/nvidia-340/340.108/build/nv-drm.c:55:25: error: implicit declaration of function ‘drm_pci_exit’; did you mean ‘drm_dev_exit’? [-Werror=implicit-function-declaration] 55 | #define nv_drm_pci_exit drm_pci_exit | ^~~~~~~~~~~~ /var/lib/dkms/nvidia-340/340.108/build/nv-drm.c:224:5: note: in expansion of macro ‘nv_drm_pci_exit’ 224 | nv_drm_pci_exit(&nv_drm_driver, pci_driver); | ^~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:276: /var/lib/dkms/nvidia-340/340.108/build/nv-drm.o] Error 1 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 -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -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 -DCONFIG_AS_ADX=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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -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=./= -fcf-protection=none -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:395, from ./include/linux/bitops.h:29, 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:141:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 141 | 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:16, 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:1055:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1055 | 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_tryget_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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:162:2: note: in expansion of macro ‘for_each_online_cpu’ 162 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:227:2: note: in expansion of macro ‘for_each_online_cpu’ 227 | 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:173, 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:244:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 244 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:249:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 249 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ 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 -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -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 -DCONFIG_AS_ADX=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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -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=./= -fcf-protection=none -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:395, from ./include/linux/bitops.h:29, 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:141:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 141 | 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:16, 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:1055:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1055 | 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_tryget_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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:162:2: note: in expansion of macro ‘for_each_online_cpu’ 162 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:227:2: note: in expansion of macro ‘for_each_online_cpu’ 227 | 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:173, 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:244:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 244 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:249:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 249 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ 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 -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -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 -DCONFIG_AS_ADX=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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -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=./= -fcf-protection=none -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:395, from ./include/linux/bitops.h:29, 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:141:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 141 | 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:16, 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:1055:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1055 | 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_tryget_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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:162:2: note: in expansion of macro ‘for_each_online_cpu’ 162 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:227:2: note: in expansion of macro ‘for_each_online_cpu’ 227 | 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:173, 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:244:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 244 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:249:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 249 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ 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 -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -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 -DCONFIG_AS_ADX=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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -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=./= -fcf-protection=none -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:395, from ./include/linux/bitops.h:29, 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:141:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 141 | 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:16, 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:1055:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1055 | 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_tryget_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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:162:2: note: in expansion of macro ‘for_each_online_cpu’ 162 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:227:2: note: in expansion of macro ‘for_each_online_cpu’ 227 | 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:173, 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:244:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 244 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:249:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 249 | 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: | ^~~~~~~ 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 -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -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 -DCONFIG_AS_ADX=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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -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=./= -fcf-protection=none -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:395, from ./include/linux/bitops.h:29, 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:141:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 141 | 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:16, 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:1055:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1055 | 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_tryget_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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:162:2: note: in expansion of macro ‘for_each_online_cpu’ 162 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:227:2: note: in expansion of macro ‘for_each_online_cpu’ 227 | 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:173, 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:244:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 244 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:249:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 249 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ 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 -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -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 -DCONFIG_AS_ADX=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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -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=./= -fcf-protection=none -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:395, from ./include/linux/bitops.h:29, 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:141:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 141 | 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:16, 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:1055:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1055 | 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_tryget_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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:162:2: note: in expansion of macro ‘for_each_online_cpu’ 162 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:227:2: note: in expansion of macro ‘for_each_online_cpu’ 227 | 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:173, 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:244:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 244 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:249:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 249 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ 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 -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -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 -DCONFIG_AS_ADX=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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -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=./= -fcf-protection=none -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:395, from ./include/linux/bitops.h:29, 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:141:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 141 | 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:16, 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:1055:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1055 | 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_tryget_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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:162:2: note: in expansion of macro ‘for_each_online_cpu’ 162 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:227:2: note: in expansion of macro ‘for_each_online_cpu’ 227 | 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:173, 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:244:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 244 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:249:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 249 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ In file included from /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c: In function ‘nv_procfs_add_text_file’: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:1988:64: error: passing argument 4 of ‘proc_create_data’ from incompatible pointer type [-Werror=incompatible-pointer-types] 1988 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \ | ^~~~ | | | const struct file_operations * /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:1965:42: note: in definition of macro ‘NV_CREATE_PROC_ENTRY’ 1965 | proc_create_data(name, mode, parent, fops, __data) | ^~~~ /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:569:5: note: in expansion of macro ‘NV_CREATE_PROC_FILE’ 569 | NV_CREATE_PROC_FILE(filename, parent, text_file, (void *)text); | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:19, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:173, from /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:15: ./include/linux/proc_fs.h:59:31: note: expected ‘const struct proc_ops *’ but argument is of type ‘const struct file_operations *’ 59 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t, | ^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c: In function ‘nv_register_procfs’: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:1988:64: error: passing argument 4 of ‘proc_create_data’ from incompatible pointer type [-Werror=incompatible-pointer-types] 1988 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \ | ^~~~ | | | const struct file_operations * /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:1965:42: note: in definition of macro ‘NV_CREATE_PROC_ENTRY’ 1965 | proc_create_data(name, mode, parent, fops, __data) | ^~~~ /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:622:13: note: in expansion of macro ‘NV_CREATE_PROC_FILE’ 622 | entry = NV_CREATE_PROC_FILE("params", proc_nvidia, params, NULL); | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:19, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:173, from /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:15: ./include/linux/proc_fs.h:59:31: note: expected ‘const struct proc_ops *’ but argument is of type ‘const struct file_operations *’ 59 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t, | ^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:1988:64: error: passing argument 4 of ‘proc_create_data’ from incompatible pointer type [-Werror=incompatible-pointer-types] 1988 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \ | ^~~~ | | | const struct file_operations * /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:1965:42: note: in definition of macro ‘NV_CREATE_PROC_ENTRY’ 1965 | proc_create_data(name, mode, parent, fops, __data) | ^~~~ /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:626:13: note: in expansion of macro ‘NV_CREATE_PROC_FILE’ 626 | entry = NV_CREATE_PROC_FILE("registry", proc_nvidia, registry, NULL); | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:19, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:173, from /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:15: ./include/linux/proc_fs.h:59:31: note: expected ‘const struct proc_ops *’ but argument is of type ‘const struct file_operations *’ 59 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t, | ^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:1988:64: error: passing argument 4 of ‘proc_create_data’ from incompatible pointer type [-Werror=incompatible-pointer-types] 1988 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \ | ^~~~ | | | const struct file_operations * /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:1965:42: note: in definition of macro ‘NV_CREATE_PROC_ENTRY’ 1965 | proc_create_data(name, mode, parent, fops, __data) | ^~~~ /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:647:13: note: in expansion of macro ‘NV_CREATE_PROC_FILE’ 647 | entry = NV_CREATE_PROC_FILE("version", proc_nvidia, version, NULL); | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:19, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:173, from /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:15: ./include/linux/proc_fs.h:59:31: note: expected ‘const struct proc_ops *’ but argument is of type ‘const struct file_operations *’ 59 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t, | ^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c: In function ‘nv_procfs_add_gpu’: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:1988:64: error: passing argument 4 of ‘proc_create_data’ from incompatible pointer type [-Werror=incompatible-pointer-types] 1988 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \ | ^~~~ | | | const struct file_operations * /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:1965:42: note: in definition of macro ‘NV_CREATE_PROC_ENTRY’ 1965 | proc_create_data(name, mode, parent, fops, __data) | ^~~~ /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:690:13: note: in expansion of macro ‘NV_CREATE_PROC_FILE’ 690 | entry = NV_CREATE_PROC_FILE("information", proc_nvidia_gpu, gpu_info, | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:19, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:173, from /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:15: ./include/linux/proc_fs.h:59:31: note: expected ‘const struct proc_ops *’ but argument is of type ‘const struct file_operations *’ 59 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t, | ^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:1988:64: error: passing argument 4 of ‘proc_create_data’ from incompatible pointer type [-Werror=incompatible-pointer-types] 1988 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \ | ^~~~ | | | const struct file_operations * /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:1965:42: note: in definition of macro ‘NV_CREATE_PROC_ENTRY’ 1965 | proc_create_data(name, mode, parent, fops, __data) | ^~~~ /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:695:13: note: in expansion of macro ‘NV_CREATE_PROC_FILE’ 695 | entry = NV_CREATE_PROC_FILE("registry", proc_nvidia_gpu, registry, nv); | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:19, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:173, from /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:15: ./include/linux/proc_fs.h:59:31: note: expected ‘const struct proc_ops *’ but argument is of type ‘const struct file_operations *’ 59 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t, | ^~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:1988:64: error: passing argument 4 of ‘proc_create_data’ from incompatible pointer type [-Werror=incompatible-pointer-types] 1988 | __entry = NV_CREATE_PROC_ENTRY(filename, mode, parent, fops, \ | ^~~~ | | | const struct file_operations * /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:1965:42: note: in definition of macro ‘NV_CREATE_PROC_ENTRY’ 1965 | proc_create_data(name, mode, parent, fops, __data) | ^~~~ /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:701:17: note: in expansion of macro ‘NV_CREATE_PROC_FILE’ 701 | entry = NV_CREATE_PROC_FILE("unbindLock", proc_nvidia_gpu, unbind_lock, nv); | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:19, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:173, from /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.c:15: ./include/linux/proc_fs.h:59:31: note: expected ‘const struct proc_ops *’ but argument is of type ‘const struct file_operations *’ 59 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t, | ^~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:276: /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.o] Error 1 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 -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -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 -DCONFIG_AS_ADX=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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -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=./= -fcf-protection=none -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:395, from ./include/linux/bitops.h:29, 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:141:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 141 | 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:16, 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:1055:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1055 | 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_tryget_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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:162:2: note: in expansion of macro ‘for_each_online_cpu’ 162 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:227:2: note: in expansion of macro ‘for_each_online_cpu’ 227 | 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:173, 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:244:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 244 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:249:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 249 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ 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 -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -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 -DCONFIG_AS_ADX=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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -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=./= -fcf-protection=none -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:395, from ./include/linux/bitops.h:29, 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:141:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 141 | 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:16, 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:1055:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1055 | 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_tryget_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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:162:2: note: in expansion of macro ‘for_each_online_cpu’ 162 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:227:2: note: in expansion of macro ‘for_each_online_cpu’ 227 | 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:173, 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:244:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 244 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:249:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 249 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ 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 -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -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 -DCONFIG_AS_ADX=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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -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=./= -fcf-protection=none -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:395, from ./include/linux/bitops.h:29, 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:141:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 141 | 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:16, 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:1055:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1055 | 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_tryget_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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:162:2: note: in expansion of macro ‘for_each_online_cpu’ 162 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:227:2: note: in expansion of macro ‘for_each_online_cpu’ 227 | 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:173, 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:244:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 244 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:249:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 249 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ 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 -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -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 -DCONFIG_AS_ADX=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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -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=./= -fcf-protection=none -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:395, from ./include/linux/bitops.h:29, 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:141:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 141 | 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:16, 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:1055:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1055 | 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_tryget_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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:162:2: note: in expansion of macro ‘for_each_online_cpu’ 162 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:227:2: note: in expansion of macro ‘for_each_online_cpu’ 227 | 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:173, 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:244:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 244 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:249:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 249 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ In file included from /var/lib/dkms/nvidia-340/340.108/build/os-interface.c:16: /var/lib/dkms/nvidia-340/340.108/build/nv-time.h: At top level: /var/lib/dkms/nvidia-340/340.108/build/nv-time.h:31:43: warning: ‘struct timeval’ declared inside parameter list will not be visible outside of this definition or declaration 31 | static inline void nv_gettimeofday(struct timeval *tv) | ^~~~~~~ /var/lib/dkms/nvidia-340/340.108/build/nv-time.h: In function ‘nv_gettimeofday’: /var/lib/dkms/nvidia-340/340.108/build/nv-time.h:40:5: error: dereferencing pointer to incomplete type ‘struct timeval’ 40 | *tv = (struct timeval) { | ^~~ /var/lib/dkms/nvidia-340/340.108/build/nv-time.h:41:10: error: ‘struct timeval’ has no member named ‘tv_sec’ 41 | .tv_sec = now.tv_sec, | ^~~~~~ /var/lib/dkms/nvidia-340/340.108/build/nv-time.h:41:19: warning: excess elements in struct initializer 41 | .tv_sec = now.tv_sec, | ^~~ /var/lib/dkms/nvidia-340/340.108/build/nv-time.h:41:19: note: (near initialization for ‘(anonymous)’) /var/lib/dkms/nvidia-340/340.108/build/nv-time.h:42:10: error: ‘struct timeval’ has no member named ‘tv_usec’ 42 | .tv_usec = now.tv_nsec/1000, | ^~~~~~~ /var/lib/dkms/nvidia-340/340.108/build/nv-time.h:42:20: warning: excess elements in struct initializer 42 | .tv_usec = now.tv_nsec/1000, | ^~~ /var/lib/dkms/nvidia-340/340.108/build/nv-time.h:42:20: note: (near initialization for ‘(anonymous)’) /var/lib/dkms/nvidia-340/340.108/build/nv-time.h:40:28: error: invalid use of undefined type ‘struct timeval’ 40 | *tv = (struct timeval) { | ^ /var/lib/dkms/nvidia-340/340.108/build/os-interface.c: In function ‘os_get_current_time’: /var/lib/dkms/nvidia-340/340.108/build/os-interface.c:442:20: error: storage size of ‘tm’ isn’t known 442 | struct timeval tm; | ^~ /var/lib/dkms/nvidia-340/340.108/build/os-interface.c:442:20: warning: unused variable ‘tm’ [-Wunused-variable] /var/lib/dkms/nvidia-340/340.108/build/os-interface.c: In function ‘os_delay’: /var/lib/dkms/nvidia-340/340.108/build/os-interface.c:517:20: error: storage size of ‘tm_end’ isn’t known 517 | struct timeval tm_end, tm_aux; | ^~~~~~ /var/lib/dkms/nvidia-340/340.108/build/os-interface.c:517:28: error: storage size of ‘tm_aux’ isn’t known 517 | struct timeval tm_end, tm_aux; | ^~~~~~ /var/lib/dkms/nvidia-340/340.108/build/os-interface.c:517:28: warning: unused variable ‘tm_aux’ [-Wunused-variable] /var/lib/dkms/nvidia-340/340.108/build/os-interface.c:517:20: warning: unused variable ‘tm_end’ [-Wunused-variable] 517 | struct timeval tm_end, tm_aux; | ^~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/os-interface.c:15: /var/lib/dkms/nvidia-340/340.108/build/os-interface.c: In function ‘os_map_kernel_space’: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:693:17: error: implicit declaration of function ‘ioremap_nocache’; did you mean ‘ioremap_cache’? [-Werror=implicit-function-declaration] 693 | (ptr) = ioremap_nocache(physaddr, size); \ | ^~~~~~~~~~~~~~~ /var/lib/dkms/nvidia-340/340.108/build/os-interface.c:879:13: note: in expansion of macro ‘NV_IOREMAP_NOCACHE’ 879 | NV_IOREMAP_NOCACHE(vaddr, start, size_bytes); | ^~~~~~~~~~~~~~~~~~ /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:693:15: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 693 | (ptr) = ioremap_nocache(physaddr, size); \ | ^ /var/lib/dkms/nvidia-340/340.108/build/os-interface.c:879:13: note: in expansion of macro ‘NV_IOREMAP_NOCACHE’ 879 | NV_IOREMAP_NOCACHE(vaddr, start, size_bytes); | ^~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:276: /var/lib/dkms/nvidia-340/340.108/build/os-interface.o] Error 1 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 -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -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 -DCONFIG_AS_ADX=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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -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=./= -fcf-protection=none -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:395, from ./include/linux/bitops.h:29, 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:141:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 141 | 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:16, 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:1055:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1055 | 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_tryget_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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:162:2: note: in expansion of macro ‘for_each_online_cpu’ 162 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:227:2: note: in expansion of macro ‘for_each_online_cpu’ 227 | 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:173, 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:244:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 244 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:249:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 249 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ 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 -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -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 -DCONFIG_AS_ADX=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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -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=./= -fcf-protection=none -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:395, from ./include/linux/bitops.h:29, 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:141:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 141 | 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:16, 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:1055:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1055 | 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_tryget_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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:162:2: note: in expansion of macro ‘for_each_online_cpu’ 162 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:227:2: note: in expansion of macro ‘for_each_online_cpu’ 227 | 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:173, 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:244:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 244 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:249:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 249 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ 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 -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -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 -DCONFIG_AS_ADX=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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -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=./= -fcf-protection=none -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:395, from ./include/linux/bitops.h:29, 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:141:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 141 | 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:16, 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:1055:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1055 | 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_tryget_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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:162:2: note: in expansion of macro ‘for_each_online_cpu’ 162 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:227:2: note: in expansion of macro ‘for_each_online_cpu’ 227 | 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:173, 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:244:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 244 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:249:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 249 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ 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 -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -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 -DCONFIG_AS_ADX=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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -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=./= -fcf-protection=none -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:395, from ./include/linux/bitops.h:29, 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:141:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 141 | 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:16, 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:1055:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1055 | 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_tryget_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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:162:2: note: in expansion of macro ‘for_each_online_cpu’ 162 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:227:2: note: in expansion of macro ‘for_each_online_cpu’ 227 | 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:173, 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:244:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 244 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:249:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 249 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ 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 -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -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 -DCONFIG_AS_ADX=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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -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=./= -fcf-protection=none -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:395, from ./include/linux/bitops.h:29, 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:141:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 141 | 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:16, 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:1055:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1055 | 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_tryget_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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:162:2: note: in expansion of macro ‘for_each_online_cpu’ 162 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:227:2: note: in expansion of macro ‘for_each_online_cpu’ 227 | 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:173, 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:244:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 244 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:249:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 249 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ 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 -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -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 -DCONFIG_AS_ADX=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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -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=./= -fcf-protection=none -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:395, from ./include/linux/bitops.h:29, 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:141:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 141 | 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:16, 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:1055:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1055 | 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_tryget_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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:162:2: note: in expansion of macro ‘for_each_online_cpu’ 162 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:227:2: note: in expansion of macro ‘for_each_online_cpu’ 227 | 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:173, 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:244:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 244 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:249:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 249 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ 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 -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -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 -DCONFIG_AS_ADX=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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -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=./= -fcf-protection=none -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:395, from ./include/linux/bitops.h:29, 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:141:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 141 | 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:16, 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:1055:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1055 | 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_tryget_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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:231:3: note: in expansion of macro ‘this_cpu_add’ 231 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:307:3: note: in expansion of macro ‘this_cpu_sub’ 307 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:162:2: note: in expansion of macro ‘for_each_online_cpu’ 162 | 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:805:36: note: in expansion of macro ‘for_each_cpu’ 805 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:227:2: note: in expansion of macro ‘for_each_online_cpu’ 227 | 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:173, 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:244:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 244 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:249:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 249 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ { 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[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1707: /var/lib/dkms/nvidia-340/340.108/build] Error 2 make[1]: Target 'modules' not remade because of errors. make[1]: Leaving directory '/usr/src/linux-headers-5.6.0-1018-oem' NVIDIA: left KBUILD. nvidia.ko failed to build! make: *** [Makefile:197: nvidia.ko] Error 1 make: Target 'module' not remade because of errors. make: Entering directory '/var/lib/dkms/nvidia-340/340.108/build/uvm' cd ./..; make module SYSSRC=/lib/modules/5.6.0-1018-oem/build SYSOUT=/lib/modules/5.6.0-1018-oem/build KBUILD_EXTMOD=./.. make[1]: Entering directory '/var/lib/dkms/nvidia-340/340.108/build' NVIDIA: calling KBUILD... make[2]: Entering directory '/usr/src/linux-headers-5.6.0-1018-oem' 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=.. \ single-build= \ need-builtin=1 need-modorder=1 scripts/Makefile.build:44: ../Makefile: No such file or directory make[3]: *** No rule to make target '../Makefile'. Stop. make[2]: *** [Makefile:1707: ..] Error 2 make[2]: Leaving directory '/usr/src/linux-headers-5.6.0-1018-oem' NVIDIA: left KBUILD. nvidia.ko failed to build! make[1]: *** [Makefile:197: nvidia.ko] Error 1 make[1]: Leaving directory '/var/lib/dkms/nvidia-340/340.108/build' make: *** [Makefile:221: ../Module.symvers] Error 2 make: Leaving directory '/var/lib/dkms/nvidia-340/340.108/build/uvm'