DKMS make.log for nvidia-304-304.137 for kernel 4.14.0-3-generic (x86_64) Tue Oct 24 13:30:38 UTC 2017 NVIDIA: calling KBUILD... test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \ echo >&2; \ echo >&2 " ERROR: Kernel configuration is invalid."; \ echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\ echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo >&2 ; \ /bin/false) mkdir -p /var/lib/dkms/nvidia-304/304.137/build/.tmp_versions ; rm -f /var/lib/dkms/nvidia-304/304.137/build/.tmp_versions/* make -f ./scripts/Makefile.build obj=/var/lib/dkms/nvidia-304/304.137/build cc -Wp,-MD,/var/lib/dkms/nvidia-304/304.137/build/.nv.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/7/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 -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -I/var/lib/dkms/nvidia-304/304.137/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"304.137\" -Wno-unused-function -Wuninitialized -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -DKBUILD_BASENAME='"nv"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-304/304.137/build/nv.o /var/lib/dkms/nvidia-304/304.137/build/nv.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv.c:13: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:134:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (unlikely(sz >= 0 && sz < bytes)) { ^ ./include/linux/compiler.h:175:42: note: in definition of macro ‘unlikely’ # define unlikely(x) __builtin_expect(!!(x), 0) ^ ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:174:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./include/linux/ipc.h:6:0, from ./include/uapi/linux/sem.h:4, from ./include/linux/sem.h:8, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv.c:13: ./include/linux/rhashtable.h: In function ‘rht_grow_above_75’: ./include/linux/rhashtable.h:295:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return atomic_read(&ht->nelems) > (tbl->size / 4 * 3) && ^ ./include/linux/rhashtable.h: In function ‘rht_shrink_below_30’: ./include/linux/rhashtable.h:308:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return atomic_read(&ht->nelems) < (tbl->size * 3 / 10) && ^ ./include/linux/rhashtable.h: In function ‘rht_grow_above_100’: ./include/linux/rhashtable.h:320:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return atomic_read(&ht->nelems) > tbl->size && ^ ./include/linux/rhashtable.h: In function ‘rht_grow_above_max’: ./include/linux/rhashtable.h:332:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return atomic_read(&ht->nelems) >= ht->max_elems; ^~ In file included from ./arch/x86/include/asm/smp.h:12:0, from ./include/linux/smp.h:63, from ./include/linux/percpu.h:6, from ./include/linux/hrtimer.h:22, from ./include/linux/sched.h:19, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv.c:13: ./arch/x86/include/asm/apic.h: In function ‘__default_cpu_present_to_apicid’: ./arch/x86/include/asm/apic.h:587:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (mps_cpu < nr_cpu_ids && cpu_present(mps_cpu)) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv.c:13: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:992:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:174:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv.c:13: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:176:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:176:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:176:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:176:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:275:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:275:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:275:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:275:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^~~~~~~~~~~ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^~~~~~~~~~~ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^~~~~~~~~~~ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^~~~~~~~~~~ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:15:0, from ./arch/x86/include/asm/irqflags.h:64, from ./include/linux/irqflags.h:15, from ./include/linux/rcupdate.h:39, from ./include/linux/rculist.h:10, from ./include/linux/pid.h:4, from ./include/linux/sched.h:13, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv.c:13: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:212:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] (cpu) < nr_cpu_ids;) ^ ./include/linux/cpumask.h:747:36: note: in expansion of macro ‘for_each_cpu’ #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) ^~~~~~~~~~~~ ./include/linux/vmstat.h:134:2: note: in expansion of macro ‘for_each_online_cpu’ for_each_online_cpu(cpu) ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:212:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] (cpu) < nr_cpu_ids;) ^ ./include/linux/cpumask.h:747:36: note: in expansion of macro ‘for_each_cpu’ #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) ^~~~~~~~~~~~ ./include/linux/vmstat.h:199:2: note: in expansion of macro ‘for_each_online_cpu’ for_each_online_cpu(cpu) ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘node_page_state_snapshot’: ./include/linux/cpumask.h:212:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] (cpu) < nr_cpu_ids;) ^ ./include/linux/cpumask.h:747:36: note: in expansion of macro ‘for_each_cpu’ #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) ^~~~~~~~~~~~ ./include/linux/vmstat.h:215:2: note: in expansion of macro ‘for_each_online_cpu’ for_each_online_cpu(cpu) ^~~~~~~~~~~~~~~~~~~ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-304/304.137/build/nv.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-304/304.137/build/nv.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-304/304.137/build/.nv-acpi.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/7/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 -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -I/var/lib/dkms/nvidia-304/304.137/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"304.137\" -Wno-unused-function -Wuninitialized -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -DKBUILD_BASENAME='"nv_acpi"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-304/304.137/build/nv-acpi.o /var/lib/dkms/nvidia-304/304.137/build/nv-acpi.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv-acpi.c:15: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:134:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (unlikely(sz >= 0 && sz < bytes)) { ^ ./include/linux/compiler.h:175:42: note: in definition of macro ‘unlikely’ # define unlikely(x) __builtin_expect(!!(x), 0) ^ ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:174:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./include/linux/ipc.h:6:0, from ./include/uapi/linux/sem.h:4, from ./include/linux/sem.h:8, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv-acpi.c:15: ./include/linux/rhashtable.h: In function ‘rht_grow_above_75’: ./include/linux/rhashtable.h:295:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return atomic_read(&ht->nelems) > (tbl->size / 4 * 3) && ^ ./include/linux/rhashtable.h: In function ‘rht_shrink_below_30’: ./include/linux/rhashtable.h:308:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return atomic_read(&ht->nelems) < (tbl->size * 3 / 10) && ^ ./include/linux/rhashtable.h: In function ‘rht_grow_above_100’: ./include/linux/rhashtable.h:320:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return atomic_read(&ht->nelems) > tbl->size && ^ ./include/linux/rhashtable.h: In function ‘rht_grow_above_max’: ./include/linux/rhashtable.h:332:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return atomic_read(&ht->nelems) >= ht->max_elems; ^~ In file included from ./arch/x86/include/asm/smp.h:12:0, from ./include/linux/smp.h:63, from ./include/linux/percpu.h:6, from ./include/linux/hrtimer.h:22, from ./include/linux/sched.h:19, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv-acpi.c:15: ./arch/x86/include/asm/apic.h: In function ‘__default_cpu_present_to_apicid’: ./arch/x86/include/asm/apic.h:587:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (mps_cpu < nr_cpu_ids && cpu_present(mps_cpu)) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv-acpi.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:992:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:174:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv-acpi.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:176:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:176:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:176:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:176:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:275:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:275:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:275:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:275:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^~~~~~~~~~~ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^~~~~~~~~~~ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^~~~~~~~~~~ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^~~~~~~~~~~ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:15:0, from ./arch/x86/include/asm/irqflags.h:64, from ./include/linux/irqflags.h:15, from ./include/linux/rcupdate.h:39, from ./include/linux/rculist.h:10, from ./include/linux/pid.h:4, from ./include/linux/sched.h:13, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv-acpi.c:15: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:212:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] (cpu) < nr_cpu_ids;) ^ ./include/linux/cpumask.h:747:36: note: in expansion of macro ‘for_each_cpu’ #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) ^~~~~~~~~~~~ ./include/linux/vmstat.h:134:2: note: in expansion of macro ‘for_each_online_cpu’ for_each_online_cpu(cpu) ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:212:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] (cpu) < nr_cpu_ids;) ^ ./include/linux/cpumask.h:747:36: note: in expansion of macro ‘for_each_cpu’ #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) ^~~~~~~~~~~~ ./include/linux/vmstat.h:199:2: note: in expansion of macro ‘for_each_online_cpu’ for_each_online_cpu(cpu) ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘node_page_state_snapshot’: ./include/linux/cpumask.h:212:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] (cpu) < nr_cpu_ids;) ^ ./include/linux/cpumask.h:747:36: note: in expansion of macro ‘for_each_cpu’ #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) ^~~~~~~~~~~~ ./include/linux/vmstat.h:215:2: note: in expansion of macro ‘for_each_online_cpu’ for_each_online_cpu(cpu) ^~~~~~~~~~~~~~~~~~~ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-304/304.137/build/nv-acpi.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-304/304.137/build/nv-acpi.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-304/304.137/build/.nv-chrdev.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/7/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 -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -I/var/lib/dkms/nvidia-304/304.137/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"304.137\" -Wno-unused-function -Wuninitialized -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -DKBUILD_BASENAME='"nv_chrdev"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-304/304.137/build/nv-chrdev.o /var/lib/dkms/nvidia-304/304.137/build/nv-chrdev.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv-chrdev.c:15: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:134:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (unlikely(sz >= 0 && sz < bytes)) { ^ ./include/linux/compiler.h:175:42: note: in definition of macro ‘unlikely’ # define unlikely(x) __builtin_expect(!!(x), 0) ^ ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:174:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./include/linux/ipc.h:6:0, from ./include/uapi/linux/sem.h:4, from ./include/linux/sem.h:8, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv-chrdev.c:15: ./include/linux/rhashtable.h: In function ‘rht_grow_above_75’: ./include/linux/rhashtable.h:295:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return atomic_read(&ht->nelems) > (tbl->size / 4 * 3) && ^ ./include/linux/rhashtable.h: In function ‘rht_shrink_below_30’: ./include/linux/rhashtable.h:308:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return atomic_read(&ht->nelems) < (tbl->size * 3 / 10) && ^ ./include/linux/rhashtable.h: In function ‘rht_grow_above_100’: ./include/linux/rhashtable.h:320:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return atomic_read(&ht->nelems) > tbl->size && ^ ./include/linux/rhashtable.h: In function ‘rht_grow_above_max’: ./include/linux/rhashtable.h:332:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return atomic_read(&ht->nelems) >= ht->max_elems; ^~ In file included from ./arch/x86/include/asm/smp.h:12:0, from ./include/linux/smp.h:63, from ./include/linux/percpu.h:6, from ./include/linux/hrtimer.h:22, from ./include/linux/sched.h:19, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv-chrdev.c:15: ./arch/x86/include/asm/apic.h: In function ‘__default_cpu_present_to_apicid’: ./arch/x86/include/asm/apic.h:587:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (mps_cpu < nr_cpu_ids && cpu_present(mps_cpu)) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv-chrdev.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:992:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:174:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv-chrdev.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:176:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:176:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:176:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:176:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:275:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:275:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:275:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:275:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^~~~~~~~~~~ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^~~~~~~~~~~ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^~~~~~~~~~~ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^~~~~~~~~~~ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:15:0, from ./arch/x86/include/asm/irqflags.h:64, from ./include/linux/irqflags.h:15, from ./include/linux/rcupdate.h:39, from ./include/linux/rculist.h:10, from ./include/linux/pid.h:4, from ./include/linux/sched.h:13, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv-chrdev.c:15: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:212:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] (cpu) < nr_cpu_ids;) ^ ./include/linux/cpumask.h:747:36: note: in expansion of macro ‘for_each_cpu’ #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) ^~~~~~~~~~~~ ./include/linux/vmstat.h:134:2: note: in expansion of macro ‘for_each_online_cpu’ for_each_online_cpu(cpu) ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:212:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] (cpu) < nr_cpu_ids;) ^ ./include/linux/cpumask.h:747:36: note: in expansion of macro ‘for_each_cpu’ #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) ^~~~~~~~~~~~ ./include/linux/vmstat.h:199:2: note: in expansion of macro ‘for_each_online_cpu’ for_each_online_cpu(cpu) ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘node_page_state_snapshot’: ./include/linux/cpumask.h:212:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] (cpu) < nr_cpu_ids;) ^ ./include/linux/cpumask.h:747:36: note: in expansion of macro ‘for_each_cpu’ #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) ^~~~~~~~~~~~ ./include/linux/vmstat.h:215:2: note: in expansion of macro ‘for_each_online_cpu’ for_each_online_cpu(cpu) ^~~~~~~~~~~~~~~~~~~ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-304/304.137/build/nv-chrdev.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-304/304.137/build/nv-chrdev.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-304/304.137/build/.nv-cray.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/7/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 -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -I/var/lib/dkms/nvidia-304/304.137/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"304.137\" -Wno-unused-function -Wuninitialized -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -DKBUILD_BASENAME='"nv_cray"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-304/304.137/build/nv-cray.o /var/lib/dkms/nvidia-304/304.137/build/nv-cray.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv-cray.c:15: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:134:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (unlikely(sz >= 0 && sz < bytes)) { ^ ./include/linux/compiler.h:175:42: note: in definition of macro ‘unlikely’ # define unlikely(x) __builtin_expect(!!(x), 0) ^ ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:174:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./include/linux/ipc.h:6:0, from ./include/uapi/linux/sem.h:4, from ./include/linux/sem.h:8, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv-cray.c:15: ./include/linux/rhashtable.h: In function ‘rht_grow_above_75’: ./include/linux/rhashtable.h:295:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return atomic_read(&ht->nelems) > (tbl->size / 4 * 3) && ^ ./include/linux/rhashtable.h: In function ‘rht_shrink_below_30’: ./include/linux/rhashtable.h:308:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return atomic_read(&ht->nelems) < (tbl->size * 3 / 10) && ^ ./include/linux/rhashtable.h: In function ‘rht_grow_above_100’: ./include/linux/rhashtable.h:320:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return atomic_read(&ht->nelems) > tbl->size && ^ ./include/linux/rhashtable.h: In function ‘rht_grow_above_max’: ./include/linux/rhashtable.h:332:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return atomic_read(&ht->nelems) >= ht->max_elems; ^~ In file included from ./arch/x86/include/asm/smp.h:12:0, from ./include/linux/smp.h:63, from ./include/linux/percpu.h:6, from ./include/linux/hrtimer.h:22, from ./include/linux/sched.h:19, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv-cray.c:15: ./arch/x86/include/asm/apic.h: In function ‘__default_cpu_present_to_apicid’: ./arch/x86/include/asm/apic.h:587:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (mps_cpu < nr_cpu_ids && cpu_present(mps_cpu)) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv-cray.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:992:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:174:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv-cray.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:176:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:176:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:176:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:176:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:275:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:275:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:275:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:275:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^~~~~~~~~~~ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^~~~~~~~~~~ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^~~~~~~~~~~ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^~~~~~~~~~~ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:15:0, from ./arch/x86/include/asm/irqflags.h:64, from ./include/linux/irqflags.h:15, from ./include/linux/rcupdate.h:39, from ./include/linux/rculist.h:10, from ./include/linux/pid.h:4, from ./include/linux/sched.h:13, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv-cray.c:15: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:212:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] (cpu) < nr_cpu_ids;) ^ ./include/linux/cpumask.h:747:36: note: in expansion of macro ‘for_each_cpu’ #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) ^~~~~~~~~~~~ ./include/linux/vmstat.h:134:2: note: in expansion of macro ‘for_each_online_cpu’ for_each_online_cpu(cpu) ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:212:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] (cpu) < nr_cpu_ids;) ^ ./include/linux/cpumask.h:747:36: note: in expansion of macro ‘for_each_cpu’ #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) ^~~~~~~~~~~~ ./include/linux/vmstat.h:199:2: note: in expansion of macro ‘for_each_online_cpu’ for_each_online_cpu(cpu) ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘node_page_state_snapshot’: ./include/linux/cpumask.h:212:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] (cpu) < nr_cpu_ids;) ^ ./include/linux/cpumask.h:747:36: note: in expansion of macro ‘for_each_cpu’ #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) ^~~~~~~~~~~~ ./include/linux/vmstat.h:215:2: note: in expansion of macro ‘for_each_online_cpu’ for_each_online_cpu(cpu) ^~~~~~~~~~~~~~~~~~~ if [ "-pg" = "-pg" ]; then if [ /var/lib/dkms/nvidia-304/304.137/build/nv-cray.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/var/lib/dkms/nvidia-304/304.137/build/nv-cray.o"; fi; fi; cc -Wp,-MD,/var/lib/dkms/nvidia-304/304.137/build/.nv-drm.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/7/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 -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -I/var/lib/dkms/nvidia-304/304.137/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"304.137\" -Wno-unused-function -Wuninitialized -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -DKBUILD_BASENAME='"nv_drm"' -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-304/304.137/build/nv-drm.o /var/lib/dkms/nvidia-304/304.137/build/nv-drm.c In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv-drm.c:15: ./include/linux/thread_info.h: In function ‘check_copy_size’: ./include/linux/thread_info.h:134:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (unlikely(sz >= 0 && sz < bytes)) { ^ ./include/linux/compiler.h:175:42: note: in definition of macro ‘unlikely’ # define unlikely(x) __builtin_expect(!!(x), 0) ^ ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’: ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] cnts, cnts | _QW_LOCKED) == cnts); ^ ./include/linux/compiler.h:174:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./include/linux/ipc.h:6:0, from ./include/uapi/linux/sem.h:4, from ./include/linux/sem.h:8, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv-drm.c:15: ./include/linux/rhashtable.h: In function ‘rht_grow_above_75’: ./include/linux/rhashtable.h:295:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return atomic_read(&ht->nelems) > (tbl->size / 4 * 3) && ^ ./include/linux/rhashtable.h: In function ‘rht_shrink_below_30’: ./include/linux/rhashtable.h:308:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return atomic_read(&ht->nelems) < (tbl->size * 3 / 10) && ^ ./include/linux/rhashtable.h: In function ‘rht_grow_above_100’: ./include/linux/rhashtable.h:320:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return atomic_read(&ht->nelems) > tbl->size && ^ ./include/linux/rhashtable.h: In function ‘rht_grow_above_max’: ./include/linux/rhashtable.h:332:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return atomic_read(&ht->nelems) >= ht->max_elems; ^~ In file included from ./arch/x86/include/asm/smp.h:12:0, from ./include/linux/smp.h:63, from ./include/linux/percpu.h:6, from ./include/linux/hrtimer.h:22, from ./include/linux/sched.h:19, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv-drm.c:15: ./arch/x86/include/asm/apic.h: In function ‘__default_cpu_present_to_apicid’: ./arch/x86/include/asm/apic.h:587:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (mps_cpu < nr_cpu_ids && cpu_present(mps_cpu)) ^ In file included from ./arch/x86/include/asm/current.h:4:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv-drm.c:15: ./include/linux/mmzone.h: In function ‘next_zones_zonelist’: ./include/linux/mmzone.h:992:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^ ./include/linux/compiler.h:174:40: note: in definition of macro ‘likely’ # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:5:0, from ./include/linux/sched.h:11, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv-drm.c:15: ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:176:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:176:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:176:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-refcount.h:176:3: note: in expansion of macro ‘this_cpu_add’ this_cpu_add(*percpu_count, nr); ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:275:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:275:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:275:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’ #define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’ #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’ #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~ ./include/linux/percpu-refcount.h:275:3: note: in expansion of macro ‘this_cpu_sub’ this_cpu_sub(*percpu_count, nr); ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’: ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_1(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’ case 1: stem##1(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^~~~~~~~~~~ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_2(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’ case 2: stem##2(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^~~~~~~~~~~ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_4(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’ case 4: stem##4(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^~~~~~~~~~~ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^~~~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ((val) == 1 || (val) == -1)) ? \ ^ ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’ #define raw_cpu_add_8(pcp, val) percpu_add_op((pcp), val) ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’ case 8: stem##8(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’ #define raw_cpu_add(pcp, val) __pcpu_size_call(raw_cpu_add_, pcp, val) ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’ raw_cpu_add(pcp, val); \ ^~~~~~~~~~~ ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’ #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’ #define __this_cpu_dec(pcp) __this_cpu_sub(pcp, 1) ^~~~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’ __this_cpu_dec(*sem->read_count); ^~~~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:15:0, from ./arch/x86/include/asm/irqflags.h:64, from ./include/linux/irqflags.h:15, from ./include/linux/rcupdate.h:39, from ./include/linux/rculist.h:10, from ./include/linux/pid.h:4, from ./include/linux/sched.h:13, from ./include/linux/utsname.h:5, from /var/lib/dkms/nvidia-304/304.137/build/nv-linux.h:40, from /var/lib/dkms/nvidia-304/304.137/build/nv-drm.c:15: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:212:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] (cpu) < nr_cpu_ids;) ^ ./include/linux/cpumask.h:747:36: note: in expansion of macro ‘for_each_cpu’ #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) ^~~~~~~~~~~~ ./include/linux/vmstat.h:134:2: note: in expansion of macro ‘for_each_online_cpu’ for_each_online_cpu(cpu) ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:212:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] (cpu) < nr_cpu_ids;) ^ ./include/linux/cpumask.h:747:36: note: in expansion of macro ‘for_each_cpu’ #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) ^~~~~~~~~~~~ ./include/linux/vmstat.h:199:2: note: in expansion of macro ‘for_each_online_cpu’ for_each_online_cpu(cpu) ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘node_page_state_snapshot’: ./include/linux/cpumask.h:212:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] (cpu) < nr_cpu_ids;) ^ ./include/linux/cpumask.h:747:36: note: in expansion of macro ‘for_each_cpu’ #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) ^~~~~~~~~~~~ ./include/linux/vmstat.h:215:2: note: in expansion of macro ‘for_each_online_cpu’ for_each_online_cpu(cpu) ^~~~~~~~~~~~~~~~~~~ /var/lib/dkms/nvidia-304/304.137/build/nv-drm.c: In function ‘nv_drm_init’: /var/lib/dkms/nvidia-304/304.137/build/nv-drm.c:124:11: error: implicit declaration of function ‘drm_pci_init’; did you mean ‘drm_dev_init’? [-Werror=implicit-function-declaration] ret = drm_pci_init(&nv_drm_driver, pci_driver); ^~~~~~~~~~~~ drm_dev_init /var/lib/dkms/nvidia-304/304.137/build/nv-drm.c: In function ‘nv_drm_exit’: /var/lib/dkms/nvidia-304/304.137/build/nv-drm.c:134:5: error: implicit declaration of function ‘drm_pci_exit’; did you mean ‘drm_pci_free’? [-Werror=implicit-function-declaration] drm_pci_exit(&nv_drm_driver, pci_driver); ^~~~~~~~~~~~ drm_pci_free cc1: some warnings being treated as errors scripts/Makefile.build:313: recipe for target '/var/lib/dkms/nvidia-304/304.137/build/nv-drm.o' failed make[3]: *** [/var/lib/dkms/nvidia-304/304.137/build/nv-drm.o] Error 1 Makefile:1536: recipe for target '_module_/var/lib/dkms/nvidia-304/304.137/build' failed make[2]: *** [_module_/var/lib/dkms/nvidia-304/304.137/build] Error 2 NVIDIA: left KBUILD. nvidia.ko failed to build! Makefile:261: recipe for target 'module' failed make[1]: *** [module] Error 1 makefile:59: recipe for target 'module' failed make: *** [module] Error 2