DKMS make.log for nvidia-340-340.108 for kernel 5.11.0-27-generic (x86_64) Чт 19 авг 2021 08:34:32 MSK NVIDIA: calling KBUILD... make[1]: вход в каталог «/usr/src/linux-headers-5.11.0-27-generic» test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \ echo >&2; \ echo >&2 " ERROR: Kernel configuration is invalid."; \ echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\ echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo >&2 ; \ /bin/false) make -f ./scripts/Makefile.build obj=/var/lib/dkms/nvidia-340/340.108/build \ single-build= \ need-builtin=1 need-modorder=1 cc -Wp,-MMD,/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__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -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:32, from ./include/linux/kernel.h:11, from ./arch/x86/include/asm/percpu.h:27, 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:206:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 206 | 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:204:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 204 | 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:1063:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1063 | 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:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_tryget_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | 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:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:165:2: note: in expansion of macro ‘for_each_online_cpu’ 165 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:238:2: note: in expansion of macro ‘for_each_online_cpu’ 238 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/nv.c:13: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h: At top level: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:122:10: fatal error: asm/kmap_types.h: Нет такого файла или каталога 122 | #include /* page table entry lookup */ | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/nvidia-340/340.108/build/nv.o] Ошибка 1 cc -Wp,-MMD,/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__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -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:32, from ./include/linux/kernel.h:11, from ./arch/x86/include/asm/percpu.h:27, 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:206:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 206 | 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:204:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 204 | 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:1063:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1063 | 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:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_tryget_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | 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:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:165:2: note: in expansion of macro ‘for_each_online_cpu’ 165 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:238:2: note: in expansion of macro ‘for_each_online_cpu’ 238 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/nv-acpi.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h: At top level: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:122:10: fatal error: asm/kmap_types.h: Нет такого файла или каталога 122 | #include /* page table entry lookup */ | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/nvidia-340/340.108/build/nv-acpi.o] Ошибка 1 cc -Wp,-MMD,/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__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -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:32, from ./include/linux/kernel.h:11, from ./arch/x86/include/asm/percpu.h:27, 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:206:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 206 | 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:204:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 204 | 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:1063:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1063 | 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:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_tryget_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | 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:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:165:2: note: in expansion of macro ‘for_each_online_cpu’ 165 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:238:2: note: in expansion of macro ‘for_each_online_cpu’ 238 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/nv-chrdev.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h: At top level: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:122:10: fatal error: asm/kmap_types.h: Нет такого файла или каталога 122 | #include /* page table entry lookup */ | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/nvidia-340/340.108/build/nv-chrdev.o] Ошибка 1 cc -Wp,-MMD,/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__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -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:32, from ./include/linux/kernel.h:11, from ./arch/x86/include/asm/percpu.h:27, 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:206:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 206 | 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:204:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 204 | 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:1063:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1063 | 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:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_tryget_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | 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:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:165:2: note: in expansion of macro ‘for_each_online_cpu’ 165 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:238:2: note: in expansion of macro ‘for_each_online_cpu’ 238 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/nv-cray.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h: At top level: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:122:10: fatal error: asm/kmap_types.h: Нет такого файла или каталога 122 | #include /* page table entry lookup */ | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/nvidia-340/340.108/build/nv-cray.o] Ошибка 1 cc -Wp,-MMD,/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__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -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:32, from ./include/linux/kernel.h:11, from ./arch/x86/include/asm/percpu.h:27, 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:206:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 206 | 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:204:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 204 | 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:1063:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1063 | 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:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_tryget_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | 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:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:165:2: note: in expansion of macro ‘for_each_online_cpu’ 165 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:238:2: note: in expansion of macro ‘for_each_online_cpu’ 238 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/nv-dma.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h: At top level: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:122:10: fatal error: asm/kmap_types.h: Нет такого файла или каталога 122 | #include /* page table entry lookup */ | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/nvidia-340/340.108/build/nv-dma.o] Ошибка 1 cc -Wp,-MMD,/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__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -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:32, from ./include/linux/kernel.h:11, from ./arch/x86/include/asm/percpu.h:27, 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:206:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 206 | 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:204:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 204 | 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:1063:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1063 | 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:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_tryget_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | 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:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:165:2: note: in expansion of macro ‘for_each_online_cpu’ 165 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:238:2: note: in expansion of macro ‘for_each_online_cpu’ 238 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/nv-drm.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h: At top level: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:122:10: fatal error: asm/kmap_types.h: Нет такого файла или каталога 122 | #include /* page table entry lookup */ | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/nvidia-340/340.108/build/nv-drm.o] Ошибка 1 cc -Wp,-MMD,/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__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -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:32, from ./include/linux/kernel.h:11, from ./arch/x86/include/asm/percpu.h:27, 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:206:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 206 | 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:204:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 204 | 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:1063:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1063 | 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:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_tryget_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | 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:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:165:2: note: in expansion of macro ‘for_each_online_cpu’ 165 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:238:2: note: in expansion of macro ‘for_each_online_cpu’ 238 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/nv-gvi.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h: At top level: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:122:10: fatal error: asm/kmap_types.h: Нет такого файла или каталога 122 | #include /* page table entry lookup */ | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/nvidia-340/340.108/build/nv-gvi.o] Ошибка 1 cc -Wp,-MMD,/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__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -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:32, from ./include/linux/kernel.h:11, from ./arch/x86/include/asm/percpu.h:27, 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:206:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 206 | 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:204:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 204 | 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:1063:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1063 | 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:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_tryget_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | 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:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:165:2: note: in expansion of macro ‘for_each_online_cpu’ 165 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:238:2: note: in expansion of macro ‘for_each_online_cpu’ 238 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/nv-i2c.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h: At top level: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:122:10: fatal error: asm/kmap_types.h: Нет такого файла или каталога 122 | #include /* page table entry lookup */ | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/nvidia-340/340.108/build/nv-i2c.o] Ошибка 1 cc -Wp,-MMD,/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__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -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:32, from ./include/linux/kernel.h:11, from ./arch/x86/include/asm/percpu.h:27, 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:206:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 206 | 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:204:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 204 | 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:1063:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1063 | 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:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_tryget_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | 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:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:165:2: note: in expansion of macro ‘for_each_online_cpu’ 165 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:238:2: note: in expansion of macro ‘for_each_online_cpu’ 238 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/nv-mempool.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h: At top level: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:122:10: fatal error: asm/kmap_types.h: Нет такого файла или каталога 122 | #include /* page table entry lookup */ | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/nvidia-340/340.108/build/nv-mempool.o] Ошибка 1 cc -Wp,-MMD,/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__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -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:32, from ./include/linux/kernel.h:11, from ./arch/x86/include/asm/percpu.h:27, 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:206:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 206 | 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:204:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 204 | 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:1063:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1063 | 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:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_tryget_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | 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:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:165:2: note: in expansion of macro ‘for_each_online_cpu’ 165 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:238:2: note: in expansion of macro ‘for_each_online_cpu’ 238 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/nv-mmap.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h: At top level: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:122:10: fatal error: asm/kmap_types.h: Нет такого файла или каталога 122 | #include /* page table entry lookup */ | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/nvidia-340/340.108/build/nv-mmap.o] Ошибка 1 cc -Wp,-MMD,/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__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -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:32, from ./include/linux/kernel.h:11, from ./arch/x86/include/asm/percpu.h:27, 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:206:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 206 | 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:204:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 204 | 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:1063:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1063 | 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:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_tryget_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | 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:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:165:2: note: in expansion of macro ‘for_each_online_cpu’ 165 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:238:2: note: in expansion of macro ‘for_each_online_cpu’ 238 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/nv-p2p.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h: At top level: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:122:10: fatal error: asm/kmap_types.h: Нет такого файла или каталога 122 | #include /* page table entry lookup */ | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/nvidia-340/340.108/build/nv-p2p.o] Ошибка 1 cc -Wp,-MMD,/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__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -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:32, from ./include/linux/kernel.h:11, from ./arch/x86/include/asm/percpu.h:27, 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:206:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 206 | 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:204:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 204 | 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:1063:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1063 | 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:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_tryget_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | 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:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:165:2: note: in expansion of macro ‘for_each_online_cpu’ 165 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:238:2: note: in expansion of macro ‘for_each_online_cpu’ 238 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/nv-pat.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h: At top level: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:122:10: fatal error: asm/kmap_types.h: Нет такого файла или каталога 122 | #include /* page table entry lookup */ | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/nvidia-340/340.108/build/nv-pat.o] Ошибка 1 cc -Wp,-MMD,/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__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -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:32, from ./include/linux/kernel.h:11, from ./arch/x86/include/asm/percpu.h:27, 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:206:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 206 | 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:204:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 204 | 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:1063:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1063 | 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:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_tryget_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | 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:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:165:2: note: in expansion of macro ‘for_each_online_cpu’ 165 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:238:2: note: in expansion of macro ‘for_each_online_cpu’ 238 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ 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: At top level: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:122:10: fatal error: asm/kmap_types.h: Нет такого файла или каталога 122 | #include /* page table entry lookup */ | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/nvidia-340/340.108/build/nv-procfs.o] Ошибка 1 cc -Wp,-MMD,/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__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -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:32, from ./include/linux/kernel.h:11, from ./arch/x86/include/asm/percpu.h:27, 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:206:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 206 | 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:204:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 204 | 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:1063:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1063 | 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:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_tryget_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | 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:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:165:2: note: in expansion of macro ‘for_each_online_cpu’ 165 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:238:2: note: in expansion of macro ‘for_each_online_cpu’ 238 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/nv-usermap.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h: At top level: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:122:10: fatal error: asm/kmap_types.h: Нет такого файла или каталога 122 | #include /* page table entry lookup */ | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/nvidia-340/340.108/build/nv-usermap.o] Ошибка 1 cc -Wp,-MMD,/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__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -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:32, from ./include/linux/kernel.h:11, from ./arch/x86/include/asm/percpu.h:27, 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:206:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 206 | 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:204:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 204 | 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:1063:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1063 | 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:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_tryget_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | 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:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:165:2: note: in expansion of macro ‘for_each_online_cpu’ 165 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:238:2: note: in expansion of macro ‘for_each_online_cpu’ 238 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/nv-vm.c:14: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h: At top level: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:122:10: fatal error: asm/kmap_types.h: Нет такого файла или каталога 122 | #include /* page table entry lookup */ | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/nvidia-340/340.108/build/nv-vm.o] Ошибка 1 cc -Wp,-MMD,/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__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -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:32, from ./include/linux/kernel.h:11, from ./arch/x86/include/asm/percpu.h:27, 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:206:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 206 | 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:204:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 204 | 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:1063:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1063 | 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:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_tryget_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | 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:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:165:2: note: in expansion of macro ‘for_each_online_cpu’ 165 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:238:2: note: in expansion of macro ‘for_each_online_cpu’ 238 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/nv-vtophys.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h: At top level: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:122:10: fatal error: asm/kmap_types.h: Нет такого файла или каталога 122 | #include /* page table entry lookup */ | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/nvidia-340/340.108/build/nv-vtophys.o] Ошибка 1 cc -Wp,-MMD,/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__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -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:32, from ./include/linux/kernel.h:11, from ./arch/x86/include/asm/percpu.h:27, 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:206:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 206 | 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:204:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 204 | 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:1063:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1063 | 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:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_tryget_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | 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:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:165:2: note: in expansion of macro ‘for_each_online_cpu’ 165 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:238:2: note: in expansion of macro ‘for_each_online_cpu’ 238 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/os-interface.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h: At top level: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:122:10: fatal error: asm/kmap_types.h: Нет такого файла или каталога 122 | #include /* page table entry lookup */ | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/nvidia-340/340.108/build/os-interface.o] Ошибка 1 cc -Wp,-MMD,/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__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -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:32, from ./include/linux/kernel.h:11, from ./arch/x86/include/asm/percpu.h:27, 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:206:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 206 | 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:204:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 204 | 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:1063:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1063 | 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:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_tryget_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | 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:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:165:2: note: in expansion of macro ‘for_each_online_cpu’ 165 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:238:2: note: in expansion of macro ‘for_each_online_cpu’ 238 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/os-mlock.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h: At top level: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:122:10: fatal error: asm/kmap_types.h: Нет такого файла или каталога 122 | #include /* page table entry lookup */ | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/nvidia-340/340.108/build/os-mlock.o] Ошибка 1 cc -Wp,-MMD,/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__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -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:32, from ./include/linux/kernel.h:11, from ./arch/x86/include/asm/percpu.h:27, 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:206:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 206 | 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:204:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 204 | 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:1063:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1063 | 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:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_tryget_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | 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:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:165:2: note: in expansion of macro ‘for_each_online_cpu’ 165 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:238:2: note: in expansion of macro ‘for_each_online_cpu’ 238 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/os-pci.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h: At top level: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:122:10: fatal error: asm/kmap_types.h: Нет такого файла или каталога 122 | #include /* page table entry lookup */ | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/nvidia-340/340.108/build/os-pci.o] Ошибка 1 cc -Wp,-MMD,/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__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -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:32, from ./include/linux/kernel.h:11, from ./arch/x86/include/asm/percpu.h:27, 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:206:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 206 | 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:204:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 204 | 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:1063:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1063 | 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:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_tryget_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | 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:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:165:2: note: in expansion of macro ‘for_each_online_cpu’ 165 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:238:2: note: in expansion of macro ‘for_each_online_cpu’ 238 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/os-registry.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h: At top level: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:122:10: fatal error: asm/kmap_types.h: Нет такого файла или каталога 122 | #include /* page table entry lookup */ | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/nvidia-340/340.108/build/os-registry.o] Ошибка 1 cc -Wp,-MMD,/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__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -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:32, from ./include/linux/kernel.h:11, from ./arch/x86/include/asm/percpu.h:27, 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:206:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 206 | 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:204:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 204 | 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:1063:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1063 | 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:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_tryget_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | 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:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:165:2: note: in expansion of macro ‘for_each_online_cpu’ 165 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:238:2: note: in expansion of macro ‘for_each_online_cpu’ 238 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/os-smp.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h: At top level: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:122:10: fatal error: asm/kmap_types.h: Нет такого файла или каталога 122 | #include /* page table entry lookup */ | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/nvidia-340/340.108/build/os-smp.o] Ошибка 1 cc -Wp,-MMD,/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__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -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:32, from ./include/linux/kernel.h:11, from ./arch/x86/include/asm/percpu.h:27, 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:206:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 206 | 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:204:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 204 | 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:1063:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1063 | 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:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_tryget_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | 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:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:165:2: note: in expansion of macro ‘for_each_online_cpu’ 165 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:238:2: note: in expansion of macro ‘for_each_online_cpu’ 238 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/os-usermap.c:15: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h: At top level: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:122:10: fatal error: asm/kmap_types.h: Нет такого файла или каталога 122 | #include /* page table entry lookup */ | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/nvidia-340/340.108/build/os-usermap.o] Ошибка 1 cc -Wp,-MMD,/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__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -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:32, from ./include/linux/kernel.h:11, from ./arch/x86/include/asm/percpu.h:27, 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:206:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 206 | 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:204:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 204 | 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:1063:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1063 | 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:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_tryget_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | 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:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:165:2: note: in expansion of macro ‘for_each_online_cpu’ 165 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:238:2: note: in expansion of macro ‘for_each_online_cpu’ 238 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/nv_uvm_interface.c:21: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h: At top level: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:122:10: fatal error: asm/kmap_types.h: Нет такого файла или каталога 122 | #include /* page table entry lookup */ | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/nvidia-340/340.108/build/nv_uvm_interface.o] Ошибка 1 cc -Wp,-MMD,/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__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -gsplit-dwarf -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -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:32, from ./include/linux/kernel.h:11, from ./arch/x86/include/asm/percpu.h:27, 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:206:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 206 | 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:204:21: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘long int’ [-Wsign-compare] 204 | 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:1063:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘enum zone_type’ [-Wsign-compare] 1063 | 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:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:205:3: note: in expansion of macro ‘this_cpu_add’ 205 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_tryget_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:244:3: note: in expansion of macro ‘this_cpu_add’ 244 | this_cpu_add(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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:320:3: note: in expansion of macro ‘this_cpu_sub’ 320 | this_cpu_sub(*percpu_count, nr); | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read’: ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:266:34: note: in expansion of macro ‘percpu_add_op’ 266 | #define this_cpu_add_1(pcp, val) percpu_add_op(1, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:267:34: note: in expansion of macro ‘percpu_add_op’ 267 | #define this_cpu_add_2(pcp, val) percpu_add_op(2, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:268:34: note: in expansion of macro ‘percpu_add_op’ 268 | #define this_cpu_add_4(pcp, val) percpu_add_op(4, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:127:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 127 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:326:35: note: in expansion of macro ‘percpu_add_op’ 326 | #define this_cpu_add_8(pcp, val) percpu_add_op(8, 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-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | 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:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:165:2: note: in expansion of macro ‘for_each_online_cpu’ 165 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:272:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 272 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:818:36: note: in expansion of macro ‘for_each_cpu’ 818 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:238:2: note: in expansion of macro ‘for_each_online_cpu’ 238 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from /var/lib/dkms/nvidia-340/340.108/build/nv-frontend.c:13: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h: At top level: /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:122:10: fatal error: asm/kmap_types.h: Нет такого файла или каталога 122 | #include /* page table entry lookup */ | ^~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/nvidia-340/340.108/build/nv-frontend.o] Ошибка 1 make[2]: Цель «__build» не была пересобрана из-за ошибок. make[1]: *** [Makefile:1848: /var/lib/dkms/nvidia-340/340.108/build] Ошибка 2 make[1]: Цель «modules» не была пересобрана из-за ошибок. make[1]: выход из каталога «/usr/src/linux-headers-5.11.0-27-generic» NVIDIA: left KBUILD. nvidia.ko failed to build! make: *** [Makefile:202: nvidia.ko] Ошибка 1 make: Цель «module» не была пересобрана из-за ошибок. make: вход в каталог «/var/lib/dkms/nvidia-340/340.108/build/uvm» cd ./..; make module SYSSRC=/lib/modules/5.11.0-27-generic/build SYSOUT=/lib/modules/5.11.0-27-generic/build KBUILD_EXTMOD=./.. make[1]: вход в каталог «/var/lib/dkms/nvidia-340/340.108/build» NVIDIA: calling KBUILD... make[2]: вход в каталог «/usr/src/linux-headers-5.11.0-27-generic» test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \ echo >&2; \ echo >&2 " ERROR: Kernel configuration is invalid."; \ echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\ echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo >&2 ; \ /bin/false) make -f ./scripts/Makefile.build obj=.. \ single-build= \ need-builtin=1 need-modorder=1 scripts/Makefile.build:44: ../Makefile: Нет такого файла или каталога make[3]: *** Нет правила для сборки цели «../Makefile». Останов. make[2]: *** [Makefile:1848: ..] Ошибка 2 make[2]: выход из каталога «/usr/src/linux-headers-5.11.0-27-generic» NVIDIA: left KBUILD. nvidia.ko failed to build! make[1]: *** [Makefile:202: nvidia.ko] Ошибка 1 make[1]: выход из каталога «/var/lib/dkms/nvidia-340/340.108/build» make: *** [Makefile:222: ../Module.symvers] Ошибка 2 make: выход из каталога «/var/lib/dkms/nvidia-340/340.108/build/uvm»