Skip to content

Instantly share code, notes, and snippets.

/stdin
Created May 19, 2016

Embed
What would you like to do?
stdin
 * Package: x11-drivers/nvidia-drivers-340.96-r5
 * Repository: gentoo
 * Maintainer: jer@gentoo.org hardened@gentoo.org
 * USE: X abi_x86_64 acpi amd64 elibc_glibc kernel_linux multilib tools userland_GNU uvm
 * FEATURES: preserve-libs sandbox userpriv usersandbox
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/4.6.0-gentoo/build
* Found sources for kernel version:
* 4.6.0-gentoo
>>> Unpacking source...
>>> Unpacking NVIDIA-Linux-x86_64-340.96.run to /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work
>>> Unpacking nvidia-settings-340.96.tar.bz2 to /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work
>>> Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work
>>> Preparing source in /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work ...
* Preparing nvidia module
make -j1 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' ARCH=x86_64 IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/4.6.0-gentoo/build CC=x86_64-pc-linux-gnu-gcc clean module
NVIDIA: calling KBUILD...
make[1]: Entering directory '/usr/src/linux-4.6.0-gentoo'
make -C /lib/modules/4.6.0-gentoo/build KBUILD_SRC=/usr/src/linux-4.6.0-gentoo \
-f /usr/src/linux-4.6.0-gentoo/Makefile modules
make[2]: Entering directory '/usr/src/linux-4.6.0-gentoo'
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/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/.tmp_versions ; rm -f /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/.tmp_versions/*
make -f /usr/src/linux-4.6.0-gentoo/scripts/Makefile.build obj=/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel
x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/.nv.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include -I/usr/src/linux-4.6.0-gentoo/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.6.0-gentoo/include -Iinclude -I/usr/src/linux-4.6.0-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.6.0-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.6.0-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -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_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.96\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv.o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv.c
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv.c:13:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h: In function β€˜queued_write_trylock’:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h:93:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
In file included from /usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/preempt.h:5:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/preempt.h:59,
from /usr/src/linux-4.6.0-gentoo/include/linux/spinlock.h:50,
from /usr/src/linux-4.6.0-gentoo/include/linux/seqlock.h:35,
from /usr/src/linux-4.6.0-gentoo/include/linux/time.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:19,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv.c:13:
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_get_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_put_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv.c:13:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_from_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:742:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_to_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:760:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/.nv-acpi.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include -I/usr/src/linux-4.6.0-gentoo/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.6.0-gentoo/include -Iinclude -I/usr/src/linux-4.6.0-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.6.0-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.6.0-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -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_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.96\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_acpi)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-acpi.o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-acpi.c
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-acpi.c:15:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h: In function β€˜queued_write_trylock’:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h:93:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
In file included from /usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/preempt.h:5:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/preempt.h:59,
from /usr/src/linux-4.6.0-gentoo/include/linux/spinlock.h:50,
from /usr/src/linux-4.6.0-gentoo/include/linux/seqlock.h:35,
from /usr/src/linux-4.6.0-gentoo/include/linux/time.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:19,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-acpi.c:15:
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_get_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_put_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-acpi.c:15:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_from_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:742:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_to_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:760:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/.nv-chrdev.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include -I/usr/src/linux-4.6.0-gentoo/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.6.0-gentoo/include -Iinclude -I/usr/src/linux-4.6.0-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.6.0-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.6.0-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -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_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.96\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_chrdev)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-chrdev.o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-chrdev.c
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-chrdev.c:15:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h: In function β€˜queued_write_trylock’:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h:93:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
In file included from /usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/preempt.h:5:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/preempt.h:59,
from /usr/src/linux-4.6.0-gentoo/include/linux/spinlock.h:50,
from /usr/src/linux-4.6.0-gentoo/include/linux/seqlock.h:35,
from /usr/src/linux-4.6.0-gentoo/include/linux/time.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:19,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-chrdev.c:15:
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_get_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_put_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-chrdev.c:15:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_from_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:742:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_to_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:760:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/.nv-cray.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include -I/usr/src/linux-4.6.0-gentoo/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.6.0-gentoo/include -Iinclude -I/usr/src/linux-4.6.0-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.6.0-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.6.0-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -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_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.96\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_cray)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-cray.o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-cray.c
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-cray.c:15:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h: In function β€˜queued_write_trylock’:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h:93:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
In file included from /usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/preempt.h:5:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/preempt.h:59,
from /usr/src/linux-4.6.0-gentoo/include/linux/spinlock.h:50,
from /usr/src/linux-4.6.0-gentoo/include/linux/seqlock.h:35,
from /usr/src/linux-4.6.0-gentoo/include/linux/time.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:19,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-cray.c:15:
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_get_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_put_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-cray.c:15:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_from_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:742:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_to_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:760:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/.nv-dma.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include -I/usr/src/linux-4.6.0-gentoo/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.6.0-gentoo/include -Iinclude -I/usr/src/linux-4.6.0-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.6.0-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.6.0-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -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_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.96\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_dma)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-dma.o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-dma.c
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-dma.c:15:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h: In function β€˜queued_write_trylock’:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h:93:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
In file included from /usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/preempt.h:5:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/preempt.h:59,
from /usr/src/linux-4.6.0-gentoo/include/linux/spinlock.h:50,
from /usr/src/linux-4.6.0-gentoo/include/linux/seqlock.h:35,
from /usr/src/linux-4.6.0-gentoo/include/linux/time.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:19,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-dma.c:15:
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_get_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_put_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-dma.c:15:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_from_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:742:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_to_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:760:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/.nv-drm.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include -I/usr/src/linux-4.6.0-gentoo/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.6.0-gentoo/include -Iinclude -I/usr/src/linux-4.6.0-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.6.0-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.6.0-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -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_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.96\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_drm)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-drm.o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-drm.c
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-drm.c:15:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h: In function β€˜queued_write_trylock’:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h:93:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
In file included from /usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/preempt.h:5:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/preempt.h:59,
from /usr/src/linux-4.6.0-gentoo/include/linux/spinlock.h:50,
from /usr/src/linux-4.6.0-gentoo/include/linux/seqlock.h:35,
from /usr/src/linux-4.6.0-gentoo/include/linux/time.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:19,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-drm.c:15:
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_get_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_put_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-drm.c:15:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_from_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:742:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_to_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:760:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/.nv-gvi.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include -I/usr/src/linux-4.6.0-gentoo/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.6.0-gentoo/include -Iinclude -I/usr/src/linux-4.6.0-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.6.0-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.6.0-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -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_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.96\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_gvi)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-gvi.o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-gvi.c
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-gvi.c:15:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h: In function β€˜queued_write_trylock’:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h:93:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
In file included from /usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/preempt.h:5:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/preempt.h:59,
from /usr/src/linux-4.6.0-gentoo/include/linux/spinlock.h:50,
from /usr/src/linux-4.6.0-gentoo/include/linux/seqlock.h:35,
from /usr/src/linux-4.6.0-gentoo/include/linux/time.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:19,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-gvi.c:15:
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_get_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_put_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-gvi.c:15:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_from_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:742:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_to_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:760:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/.nv-i2c.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include -I/usr/src/linux-4.6.0-gentoo/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.6.0-gentoo/include -Iinclude -I/usr/src/linux-4.6.0-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.6.0-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.6.0-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -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_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.96\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_i2c)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-i2c.o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-i2c.c
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-i2c.c:15:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h: In function β€˜queued_write_trylock’:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h:93:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
In file included from /usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/preempt.h:5:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/preempt.h:59,
from /usr/src/linux-4.6.0-gentoo/include/linux/spinlock.h:50,
from /usr/src/linux-4.6.0-gentoo/include/linux/seqlock.h:35,
from /usr/src/linux-4.6.0-gentoo/include/linux/time.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:19,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-i2c.c:15:
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_get_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_put_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-i2c.c:15:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_from_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:742:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_to_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:760:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/.nv-mempool.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include -I/usr/src/linux-4.6.0-gentoo/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.6.0-gentoo/include -Iinclude -I/usr/src/linux-4.6.0-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.6.0-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.6.0-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -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_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.96\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_mempool)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-mempool.o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-mempool.c
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-mempool.c:15:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h: In function β€˜queued_write_trylock’:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h:93:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
In file included from /usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/preempt.h:5:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/preempt.h:59,
from /usr/src/linux-4.6.0-gentoo/include/linux/spinlock.h:50,
from /usr/src/linux-4.6.0-gentoo/include/linux/seqlock.h:35,
from /usr/src/linux-4.6.0-gentoo/include/linux/time.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:19,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-mempool.c:15:
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_get_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_put_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-mempool.c:15:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_from_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:742:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_to_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:760:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/.nv-mmap.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include -I/usr/src/linux-4.6.0-gentoo/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.6.0-gentoo/include -Iinclude -I/usr/src/linux-4.6.0-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.6.0-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.6.0-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -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_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.96\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_mmap)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-mmap.o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-mmap.c
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-mmap.c:15:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h: In function β€˜queued_write_trylock’:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h:93:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
In file included from /usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/preempt.h:5:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/preempt.h:59,
from /usr/src/linux-4.6.0-gentoo/include/linux/spinlock.h:50,
from /usr/src/linux-4.6.0-gentoo/include/linux/seqlock.h:35,
from /usr/src/linux-4.6.0-gentoo/include/linux/time.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:19,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-mmap.c:15:
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_get_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_put_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-mmap.c:15:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_from_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:742:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_to_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:760:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/.nv-p2p.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include -I/usr/src/linux-4.6.0-gentoo/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.6.0-gentoo/include -Iinclude -I/usr/src/linux-4.6.0-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.6.0-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.6.0-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -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_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.96\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_p2p)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-p2p.o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-p2p.c
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-p2p.c:15:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h: In function β€˜queued_write_trylock’:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h:93:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
In file included from /usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/preempt.h:5:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/preempt.h:59,
from /usr/src/linux-4.6.0-gentoo/include/linux/spinlock.h:50,
from /usr/src/linux-4.6.0-gentoo/include/linux/seqlock.h:35,
from /usr/src/linux-4.6.0-gentoo/include/linux/time.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:19,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-p2p.c:15:
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_get_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_put_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-p2p.c:15:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_from_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:742:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_to_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:760:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/.nv-pat.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include -I/usr/src/linux-4.6.0-gentoo/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.6.0-gentoo/include -Iinclude -I/usr/src/linux-4.6.0-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.6.0-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.6.0-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -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_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.96\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_pat)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-pat.o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-pat.c
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-pat.c:15:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h: In function β€˜queued_write_trylock’:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h:93:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
In file included from /usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/preempt.h:5:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/preempt.h:59,
from /usr/src/linux-4.6.0-gentoo/include/linux/spinlock.h:50,
from /usr/src/linux-4.6.0-gentoo/include/linux/seqlock.h:35,
from /usr/src/linux-4.6.0-gentoo/include/linux/time.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:19,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-pat.c:15:
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_get_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_put_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-pat.c:15:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_from_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:742:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_to_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:760:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/.nv-procfs.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include -I/usr/src/linux-4.6.0-gentoo/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.6.0-gentoo/include -Iinclude -I/usr/src/linux-4.6.0-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.6.0-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.6.0-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -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_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.96\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_procfs)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-procfs.o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-procfs.c
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-procfs.c:15:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h: In function β€˜queued_write_trylock’:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h:93:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
In file included from /usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/preempt.h:5:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/preempt.h:59,
from /usr/src/linux-4.6.0-gentoo/include/linux/spinlock.h:50,
from /usr/src/linux-4.6.0-gentoo/include/linux/seqlock.h:35,
from /usr/src/linux-4.6.0-gentoo/include/linux/time.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:19,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-procfs.c:15:
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_get_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_put_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-procfs.c:15:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_from_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:742:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_to_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:760:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/.nv-usermap.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include -I/usr/src/linux-4.6.0-gentoo/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.6.0-gentoo/include -Iinclude -I/usr/src/linux-4.6.0-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.6.0-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.6.0-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -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_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.96\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_usermap)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-usermap.o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-usermap.c
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-usermap.c:15:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h: In function β€˜queued_write_trylock’:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h:93:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
In file included from /usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/preempt.h:5:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/preempt.h:59,
from /usr/src/linux-4.6.0-gentoo/include/linux/spinlock.h:50,
from /usr/src/linux-4.6.0-gentoo/include/linux/seqlock.h:35,
from /usr/src/linux-4.6.0-gentoo/include/linux/time.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:19,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-usermap.c:15:
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_get_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_put_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-usermap.c:15:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_from_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:742:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_to_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:760:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/.nv-vm.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include -I/usr/src/linux-4.6.0-gentoo/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.6.0-gentoo/include -Iinclude -I/usr/src/linux-4.6.0-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.6.0-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.6.0-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -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_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.96\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_vm)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-vm.o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-vm.c
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-vm.c:14:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h: In function β€˜queued_write_trylock’:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h:93:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
In file included from /usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/preempt.h:5:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/preempt.h:59,
from /usr/src/linux-4.6.0-gentoo/include/linux/spinlock.h:50,
from /usr/src/linux-4.6.0-gentoo/include/linux/seqlock.h:35,
from /usr/src/linux-4.6.0-gentoo/include/linux/time.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:19,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-vm.c:14:
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_get_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_put_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-vm.c:14:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_from_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:742:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_to_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:760:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/.nv-vtophys.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include -I/usr/src/linux-4.6.0-gentoo/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.6.0-gentoo/include -Iinclude -I/usr/src/linux-4.6.0-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.6.0-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.6.0-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -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_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.96\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_vtophys)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-vtophys.o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-vtophys.c
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-vtophys.c:15:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h: In function β€˜queued_write_trylock’:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h:93:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
In file included from /usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/preempt.h:5:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/preempt.h:59,
from /usr/src/linux-4.6.0-gentoo/include/linux/spinlock.h:50,
from /usr/src/linux-4.6.0-gentoo/include/linux/seqlock.h:35,
from /usr/src/linux-4.6.0-gentoo/include/linux/time.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:19,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-vtophys.c:15:
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_get_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_put_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-vtophys.c:15:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_from_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:742:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_to_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:760:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/.os-interface.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include -I/usr/src/linux-4.6.0-gentoo/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.6.0-gentoo/include -Iinclude -I/usr/src/linux-4.6.0-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.6.0-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.6.0-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -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_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.96\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(os_interface)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/os-interface.o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/os-interface.c
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/os-interface.c:15:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h: In function β€˜queued_write_trylock’:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h:93:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
In file included from /usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/preempt.h:5:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/preempt.h:59,
from /usr/src/linux-4.6.0-gentoo/include/linux/spinlock.h:50,
from /usr/src/linux-4.6.0-gentoo/include/linux/seqlock.h:35,
from /usr/src/linux-4.6.0-gentoo/include/linux/time.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:19,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/os-interface.c:15:
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_get_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_put_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:366:11: note: in expansion of macro β€˜this_cpu_add_4’
case 4: stem##4(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:367:11: note: in expansion of macro β€˜this_cpu_add_8’
case 8: stem##8(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/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))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:276:3: note: in expansion of macro β€˜this_cpu_sub’
this_cpu_sub(*percpu_count, nr);
 ^
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/os-interface.c:15:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_from_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:742:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h: In function β€˜copy_to_user’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/uaccess.h:760:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/.os-mlock.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/include -I/usr/src/linux-4.6.0-gentoo/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.6.0-gentoo/include -Iinclude -I/usr/src/linux-4.6.0-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.6.0-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.6.0-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -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_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.96\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\" -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(os_mlock)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/os-mlock.o /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/os-mlock.c
In file included from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/stddef.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/types.h:13,
from /usr/src/linux-4.6.0-gentoo/include/linux/types.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/capability.h:16,
from /usr/src/linux-4.6.0-gentoo/include/linux/capability.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:15,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/os-mlock.c:15:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h: In function β€˜queued_write_trylock’:
/usr/src/linux-4.6.0-gentoo/include/asm-generic/qrwlock.h:93:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
cnts, cnts | _QW_LOCKED) == cnts);
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/compiler.h:169:40: note: in definition of macro β€˜likely’
# define likely(x) __builtin_expect(!!(x), 1)
 ^
In file included from /usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/preempt.h:5:0,
from /usr/src/linux-4.6.0-gentoo/include/linux/preempt.h:59,
from /usr/src/linux-4.6.0-gentoo/include/linux/spinlock.h:50,
from /usr/src/linux-4.6.0-gentoo/include/linux/seqlock.h:35,
from /usr/src/linux-4.6.0-gentoo/include/linux/time.h:5,
from /usr/src/linux-4.6.0-gentoo/include/uapi/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/timex.h:56,
from /usr/src/linux-4.6.0-gentoo/include/linux/sched.h:19,
from /usr/src/linux-4.6.0-gentoo/include/linux/utsname.h:5,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/nv-linux.h:44,
from /var/tmp/portage/x11-drivers/nvidia-drivers-340.96-r5/work/kernel/os-mlock.c:15:
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h: In function β€˜percpu_ref_get_many’:
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:364:11: note: in expansion of macro β€˜this_cpu_add_1’
case 1: stem##1(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-defs.h:365:11: note: in expansion of macro β€˜this_cpu_add_2’
case 2: stem##2(variable, __VA_ARGS__);break; \
 ^
/usr/src/linux-4.6.0-gentoo/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)
 ^
/usr/src/linux-4.6.0-gentoo/include/linux/percpu-refcount.h:177:3: note: in expansion of macro β€˜this_cpu_add’
this_cpu_add(*percpu_count, nr);
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ? \
 ^
/usr/src/linux-4.6.0-gentoo/arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro β€˜percpu_add_op’