You are not logged in.

#1 2017-04-11 23:37:28

GNUGradyn
Member
Registered: 2017-04-11
Posts: 27

[SOLVED] ERROR: Unable to build the NVIDIA kernel module.

I have done lots of installing and uninstalling of the nvidia package and nvidia-utils package trying to get the official drivers to work. I eventually decided to intall it via the NVIDIA website. However, I keep getting:

License accepted.
Installing NVIDIA driver version 340.102.
Performing CC sanity check with CC="/usr/bin/cc".
Kernel source path: '/lib/modules/4.10.8-1-ARCH/build'
Kernel output path: '/lib/modules/4.10.8-1-ARCH/build'
Performing rivafb check.
Performing nvidiafb check.
Performing Xen check.
Performing PREEMPT_RT check.
Cleaning kernel module build directory.
Building NVIDIA kernel module:
  Building: [##############################] 100%

ERROR: Unable to build the NVIDIA kernel module.


ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing
       installation problems in the README available on the Linux driver download page at www.nvidia.com. 

Content of /var/log/nvidia-installer.log:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Tue Apr 11 17:28:57 2017
installer version: 340.102

PATH: /usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl

nvidia-installer command line:
    ./nvidia-installer

Unable to load: nvidia-installer ncurses v6 user interface

Unable to load: nvidia-installer ncurses user interface

Using built-in stream user interface
-> License accepted.
-> Installing NVIDIA driver version 340.102.
-> Performing CC sanity check with CC="/usr/bin/cc".
-> Kernel source path: '/lib/modules/4.10.8-1-ARCH/build'
-> Kernel output path: '/lib/modules/4.10.8-1-ARCH/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Performing PREEMPT_RT check.
-> Cleaning kernel module build directory.
   executing: 'cd ./kernel; /usr/bin/make clean'...
-> Building NVIDIA kernel module:
   executing: 'cd ./kernel; /usr/bin/make module SYSSRC=/lib/modules/4.10.8-1-ARCH/build SYSOUT=/lib/modules/4.10.8-1-ARCH/build NV_BUILD_MODULE_INSTANCES='...
   NVIDIA: calling KBUILD...
   make[1]: Entering directory '/usr/lib/modules/4.10.8-1-ARCH/build'
   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 /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/.tmp_versions ; rm -f /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/.tmp_versions/*
   /usr/bin/make -f ./scripts/Makefile.build obj=/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel
     cc -Wp,-MD,/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/.nv.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./incl
   ude/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -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_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -m
   fentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\"  -DMODULE  -DKBUILD_BASENAME='"nv"'  -DKBUILD_MODNAME='"nvidia"' -c -o /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/.tmp_nv.o /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv.c
   In file included from ./include/uapi/linux/stddef.h:1:0,
                    from ./include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from ./include/uapi/linux/types.h:13,
                    from ./include/linux/types.h:5,
                    from ./include/uapi/linux/capability.h:16,
                    from ./include/linux/capability.h:15,
                    from ./include/linux/sched.h:15,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv.c:13:
   ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’:
   ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
              cnts, cnts | _QW_LOCKED) == cnts);
                                       ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   ./include/linux/mmzone.h: In function ‘next_zones_zonelist’:
   ./include/linux/mmzone.h:965:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx))
                                               ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   In file included from ./arch/x86/include/asm/preempt.h:5:0,
                    from ./include/linux/preempt.h:59,
                    from ./include/linux/spinlock.h:50,
                    from ./include/linux/seqlock.h:35,
                    from ./include/linux/time.h:5,
                    from ./include/uapi/linux/timex.h:56,
                    from ./include/linux/timex.h:56,
                    from ./include/linux/sched.h:19,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv.c:13:
   ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_1(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_2(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_4(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_8(pcp, val)   percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   In file included from ./include/uapi/linux/stddef.h:1:0,
                    from ./include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from ./include/uapi/linux/types.h:13,
                    from ./include/linux/types.h:5,
                    from ./include/uapi/linux/capability.h:16,
                    from ./include/linux/capability.h:15,
                    from ./include/linux/sched.h:15,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv.c:13:
   ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
   ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
   ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
     if [ "-pg" = "-pg" ]; then if [ /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv.o"; fi; fi;
     cc -Wp,-MD,/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/.nv-acpi.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone
    -mcmodel=kernel -funit-at-a-time -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_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel -Wall -MD -Wsign-comp
   are -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\"  -DMODULE  -DKBUILD_BASENAME='"nv_acpi"'  -DKBUILD_MODNAME='"nvidia"' -c -o /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/.tmp_nv-acpi.o /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-acpi.c
   In file included from ./include/uapi/linux/stddef.h:1:0,
                    from ./include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from ./include/uapi/linux/types.h:13,
                    from ./include/linux/types.h:5,
                    from ./include/uapi/linux/capability.h:16,
                    from ./include/linux/capability.h:15,
                    from ./include/linux/sched.h:15,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-acpi.c:15:
   ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’:
   ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
              cnts, cnts | _QW_LOCKED) == cnts);
                                       ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   ./include/linux/mmzone.h: In function ‘next_zones_zonelist’:
   ./include/linux/mmzone.h:965:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx))
                                               ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   In file included from ./arch/x86/include/asm/preempt.h:5:0,
                    from ./include/linux/preempt.h:59,
                    from ./include/linux/spinlock.h:50,
                    from ./include/linux/seqlock.h:35,
                    from ./include/linux/time.h:5,
                    from ./include/uapi/linux/timex.h:56,
                    from ./include/linux/timex.h:56,
                    from ./include/linux/sched.h:19,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-acpi.c:15:
   ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_1(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_2(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_4(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_8(pcp, val)   percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   In file included from ./include/uapi/linux/stddef.h:1:0,
                    from ./include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from ./include/uapi/linux/types.h:13,
                    from ./include/linux/types.h:5,
                    from ./include/uapi/linux/capability.h:16,
                    from ./include/linux/capability.h:15,
                    from ./include/linux/sched.h:15,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-acpi.c:15:
   ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
   ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
   ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
     if [ "-pg" = "-pg" ]; then if [ /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-acpi.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-acpi.o"; fi; fi;
     cc -Wp,-MD,/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/.nv-chrdev.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -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_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchron
   ous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\"  -DMODULE  -DKBUILD_BASENAME='"nv_chrdev"'  -DKBUILD_MODNAME='"nvidia"' -c -o /tmp/selfgz1198/NVIDIA-Linux-x8
   6_64-340.102/kernel/.tmp_nv-chrdev.o /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-chrdev.c
   In file included from ./include/uapi/linux/stddef.h:1:0,
                    from ./include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from ./include/uapi/linux/types.h:13,
                    from ./include/linux/types.h:5,
                    from ./include/uapi/linux/capability.h:16,
                    from ./include/linux/capability.h:15,
                    from ./include/linux/sched.h:15,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-chrdev.c:15:
   ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’:
   ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
              cnts, cnts | _QW_LOCKED) == cnts);
                                       ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   ./include/linux/mmzone.h: In function ‘next_zones_zonelist’:
   ./include/linux/mmzone.h:965:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx))
                                               ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   In file included from ./arch/x86/include/asm/preempt.h:5:0,
                    from ./include/linux/preempt.h:59,
                    from ./include/linux/spinlock.h:50,
                    from ./include/linux/seqlock.h:35,
                    from ./include/linux/time.h:5,
                    from ./include/uapi/linux/timex.h:56,
                    from ./include/linux/timex.h:56,
                    from ./include/linux/sched.h:19,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-chrdev.c:15:
   ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_1(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_2(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_4(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_8(pcp, val)   percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   In file included from ./include/uapi/linux/stddef.h:1:0,
                    from ./include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from ./include/uapi/linux/types.h:13,
                    from ./include/linux/types.h:5,
                    from ./include/uapi/linux/capability.h:16,
                    from ./include/linux/capability.h:15,
                    from ./include/linux/sched.h:15,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-chrdev.c:15:
   ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
   ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
   ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
     if [ "-pg" = "-pg" ]; then if [ /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-chrdev.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-chrdev.o"; fi; fi;
     cc -Wp,-MD,/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/.nv-cray.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KER
   NEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -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_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -W
   declaration-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/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\"  -DMODULE  -DKBUILD_BASENAME='"nv_cray"'  -DKBUILD_MODNAME='"nvidia"' -c -o /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/.tmp_nv-cray.o /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-cray.c
   In file included from ./include/uapi/linux/stddef.h:1:0,
                    from ./include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from ./include/uapi/linux/types.h:13,
                    from ./include/linux/types.h:5,
                    from ./include/uapi/linux/capability.h:16,
                    from ./include/linux/capability.h:15,
                    from ./include/linux/sched.h:15,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-cray.c:15:
   ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’:
   ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
              cnts, cnts | _QW_LOCKED) == cnts);
                                       ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   ./include/linux/mmzone.h: In function ‘next_zones_zonelist’:
   ./include/linux/mmzone.h:965:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx))
                                               ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   In file included from ./arch/x86/include/asm/preempt.h:5:0,
                    from ./include/linux/preempt.h:59,
                    from ./include/linux/spinlock.h:50,
                    from ./include/linux/seqlock.h:35,
                    from ./include/linux/time.h:5,
                    from ./include/uapi/linux/timex.h:56,
                    from ./include/linux/timex.h:56,
                    from ./include/linux/sched.h:19,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-cray.c:15:
   ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_1(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_2(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_4(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_8(pcp, val)   percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   In file included from ./include/uapi/linux/stddef.h:1:0,
                    from ./include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from ./include/uapi/linux/types.h:13,
                    from ./include/linux/types.h:5,
                    from ./include/uapi/linux/capability.h:16,
                    from ./include/linux/capability.h:15,
                    from ./include/linux/sched.h:15,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-cray.c:15:
   ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
   ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
   ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
     if [ "-pg" = "-pg" ]; then if [ /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-cray.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-cray.o"; fi; fi;
     cc -Wp,-MD,/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/.nv-dma.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -
   mno-red-zone -mcmodel=kernel -funit-at-a-time -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_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel -Wall -MD
    -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\"  -DMODULE  -DKBUILD_BASENAME='"nv_dma"'  -DKBUILD_MODNAME='"nvidia"' -c -o /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/.tmp_nv-dma.o /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-dma.c
   In file included from ./include/uapi/linux/stddef.h:1:0,
                    from ./include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from ./include/uapi/linux/types.h:13,
                    from ./include/linux/types.h:5,
                    from ./include/uapi/linux/capability.h:16,
                    from ./include/linux/capability.h:15,
                    from ./include/linux/sched.h:15,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-dma.c:15:
   ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’:
   ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
              cnts, cnts | _QW_LOCKED) == cnts);
                                       ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   ./include/linux/mmzone.h: In function ‘next_zones_zonelist’:
   ./include/linux/mmzone.h:965:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx))
                                               ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   In file included from ./arch/x86/include/asm/preempt.h:5:0,
                    from ./include/linux/preempt.h:59,
                    from ./include/linux/spinlock.h:50,
                    from ./include/linux/seqlock.h:35,
                    from ./include/linux/time.h:5,
                    from ./include/uapi/linux/timex.h:56,
                    from ./include/linux/timex.h:56,
                    from ./include/linux/sched.h:19,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-dma.c:15:
   ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_1(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_2(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_4(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_8(pcp, val)   percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   In file included from ./include/uapi/linux/stddef.h:1:0,
                    from ./include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from ./include/uapi/linux/types.h:13,
                    from ./include/linux/types.h:5,
                    from ./include/uapi/linux/capability.h:16,
                    from ./include/linux/capability.h:15,
                    from ./include/linux/sched.h:15,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-dma.c:15:
   ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
   ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
   ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
     if [ "-pg" = "-pg" ]; then if [ /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-dma.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-dma.o"; fi; fi;
     cc -Wp,-MD,/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/.nv-drm.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -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_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchro
   nous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\"  -DMODULE  -DKBUILD_BASENAME='"nv_drm"'  -DKBUILD_MODNAME='"nvidia"' -c -o /tmp/selfgz1198/NVIDIA-Linux-x86_
   64-340.102/kernel/.tmp_nv-drm.o /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-drm.c
   In file included from ./include/uapi/linux/stddef.h:1:0,
                    from ./include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from ./include/uapi/linux/types.h:13,
                    from ./include/linux/types.h:5,
                    from ./include/uapi/linux/capability.h:16,
                    from ./include/linux/capability.h:15,
                    from ./include/linux/sched.h:15,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-drm.c:15:
   ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’:
   ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
              cnts, cnts | _QW_LOCKED) == cnts);
                                       ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   ./include/linux/mmzone.h: In function ‘next_zones_zonelist’:
   ./include/linux/mmzone.h:965:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx))
                                               ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   In file included from ./arch/x86/include/asm/preempt.h:5:0,
                    from ./include/linux/preempt.h:59,
                    from ./include/linux/spinlock.h:50,
                    from ./include/linux/seqlock.h:35,
                    from ./include/linux/time.h:5,
                    from ./include/uapi/linux/timex.h:56,
                    from ./include/linux/timex.h:56,
                    from ./include/linux/sched.h:19,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-drm.c:15:
   ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_1(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_2(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_4(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_8(pcp, val)   percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   In file included from ./include/uapi/linux/stddef.h:1:0,
                    from ./include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from ./include/uapi/linux/types.h:13,
                    from ./include/linux/types.h:5,
                    from ./include/uapi/linux/capability.h:16,
                    from ./include/linux/capability.h:15,
                    from ./include/linux/sched.h:15,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-drm.c:15:
   ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
   ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
   ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
     if [ "-pg" = "-pg" ]; then if [ /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-drm.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-drm.o"; fi; fi;
     cc -Wp,-MD,/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/.nv-gvi.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wst
   rict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -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_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statem
   ent -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/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\"  -DMODULE  -DKBUILD_BASENAME='"nv_gvi"'  -DKBUILD_MODNAME='"nvidia"' -c -o /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/.tmp_nv-gvi.o /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-gvi.c
   In file included from ./include/uapi/linux/stddef.h:1:0,
                    from ./include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from ./include/uapi/linux/types.h:13,
                    from ./include/linux/types.h:5,
                    from ./include/uapi/linux/capability.h:16,
                    from ./include/linux/capability.h:15,
                    from ./include/linux/sched.h:15,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-gvi.c:15:
   ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’:
   ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
              cnts, cnts | _QW_LOCKED) == cnts);
                                       ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   ./include/linux/mmzone.h: In function ‘next_zones_zonelist’:
   ./include/linux/mmzone.h:965:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx))
                                               ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   In file included from ./arch/x86/include/asm/preempt.h:5:0,
                    from ./include/linux/preempt.h:59,
                    from ./include/linux/spinlock.h:50,
                    from ./include/linux/seqlock.h:35,
                    from ./include/linux/time.h:5,
                    from ./include/uapi/linux/timex.h:56,
                    from ./include/linux/timex.h:56,
                    from ./include/linux/sched.h:19,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-gvi.c:15:
   ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_1(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_2(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_4(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_8(pcp, val)   percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   In file included from ./include/uapi/linux/stddef.h:1:0,
                    from ./include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from ./include/uapi/linux/types.h:13,
                    from ./include/linux/types.h:5,
                    from ./include/uapi/linux/capability.h:16,
                    from ./include/linux/capability.h:15,
                    from ./include/linux/sched.h:15,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-gvi.c:15:
   ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
   ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
   ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
     if [ "-pg" = "-pg" ]; then if [ /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-gvi.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-gvi.o"; fi; fi;
     cc -Wp,-MD,/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/.nv-i2c.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -fu
   nit-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_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -
   Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\"  -DMODULE  -DKBUILD_BASENAME='"nv_i2c"'  -DKBUILD_MODNAME='"nvidia"' -c -o /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/.tmp_nv-i2c.o /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-i2c.c
   In file included from ./include/uapi/linux/stddef.h:1:0,
                    from ./include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from ./include/uapi/linux/types.h:13,
                    from ./include/linux/types.h:5,
                    from ./include/uapi/linux/capability.h:16,
                    from ./include/linux/capability.h:15,
                    from ./include/linux/sched.h:15,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-i2c.c:15:
   ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’:
   ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
              cnts, cnts | _QW_LOCKED) == cnts);
                                       ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   ./include/linux/mmzone.h: In function ‘next_zones_zonelist’:
   ./include/linux/mmzone.h:965:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx))
                                               ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   In file included from ./arch/x86/include/asm/preempt.h:5:0,
                    from ./include/linux/preempt.h:59,
                    from ./include/linux/spinlock.h:50,
                    from ./include/linux/seqlock.h:35,
                    from ./include/linux/time.h:5,
                    from ./include/uapi/linux/timex.h:56,
                    from ./include/linux/timex.h:56,
                    from ./include/linux/sched.h:19,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-i2c.c:15:
   ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_1(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_2(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_4(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_8(pcp, val)   percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   In file included from ./include/uapi/linux/stddef.h:1:0,
                    from ./include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from ./include/uapi/linux/types.h:13,
                    from ./include/linux/types.h:5,
                    from ./include/uapi/linux/capability.h:16,
                    from ./include/linux/capability.h:15,
                    from ./include/linux/sched.h:15,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-i2c.c:15:
   ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
   ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
   ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
     if [ "-pg" = "-pg" ]; then if [ /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-i2c.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-i2c.o"; fi; fi;
     cc -Wp,-MD,/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/.nv-mempool.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -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_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-dele
   te-null-pointer-checks -Wno-frame-address -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\"  -DMODULE  -DKBUILD_BASENAME='"nv_mempool"'  -DKBUILD_MODNAME='"nvidia"' -c -o /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/.tmp_n
   v-mempool.o /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-mempool.c
   In file included from ./include/uapi/linux/stddef.h:1:0,
                    from ./include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from ./include/uapi/linux/types.h:13,
                    from ./include/linux/types.h:5,
                    from ./include/uapi/linux/capability.h:16,
                    from ./include/linux/capability.h:15,
                    from ./include/linux/sched.h:15,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-mempool.c:15:
   ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’:
   ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
              cnts, cnts | _QW_LOCKED) == cnts);
                                       ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   ./include/linux/mmzone.h: In function ‘next_zones_zonelist’:
   ./include/linux/mmzone.h:965:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx))
                                               ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   In file included from ./arch/x86/include/asm/preempt.h:5:0,
                    from ./include/linux/preempt.h:59,
                    from ./include/linux/spinlock.h:50,
                    from ./include/linux/seqlock.h:35,
                    from ./include/linux/time.h:5,
                    from ./include/uapi/linux/timex.h:56,
                    from ./include/linux/timex.h:56,
                    from ./include/linux/sched.h:19,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-mempool.c:15:
   ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_1(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_2(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_4(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_8(pcp, val)   percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   In file included from ./include/uapi/linux/stddef.h:1:0,
                    from ./include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from ./include/uapi/linux/types.h:13,
                    from ./include/linux/types.h:5,
                    from ./include/uapi/linux/capability.h:16,
                    from ./include/linux/capability.h:15,
                    from ./include/linux/sched.h:15,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-mempool.c:15:
   ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
   ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
   ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
     if [ "-pg" = "-pg" ]; then if [ /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-mempool.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-mempool.o"; fi; fi;
     cc -Wp,-MD,/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/.nv-mmap.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef
    -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -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_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-s
   tatement -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/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\"  -DMODULE  -DKBUILD_BASENAME='"nv_mmap"'  -DKBUILD_MODNAME='"nvidia"' -c -o /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/.tmp_nv-mmap.o /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-mmap.c
   In file included from ./include/uapi/linux/stddef.h:1:0,
                    from ./include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from ./include/uapi/linux/types.h:13,
                    from ./include/linux/types.h:5,
                    from ./include/uapi/linux/capability.h:16,
                    from ./include/linux/capability.h:15,
                    from ./include/linux/sched.h:15,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-mmap.c:15:
   ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’:
   ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
              cnts, cnts | _QW_LOCKED) == cnts);
                                       ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   ./include/linux/mmzone.h: In function ‘next_zones_zonelist’:
   ./include/linux/mmzone.h:965:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx))
                                               ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   In file included from ./arch/x86/include/asm/preempt.h:5:0,
                    from ./include/linux/preempt.h:59,
                    from ./include/linux/spinlock.h:50,
                    from ./include/linux/seqlock.h:35,
                    from ./include/linux/time.h:5,
                    from ./include/uapi/linux/timex.h:56,
                    from ./include/linux/timex.h:56,
                    from ./include/linux/sched.h:19,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-mmap.c:15:
   ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_1(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_2(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_4(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_8(pcp, val)   percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   In file included from ./include/uapi/linux/stddef.h:1:0,
                    from ./include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from ./include/uapi/linux/types.h:13,
                    from ./include/linux/types.h:5,
                    from ./include/uapi/linux/capability.h:16,
                    from ./include/linux/capability.h:15,
                    from ./include/linux/sched.h:15,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-mmap.c:15:
   ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
   ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
   ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
     if [ "-pg" = "-pg" ]; then if [ /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-mmap.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-mmap.o"; fi; fi;
     cc -Wp,-MD,/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/.nv-p2p.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmod
   el=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_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel -Wall -MD -Wsign-compare -Wn
   o-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\"  -DMODULE  -DKBUILD_BASENAME='"nv_p2p"'  -DKBUILD_MODNAME='"nvidia"' -c -o /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/.tmp_nv-p2p.o /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-p2p.c
   In file included from ./include/uapi/linux/stddef.h:1:0,
                    from ./include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from ./include/uapi/linux/types.h:13,
                    from ./include/linux/types.h:5,
                    from ./include/uapi/linux/capability.h:16,
                    from ./include/linux/capability.h:15,
                    from ./include/linux/sched.h:15,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-p2p.c:15:
   ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’:
   ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
              cnts, cnts | _QW_LOCKED) == cnts);
                                       ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   ./include/linux/mmzone.h: In function ‘next_zones_zonelist’:
   ./include/linux/mmzone.h:965:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx))
                                               ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   In file included from ./arch/x86/include/asm/preempt.h:5:0,
                    from ./include/linux/preempt.h:59,
                    from ./include/linux/spinlock.h:50,
                    from ./include/linux/seqlock.h:35,
                    from ./include/linux/time.h:5,
                    from ./include/uapi/linux/timex.h:56,
                    from ./include/linux/timex.h:56,
                    from ./include/linux/sched.h:19,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-p2p.c:15:
   ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_1(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_2(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_4(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_8(pcp, val)   percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   In file included from ./include/uapi/linux/stddef.h:1:0,
                    from ./include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from ./include/uapi/linux/types.h:13,
                    from ./include/linux/types.h:5,
                    from ./include/uapi/linux/capability.h:16,
                    from ./include/linux/capability.h:15,
                    from ./include/linux/sched.h:15,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-p2p.c:15:
   ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
   ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
   ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
     if [ "-pg" = "-pg" ]; then if [ /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-p2p.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-p2p.o"; fi; fi;
     cc -Wp,-MD,/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/.nv-pat.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -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_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables 
   -fno-delete-null-pointer-checks -Wno-frame-address -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\"  -DMODULE  -DKBUILD_BASENAME='"nv_pat"'  -DKBUILD_MODNAME='"nvidia"' -c -o /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/.
   tmp_nv-pat.o /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-pat.c
   In file included from ./include/uapi/linux/stddef.h:1:0,
                    from ./include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from ./include/uapi/linux/types.h:13,
                    from ./include/linux/types.h:5,
                    from ./include/uapi/linux/capability.h:16,
                    from ./include/linux/capability.h:15,
                    from ./include/linux/sched.h:15,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-pat.c:15:
   ./include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’:
   ./include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
              cnts, cnts | _QW_LOCKED) == cnts);
                                       ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   ./include/linux/mmzone.h: In function ‘next_zones_zonelist’:
   ./include/linux/mmzone.h:965:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx))
                                               ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   In file included from ./arch/x86/include/asm/preempt.h:5:0,
                    from ./include/linux/preempt.h:59,
                    from ./include/linux/spinlock.h:50,
                    from ./include/linux/seqlock.h:35,
                    from ./include/linux/time.h:5,
                    from ./include/uapi/linux/timex.h:56,
                    from ./include/linux/timex.h:56,
                    from ./include/linux/sched.h:19,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-pat.c:15:
   ./include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^~~~~~~~~~~~
   ./include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’:
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_1(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_2(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_4(pcp, val)  percpu_add_op((pcp), val)
                                     ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   ./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   ./arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_8(pcp, val)   percpu_add_op((pcp), val)
                                      ^~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^~~~
   ./include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^~~~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^~~~~~~~~~~
   ./include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^~~~~~~~~~~~~~
   ./include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^~~~~~~~~~~~~~
   ./include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^~~~~~~~~~~~~~
   In file included from ./include/uapi/linux/stddef.h:1:0,
                    from ./include/linux/stddef.h:4,
                    from ./include/uapi/linux/posix_types.h:4,
                    from ./include/uapi/linux/types.h:13,
                    from ./include/linux/types.h:5,
                    from ./include/uapi/linux/capability.h:16,
                    from ./include/linux/capability.h:15,
                    from ./include/linux/sched.h:15,
                    from ./include/linux/utsname.h:5,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-pat.c:15:
   ./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
   ./arch/x86/include/asm/uaccess.h:700:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   ./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
   ./arch/x86/include/asm/uaccess.h:720:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   ./include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-pat.c: In function ‘nvidia_cpu_callback’:
   /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-pat.c:213:14: error: ‘CPU_DOWN_FAILED’ undeclared (first use in this function)
            case CPU_DOWN_FAILED:
                 ^~~~~~~~~~~~~~~
   /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-pat.c:213:14: note: each undeclared identifier is reported only once for each function it appears in
   /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-pat.c:220:14: error: ‘CPU_DOWN_PREPARE’ undeclared (first use in this function)
            case CPU_DOWN_PREPARE:
                 ^~~~~~~~~~~~~~~~
   In file included from /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-pat.c:15:0:
   /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-pat.c: In function ‘nv_init_pat_support’:
   /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:368:34: error: implicit declaration of function ‘register_cpu_notifier’ [-Werror=implicit-function-declaration]
    #define register_hotcpu_notifier register_cpu_notifier
                                     ^
   /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-pat.c:258:17: note: in expansion of macro ‘register_hotcpu_notifier’
                if (register_hotcpu_notifier(&nv_hotcpu_nfb) != 0)
                    ^~~~~~~~~~~~~~~~~~~~~~~~
   /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-pat.c: In function ‘nv_teardown_pat_support’:
   /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:365:36: error: implicit declaration of function ‘unregister_cpu_notifier’ [-Werror=implicit-function-declaration]
    #define unregister_hotcpu_notifier unregister_cpu_notifier
                                       ^
   /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-pat.c:283:9: note: in expansion of macro ‘unregister_hotcpu_notifier’
            unregister_hotcpu_notifier(&nv_hotcpu_nfb);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
   make[2]: *** [scripts/Makefile.build:295: /tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel/nv-pat.o] Error 1
   make[1]: *** [Makefile:1490: _module_/tmp/selfgz1198/NVIDIA-Linux-x86_64-340.102/kernel] Error 2
   make[1]: Leaving directory '/usr/lib/modules/4.10.8-1-ARCH/build'
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   make: *** [Makefile:185: nvidia.ko] Error 1
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

Last edited by GNUGradyn (2017-04-12 16:24:26)

Offline

#2 2017-04-11 23:47:34

loqs
Member
Registered: 2014-03-06
Posts: 17,884

Re: [SOLVED] ERROR: Unable to build the NVIDIA kernel module.

Welcome to the arch linux forums GNUGradyn.
You appear to be ignoring this warning from NVIDIA

Warning: Avoid installing the NVIDIA driver through the package provided from the NVIDIA website. Installation through pacman allows upgrading the driver together with the rest of the system.

Offline

#3 2017-04-12 03:02:50

GNUGradyn
Member
Registered: 2017-04-11
Posts: 27

Re: [SOLVED] ERROR: Unable to build the NVIDIA kernel module.

Thank you. I ran sudo pacman -S nvidia, and it deffinantly did not work.
Only 1 monitor works
NVIDIA control panel is not installed
I can't do anything directly related to the video card (like GPU cyclone rendering)

Offline

#4 2017-04-12 03:38:20

GNUGradyn
Member
Registered: 2017-04-11
Posts: 27

Re: [SOLVED] ERROR: Unable to build the NVIDIA kernel module.

EDIT: Figured it out, I have to use a legacy driver (nvidia-340xx) with my card. Not sure how to close this thread, but everything is working as expected now

Offline

#5 2017-04-12 05:42:53

olegabrielz
Member
From: Norway
Registered: 2015-12-23
Posts: 255

Re: [SOLVED] ERROR: Unable to build the NVIDIA kernel module.

Hi there GNUGradyn

If you want to close the thread use the report button and ask the moderators to do so. But you don't have to do that. The normal thing to do when you've got your issue resolved is to edit your opening post and add [SOLVED] to the beginning of the title.


Be aware of my Newbie Powers

Offline

Board footer

Powered by FluxBB