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:

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. 
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.

Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

Adwarrior

Problem installing NVIDIA drivers

Hi there,
I’m a newbie to linux. I’m running Mint 17.2 on an old Pentium 4 2.8Ghz machine with 1Gb of memory. It runs fine, but I wanted to install the Nvidia drivers to run the Quadro FX3000 video card installed. I read all the posts about the problems getting the drivers to run correctly, but I’ve come across a problem I have not yet read about in any of the threads. I’m booting in recovery mode and then going to root shell and installing from there to ensure Xserver isn’t loaded.
I’ve tried the method in this post http://forums.linuxmint.com/viewtopic.p … 20#p847465 to no avail, so I’ve been using this walk through for reference https://www.youtube.com/watch?v=01aieQOYMRk.

My problem is that when it gets to the point «installing kernel module» it fails with the error «Error:unable to build the nvidia kernel module». I have tried several different versions of the driver with the same problem each time. I have the «build essentials» installed.

Here is the bottom part of «Nvidia-installer.log». If you need to see more, let me know!

Any help would be most appreciated

/tmp/selfgz786/NVIDIA-Linux-x86-173.14.38-pkg1/usr/src/nv/nvacpi.c: In funct
ion ‘nv_acpi_remove’:
/tmp/selfgz786/NVIDIA-Linux-x86-173.14.38-pkg1/usr/src/nv/nvacpi.c:241:5: er
ror: implicit declaration of function ‘acpi_driver_data’ [-Werror=implic
it-function-declaration]
nv_acpi_t *pNvAcpiObject = acpi_driver_data(device);
^
/tmp/selfgz786/NVIDIA-Linux-x86-173.14.38-pkg1/usr/src/nv/nvacpi.c:241:32: w
arning: initialization makes pointer from integer without a cast [enabled by
default]
nv_acpi_t *pNvAcpiObject = acpi_driver_data(device);
^
/tmp/selfgz786/NVIDIA-Linux-x86-173.14.38-pkg1/usr/src/nv/nvacpi.c:252:41: e
rror: dereferencing pointer to incomplete type
status = acpi_evaluate_object(device->handle, «_DOS», &control_argument
_list, NULL);
^
/tmp/selfgz786/NVIDIA-Linux-x86-173.14.38-pkg1/usr/src/nv/nvacpi.c:265:51: e
rror: dereferencing pointer to incomplete type
status = acpi_remove_notify_handler(device->handle, ACPI_DEVICE_NOT
IFY, nv_acpi_event);
^
cc1: some warnings being treated as errors
make[3]: *** [/tmp/selfgz786/NVIDIA-Linux-x86-173.14.38-pkg1/usr/src/nv/nvac
pi.o] Error 1
make[2]: *** [_module_/tmp/selfgz786/NVIDIA-Linux-x86-173.14.38-pkg1/usr/src
/nv] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
-> 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 http://www.nvidia.com.

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.

Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

User avatar

Pjotr

Level 23
Level 23
Posts: 18550
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Problem installing NVIDIA drivers

Post

by Pjotr » Sun Jul 19, 2015 6:02 am

No need for complicated terminal actions. Just throw away that manually downloaded driver; you don’t need it.

When you’re running Mint 17.x from the 3.13.x kernel, you should be able to install the nvidia-173 driver simply and quickly by means of Driver Manager (which you can launch from the menu). After installing it, reboot.

Note that the nvidia-173 won’t install on the 3.16 kernel which comes default in Mint 17.2. Because that kernel series is too new for it. So if you have a freshly installed 17.2 (not an upgraded 17.1), first install the latest 3.13.x kernel like this:
https://sites.google.com/site/easylinux … el-updates
(item 3, right column)

Then boot from the 3.13.x kernel that you’ve just installed (it’s under the header «Advanced options» in the Grub bootloader menu), remove the 3.16.0-38 kernel and only then launch Driver Manager.

Last edited by Pjotr on Sun Jul 19, 2015 6:51 am, edited 1 time in total.

Adwarrior

Re: Problem installing NVIDIA drivers

Post

by Adwarrior » Sun Jul 19, 2015 7:18 am

OK, I did all that, but I don’t think it’s running on the Nvidia drivers. I check driver manager and it reports nvidia-173. However, when I open Nvidia Xserver settings app, there are no options to change anything in the settings config part except a few generic check boxes to change how the app displays info. I have seen screen shots of this app when the drivers are loaded and it has a lot more functionality than mine has right now. I did an lspci and it reports; «VGA compatible controller:NVIDIA corp NV35GL [Quadro FX 3000]» which is exactly what it said when it was running on the Nouveau display driver. Is there a terminal command I can run to definitively report which drivers are loaded?

User avatar

Pjotr

Level 23
Level 23
Posts: 18550
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Problem installing NVIDIA drivers

Post

by Pjotr » Sun Jul 19, 2015 7:21 am

There are several commands that can show that, but this one is handy for more than one purpose:
Generate an overview of your system like this:
— launch a terminal window and make it fullscreen, to avoid chopped lines;
— copy/paste this command into the terminal:

if you type: the letter F is a capital letter

Press Enter.

Copy/paste the output in your next message.

Adwarrior

Re: Problem installing NVIDIA drivers

Post

by Adwarrior » Sun Jul 19, 2015 7:29 am

Thanks for the quick reply.

OK here’s the output:

System: Host: IsobelsPC Kernel: 3.13.0-57-generic i686 (32 bit, gcc: 4.8.2)
Desktop: Cinnamon 2.6.13 Distro: Linux Mint 17.2 Rafaela
Machine: System: Dell product: DIM4500
Mobo: Intel model: D845EPT2 version: AAA83422-107 Bios: Intel version: A04 date: 09/10/2002
CPU: Single core Intel Pentium 4 CPU (-UP-) cache: 512 KB flags: (pae sse sse2) bmips: 5050.3 clocked at 2525.150 MHz
Graphics: Card: NVIDIA NV35GL [Quadro FX 3000] bus-ID: 01:00.0
X.Org: 1.15.1 drivers: nouveau (unloaded: fbdev,vesa) Resolution: 1680×1050@60.0hz
GLX Renderer: Gallium 0.4 on NV35 GLX Version: 1.5 Mesa 10.1.3 Direct Rendering: Yes
Audio: Card: Intel 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC’97 Audio Controller
driver: snd_intel8x0 ports: e400 e080 bus-ID: 00:1f.5
Sound: Advanced Linux Sound Architecture ver: k3.13.0-57-generic
Network: Card-1: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet driver: sis900 port: d800 bus-ID: 02:02.0
IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter>
Card-2: Belkin F5D7050 Wireless G Adapter v3000 [Ralink RT2571W] driver: rt73usb ver: 2.3.0 usb-ID: 001-002
IF: wlan0 state: down mac: <filter>
Drives: HDD Total Size: 80.0GB (7.0% used) 1: id: /dev/sda model: ST380011A size: 80.0GB temp: 39C
Partition: ID: / size: 30G used: 5.3G (19%) fs: ext4 ID: swap-1 size: 1.07GB used: 0.00GB (0%) fs: swap
RAID: No RAID devices detected — /proc/mdstat and md_mod kernel raid module present
Sensors: None detected — is lm-sensors installed and configured?
Info: Processes: 145 Uptime: 21 min Memory: 705.1/1001.2MB Runlevel: 2 Gcc sys: 4.8.4
Client: Shell (bash 4.3.11) inxi: 1.9.17

User avatar

Pjotr

Level 23
Level 23
Posts: 18550
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Problem installing NVIDIA drivers

Post

by Pjotr » Sun Jul 19, 2015 7:31 am

Not yet…. Have you already rebooted after installing the nvidia-173? That’s necessary to load it.

Adwarrior

Re: Problem installing NVIDIA drivers

Post

by Adwarrior » Sun Jul 19, 2015 7:40 am

Yes, I’ve rebooted 3 times now.

I had a look at Grub to see if it’s blacklisted Nouveau and it says:

RUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=»quiet splash rdblacklist=nouveau»
GRUB_CMDLINE_LINUX=»»

I’m not sure if it’s blacklisted it or not.

User avatar

Pjotr

Level 23
Level 23
Posts: 18550
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Problem installing NVIDIA drivers

Post

by Pjotr » Sun Jul 19, 2015 7:45 am

The blacklist entry is an useless complication, when you install a driver by means of Driver Manager…. Maybe this unnecessary complication has some quirky side effect that negatively impacts loading the nvidia-173.

Try if it helps when you *remove* the blacklist entry, run «sudo update-grub» and reboot. A long shot, but worth the try.

Adwarrior

Re: Problem installing NVIDIA drivers

Post

by Adwarrior » Sun Jul 19, 2015 8:00 am

Did that, same result.
Wondering if I should try a manual install now that I have the 3.13.* kernel and see what results that produces!

Adwarrior

Re: Problem installing NVIDIA drivers

Post

by Adwarrior » Sun Jul 19, 2015 8:11 am

OK, did a manual install from root shell and got further this time, but with a new error regarding a mismatched gcc. Here’s the error message:

Kernel module compilation complete.
ERROR: Unable to load the kernel module ‘nvidia.ko’. This happens most
frequently when this kernel module was built against the wrong or
improperly configured kernel sources, with a version of gcc that differs
from the one used to build the target kernel, or if a driver such as
rivafb, nvidiafb, or nouveau is present and prevents the NVIDIA kernel
module from obtaining ownership of the NVIDIA graphics device(s).

Please see the log entries ‘Kernel module load error’ and ‘Kernel
messages’ at the end of the file ‘/var/log/nvidia-installer.log’ for
more information.

Any thoughts on how to overcome this?

User avatar

Pjotr

Level 23
Level 23
Posts: 18550
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Problem installing NVIDIA drivers

Post

by Pjotr » Sun Jul 19, 2015 9:04 am

I suspect that your system has become too polluted by wrong actions. Too polluted for easy repair. Furthermore, the Cinnamon edition of Linux Mint is too heavy for your old machine.

The easiest way out is therefore probably a clean re-install of Mint 17.x. I advise to install Mint 17.1 Xfce, because that’s the lightweight edition and furthermore, it has the right kernel (3.13 series) by default:
http://mirror.jmu.edu/pub/linuxmint/ima … -32bit.iso

In a couple of weeks you´ll be able to upgrade that easily to 17.2 Xfce anyway, so it’s no problem to install 17.1 Xfce now.

Apply this to-do list after installing it (written for Xfce 17.2, but almost completely applicable still for Xfce 17.1):
https://sites.google.com/site/easylinuxtipsproject/8

That to-do list also contains the tip to use Driver Manager for installing better drivers.

Adwarrior

Re: Problem installing NVIDIA drivers

Post

by Adwarrior » Sun Jul 19, 2015 3:12 pm

Well, I installed 17.1 Xfce. Ran all the updates and went through the to-do list in order. Got to the part about updating the Nvidia drivers via driver manager and did just as it said. After rebooting it wouldn’t start Xserver. So I had to purge the Nvidia drivers from the command line to get it to start again. Now, I quite like a challenge and problem solving, but I don’t seem to be getting anywhere. I’d like to install the correct drivers, as it’s noticeable when scrolling web pages for example that they’re not a smooth and glitch free as they should be. However, I may have to admit defeat.

  • Home
  • Forum
  • The Ubuntu Forum Community
  • Ubuntu Official Flavours Support
  • Installation & Upgrades
  • [ubuntu] Nvidia: Can’t install (Unable to build kernel module)

  1. Nvidia: Can’t install (Unable to build kernel module)

    Hi

    I’m trying to install Nvidia driver (NVIDIA-Linux-x86-100.14.11-pkg1.run) on Acer Aspire 5520 laptop, GeForce 7000M graphics (Ubuntu 8.04).

    After entering runlevel 3 and running the following:

    # sudo sh NVIDIA-Linux-x86-100.14.11-pkg1.run

    it wants to compile a kernel interface, but at the end returns the error:

    ERROR: Unable to build the NVIDIA kernel module

    Please help as I can’t change resolution greater than 800×600.

    ——

    Content of log file is:

    nvidia-installer log file ‘/var/log/nvidia-installer.log’
    creation time: Wed Jun 25 22:25:20 2008

    option status:
    license pre-accepted : false
    update : false
    force update : false
    expert : false
    uninstall : false
    driver info : false
    precompiled interfaces : true
    no ncurses color : false
    query latest version : false
    OpenGL header files : true
    no questions : false
    silent : false
    no recursion : false
    no backup : false
    kernel module only : false
    sanity : false
    add this kernel : false
    no runlevel check : false
    no network : false
    no ABI note : false
    no RPMs : false
    no kernel module : false
    force SELinux : default
    no X server check : false
    force tls : (not specified)
    X install prefix : (not specified)
    X library install path : (not specified)
    X module install path : (not specified)
    OpenGL install prefix : (not specified)
    OpenGL install libdir : (not specified)
    utility install prefix : (not specified)
    utility install libdir : (not specified)
    doc install prefix : (not specified)
    kernel name : (not specified)
    kernel include path : (not specified)
    kernel source path : (not specified)
    kernel output path : (not specified)
    kernel install path : (not specified)
    proc mount point : /proc
    ui : (not specified)
    tmpdir : /tmp
    ftp mirror : ftp://download.nvidia.com
    RPM file list : (not specified)

    Using: nvidia-installer ncurses user interface
    -> License accepted.
    -> No precompiled kernel interface was found to match your kernel; would you li
    ke the installer to attempt to download a kernel interface for your kernel f
    rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
    -> No matching precompiled kernel interface was found on the NVIDIA ftp site;
    this means that the installer will need to compile a kernel interface for
    your kernel.
    -> Performing CC sanity check with CC=»cc».
    -> Performing CC version check with CC=»cc».
    -> Kernel source path: ‘/lib/modules/2.6.24-19-generic/build’
    -> Kernel output path: ‘/lib/modules/2.6.24-19-generic/build’
    -> Performing rivafb check.
    -> Performing nvidiafb check.
    -> Performing Xen check.
    -> Cleaning kernel module build directory.
    executing: ‘cd ./usr/src/nv; make clean’…
    rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nvacpi.
    o nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nvacpi.o nvidi
    a.mod.o
    rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
    rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
    rm -f -f stprof stprof.o symtab.h Modules.symvers
    rm -f -rf .tmp_versions
    rm -f Makefile
    -> Building kernel module:
    executing: ‘cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.24-19-gener
    ic/build SYSOUT=/lib/modules/2.6.24-19-generic/build’…
    sh ./conftest.sh «cc» «cc» /lib/modules/2.6.24-19-generic/build /lib/modules
    /2.6.24-19-generic/build cc_sanity_check full_output
    sh ./conftest.sh «cc» «cc» /lib/modules/2.6.24-19-generic/build /lib/modules
    /2.6.24-19-generic/build select_makefile full_output
    make —no-print-directory -f Makefile module

    NVIDIA: calling KBUILD…
    make CC=cc KBUILD_VERBOSE=1 -C /lib/modules/2.6.24-19-generic/build SUBDIRS
    =/tmp/selfgz6170/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv modules
    test -e include/linux/autoconf.h -a -e include/config/auto.conf || (
    echo;
    echo » ERROR: Kernel configuration is invalid.»;
    echo » include/linux/autoconf.h or include/config/auto.conf are mis
    sing.»;
    echo » Run ‘make oldconfig && make prepare’ on kernel src to fix it
    .»;
    echo;
    /bin/false)
    mkdir -p /tmp/selfgz6170/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/.tmp_ver
    sions ; rm -f /tmp/selfgz6170/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/.tm
    p_versions/*
    make -f scripts/Makefile.build obj=/tmp/selfgz6170/NVIDIA-Linux-x86-100.14.1
    1-pkg1/usr/src/nv
    echo #define NV_COMPILER «`cc -v 2>&1 | tail -n 1`» > /tmp/selfgz6170/NVI
    DIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv_compiler.h
    cc -Wp,-MD,/tmp/selfgz6170/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/.nv.
    o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.2.3/include -D__KERNEL
    __ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prot
    otypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-func
    tion-declaration -O2 -pipe -msoft-float -mregparm=3 -freg-struct-return -mpr
    eferred-stack-boundary=2 -march=i586 -mtune=generic -ffreestanding -maccumu
    late-outgoing-args -Iinclude/asm-x86/mach-default -fomit-frame-pointer -g
    -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -I/tm
    p/selfgz6170/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv -Wall -Wimplicit -Wr
    eturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith
    -Wno-multichar -Werror -O -fno-common -msoft-float -MD -Wsign-
    compare
    -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV
    RM -DNV_VERSION_STRING=»100.14.11″ -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_S
    TRUCT_RLIM -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_PCI_GET_CLASS_PRESENT —
    DNV_SYSCTL_MAX_MAP_COUNT_PRESENT -DNV_PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_S
    TATE_PRESENT -DNV_VM_INSERT_PAGE_PRESENT -DNV_OLD_MM_KGDB_BREAKPOINT_PRESENT
    -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_ACQUIRE_CONS
    OLE_SEM_PRESENT -DNV_VMAP_4_PRESENT -DMODULE -D»KBUILD_STR(s)=#s» -D»KBUILD
    _BASENAME=KBUILD_STR(nv)» -D»KBUILD_MODNAME=KBUILD_STR(nvidia)» -c -o /tmp/
    selfgz6170/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/.tmp_nv.o /tmp/selfgz6
    170/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv.c
    In file included from include/linux/list.h:8,
    from include/linux/preempt.h:11,
    from include/linux/spinlock.h:49,
    from include/linux/seqlock.h:29,
    from include/linux/time.h:8,
    from include/linux/timex.h:57,
    from include/linux/sched.h:53,
    from include/linux/utsname.h:35,
    from /tmp/selfgz6170/NVIDIA-Linux-x86-100.14.11-pkg1/usr/sr
    c/nv/nv-linux.h:19,
    from /tmp/selfgz6170/NVIDIA-Linux-x86-100.14.11-pkg1/usr/sr
    c/nv/nv.c:14:
    include/linux/prefetch.h: In function �prefetch_range�:
    include/linux/prefetch.h:57: warning: pointer of type �void *� used in a
    rithmetic
    In file included from include/asm/dma-mapping_32.h:5,
    from include/asm/dma-mapping.h:2,
    from include/linux/dma-mapping.h:52,
    from include/asm-generic/pci-dma-compat.h:7,
    from include/asm/pci.h:88,
    from include/linux/pci.h:796,
    from /tmp/selfgz6170/NVIDIA-Linux-x86-100.14.11-pkg1/usr/sr
    c/nv/nv-linux.h:78,
    from /tmp/selfgz6170/NVIDIA-Linux-x86-100.14.11-pkg1/usr/sr
    c/nv/nv.c:14:
    include/linux/scatterlist.h: In function �sg_virt�:
    include/linux/scatterlist.h:293: warning: pointer of type �void *� used
    in arithmetic
    /tmp/selfgz6170/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv.c: In function
    �nvidia_init_module�:
    /tmp/selfgz6170/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv.c:1326: error:
    too many arguments to function �kmem_cache_create�
    /tmp/selfgz6170/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv.c:1435: error:
    too many arguments to function �kmem_cache_create�
    /tmp/selfgz6170/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv.c:1569: error:
    void value not ignored as it ought to be
    /tmp/selfgz6170/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv.c: In function
    �nvidia_exit_module�:
    /tmp/selfgz6170/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv.c:1601: error:
    void value not ignored as it ought to be
    make[3]: *** [/tmp/selfgz6170/NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/nv/nv.
    o] Error 1
    make[2]: *** [_module_/tmp/selfgz6170/NVIDIA-Linux-x86-100.14.11-pkg1/usr/sr
    c/nv] Error 2
    NVIDIA: left KBUILD.
    nvidia.ko failed to build!
    make[1]: *** [module] Error 1
    make: *** [module] Error 2
    -> 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.


  2. Re: Nvidia: Can’t install (Unable to build kernel module)

    Is there a reason you want to use a driver that old? That’s very out of date and it may not work with 2.6.24. Also, are you sure you have the kernel headers installed? Try:

    Code:

    sudo apt-get install linux-headers-generic

    Don’t try to make something «fast» until you are able to quantify «slow».


  3. Re: Nvidia: Can’t install (Unable to build kernel module)

    Quote Originally Posted by vor
    View Post

    Is there a reason you want to use a driver that old? That’s very out of date and it may not work with 2.6.24. Also, are you sure you have the kernel headers installed? Try:

    Code:

    sudo apt-get install linux-headers-generic

    I have headers installed. I tried also with version NVIDIA-Linux-x86-1.0-8762-pkg1.run, and it’s the same.


  4. Re: Nvidia: Can’t install (Unable to build kernel module)


Bookmarks

Bookmarks


Posting Permissions

Hello. Sorry I did not get back to you until today. I was sick yesterday…

So the problem here is that I did not take into account laptops that do not work with 346.47 driver.

Your idea to try an older version was along the correct path. But version 340.65 probably cannot be made to work with newer kernels. Which is the reason why nvidia makes legacy drivers on their downloads page.

In the past, other people have asked that I make a «Short Lived Branch version» of my drivers package.

That did not work out too well since it was hard for me to keep up with such things. I just always used the «Long Lived Branch version» on my own laptops.

So maybe a better solution would be to have an «unmanaged» version. It would include the shell script and systemd unit files. and selinux policy module. But it would be up to the end users to download the correct «blob» and place it into /etc/sysconfig/nvidia/ themselves. For you that would mean having to download

«Latest Legacy GPU version (340.xx series)»

and then place it there yourself.

Do you think that solution would work for you?

As for the selinux errrors, it would be difficult for me to troubleshoot that. So for now I would suggest using selinux in permissive mode. If that doesn’t work I would suggest disabling selinux for now.

It may be that the selinux module I made for fedora 22 will help. I can include that in my «unmanaged» bumblebee-nvidia assuming that idea would work for you. Then you could test it and see if there is any improvement. selinux has been making things hard for bumblebee lately. I think they are adding a lot of new policies that keep interfering with bumblebee’s normal operations.

Let me know what you think about a «unmanaged» version of bumblebee-nvidia?

Also, I probably cannot get to making that unmanaged version for a few days. Today I have to push out an update to VirtualGL and I have to get it done before the outage starts in the fedora build system later today if possible.

Thanks.

Доброго времени суток, товарищи!
openSUSE 11.1 — не первая из серии openSUSE, которые я устанавливал — в предыдущий версиях всё отлично работало.
Но, при попытке установить проприетарный модуль nVidia из .run-файла, установочным скриптом, процесс компиляции стартует, доходит до 60% и, приостанавливается на 5-7 секунд, потом процес продолжается и доходит до 100%, после чего получаю сообщение:

.
для наглядности даю листинг /var/log/nvidia-installer.log

Код:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sun Mar 8 13:24:20 2009
installer version: 1.0.7

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
precompiled interfaces : true
no ncurses color : false
query latest version : false
OpenGL header files : true
no questions : false
silent : false
no recursion : false
no backup : false
kernel module only : false
sanity : false
add this kernel : false
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
no kernel module : false
force SELinux : default
no X server check : false
no cc version check : false
force tls : (not specified)
X install prefix : (not specified)
X library install path : (not specified)
X module install path : (not specified)
OpenGL install prefix : (not specified)
OpenGL install libdir : (not specified)
utility install prefix : (not specified)
utility install libdir : (not specified)
doc install prefix : (not specified)
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 173.14.12.
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: No)
-> No precompiled kernel interface was found to match your kernel; this means
that the installer will need to compile a new kernel interface.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/2.6.27.7-9-default/source'
-> Kernel output path: '/lib/modules/2.6.27.7-9-default/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.27.7-9-defa
ult/source SYSOUT=/lib/modules/2.6.27.7-9-default/build'...
NVIDIA: calling KBUILD...
make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.27.7-9-default/build KBUILD_VERBOS
E=1 -C /lib/modules/2.6.27.7-9-default/source SUBDIRS=/tmp/selfgz10733/NVIDI
A-Linux-x86-173.14.12-pkg1/usr/src/nv modules
make -C /lib/modules/2.6.27.7-9-default/build
KBUILD_SRC=/usr/src/linux-2.6.27.7-9
KBUILD_EXTMOD="/tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/usr/src/nv"
-f /usr/src/linux-2.6.27.7-9/Makefile
modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (
echo;
echo " ERROR: Kernel configuration is invalid.";
echo " include/linux/autoconf.h or include/config/auto.conf are mis
sing.";
echo " Run 'make oldconfig && make prepare' on kernel src to fix it
.";
echo;
/bin/false)
mkdir -p /tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/usr/src/nv/.tmp_ve
rsions ; rm -f /tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/usr/src/nv/.
tmp_versions/*
make -f /usr/src/linux-2.6.27.7-9/scripts/Makefile.build obj=/tmp/selfgz1073
3/NVIDIA-Linux-x86-173.14.12-pkg1/usr/src/nv
cc -Wp,-MD,/tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/usr/src/nv/.nv
.o.d -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.3/include -D__KERNEL
__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.27.7-9/include -I/usr/src/linux
-2.6.27.7-9/arch/x86/include -include include/linux/autoconf.h -I/tmp/selfg
z10733/NVIDIA-Linux-x86-173.14.12-pkg1/usr/src/nv -Wall -Wundef -Wstrict-pro
totypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-fun
ction-declaration -Os -m32 -msoft-float -mregparm=3 -freg-struct-return -mpr
eferred-stack-boundary=2 -march=i586 -mtune=generic -ffreestanding -DCONFIG_
AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -mno-sse -mn
o-mmx -mno-sse2 -mno-3dnow -I/usr/src/linux-2.6.27.7-9/include/asm-x86/mach-
generic -Iinclude/asm-x86/mach-generic -I/usr/src/linux-2.6.27.7-9/include/a
sm-x86/mach-default -Iinclude/asm-x86/mach-default -fno-stack-protector -fom
it-frame-pointer -fasynchronous-unwind-tables -Wdeclaration-after-stat
ement -Wno-pointer-sign -I/tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/
usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscript
s -Wparentheses -Wpointer-arith -Wno-multichar -Werror -MD -Wsign-compare -W
no-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING="1
73.14.12" -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD
_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -D"DEBUG_HA
SH=49" -D"DEBUG_HASH2=15" -c -o /tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-
pkg1/usr/src/nv/.tmp_nv.o /tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/u
sr/src/nv/nv.c
In file included from /usr/src/linux-2.6.27.7-9/include/linux/bitops.h:17,
from /usr/src/linux-2.6.27.7-9/include/linux/kernel.h:15,
from /usr/src/linux-2.6.27.7-9/include/linux/sched.h:52,
from /usr/src/linux-2.6.27.7-9/include/linux/utsname.h:35,
from /tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/usr/s
rc/nv/nv-linux.h:19,
from /tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/usr/s
rc/nv/nv.c:14:
include2/asm/bitops.h: In function ‘set_bit’:
include2/asm/bitops.h:60: warning: pointer of type ‘void *’ used in arit
hmetic
include2/asm/bitops.h: In function ‘clear_bit’:
include2/asm/bitops.h:97: warning: pointer of type ‘void *’ used in arit
hmetic
In file included from /usr/src/linux-2.6.27.7-9/include/linux/list.h:6,
from /usr/src/linux-2.6.27.7-9/include/linux/preempt.h:11,
from /usr/src/linux-2.6.27.7-9/include/linux/spinlock.h:50,
from /usr/src/linux-2.6.27.7-9/include/linux/seqlock.h:29,
from /usr/src/linux-2.6.27.7-9/include/linux/time.h:8,
from /usr/src/linux-2.6.27.7-9/include/linux/timex.h:57,
from /usr/src/linux-2.6.27.7-9/include/linux/sched.h:54,
from /usr/src/linux-2.6.27.7-9/include/linux/utsname.h:35,
from /tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/usr/s
rc/nv/nv-linux.h:19,
from /tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/usr/s
rc/nv/nv.c:14:
/usr/src/linux-2.6.27.7-9/include/linux/prefetch.h: In function ‘prefetch_
range’:
/usr/src/linux-2.6.27.7-9/include/linux/prefetch.h:57: warning: pointer of t
ype ‘void *’ used in arithmetic
In file included from /usr/src/linux-2.6.27.7-9/include/linux/utsname.h:35,
from /tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/usr/s
rc/nv/nv-linux.h:19,
from /tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/usr/s
rc/nv/nv.c:14:
/usr/src/linux-2.6.27.7-9/include/linux/sched.h: In function ‘object_is_on
_stack’:
/usr/src/linux-2.6.27.7-9/include/linux/sched.h:1989: warning: pointer of ty
pe ‘void *’ used in arithmetic
In file included from include2/asm/dma-mapping.h:9,
from /usr/src/linux-2.6.27.7-9/include/linux/dma-mapping.h:
52,
from /usr/src/linux-2.6.27.7-9/include/asm-generic/pci-dma-
compat.h:7,
from include2/asm/pci.h:96,
from /usr/src/linux-2.6.27.7-9/include/linux/pci.h:1009,
from /tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/usr/s
rc/nv/nv-linux.h:86,
from /tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/usr/s
rc/nv/nv.c:14:
/usr/src/linux-2.6.27.7-9/include/linux/scatterlist.h: In function ‘sg_vir
t’:
/usr/src/linux-2.6.27.7-9/include/linux/scatterlist.h:199: warning: pointer
of type ‘void *’ used in arithmetic
In file included from /tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/usr/s
rc/nv/nv.c:14:
/tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/usr/src/nv/nv-linux.h:107:2
7: error: asm/semaphore.h: No such file or directory
In file included from /tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/usr/s
rc/nv/nv-linux.h:109,
from /tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/usr/s
rc/nv/nv.c:14:
/usr/src/linux-2.6.27.7-9/include/linux/highmem.h: In function ‘zero_user_
segments’:
/usr/src/linux-2.6.27.7-9/include/linux/highmem.h:138: warning: pointer of t
ype ‘void *’ used in arithmetic
/usr/src/linux-2.6.27.7-9/include/linux/highmem.h:138: warning: pointer of t
ype ‘void *’ used in arithmetic
/usr/src/linux-2.6.27.7-9/include/linux/highmem.h:138: warning: pointer of t
ype ‘void *’ used in arithmetic
/usr/src/linux-2.6.27.7-9/include/linux/highmem.h:138: warning: pointer of t
ype ‘void *’ used in arithmetic
/usr/src/linux-2.6.27.7-9/include/linux/highmem.h:141: warning: pointer of t
ype ‘void *’ used in arithmetic
/usr/src/linux-2.6.27.7-9/include/linux/highmem.h:141: warning: pointer of t
ype ‘void *’ used in arithmetic
/usr/src/linux-2.6.27.7-9/include/linux/highmem.h:141: warning: pointer of t
ype ‘void *’ used in arithmetic
/usr/src/linux-2.6.27.7-9/include/linux/highmem.h:141: warning: pointer of t
ype ‘void *’ used in arithmetic
In file included from /tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/usr/s
rc/nv/nv.c:14:
/tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/usr/src/nv/nv-linux.h: In f
unction ‘nv_execute_on_all_cpus’:
/tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/usr/src/nv/nv-linux.h:674:
error: too many arguments to function ‘on_each_cpu’
/tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/usr/src/nv/nv.c: In functio
n ‘nv_kern_cpu_callback’:
/tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/usr/src/nv/nv.c:1299: error
: too many arguments to function ‘smp_call_function’
/tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/usr/src/nv/nv.c:1306: error
: too many arguments to function ‘smp_call_function’
make[4]: *** [/tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/usr/src/nv/nv
.o] Error 1
make[3]: *** [_module_/tmp/selfgz10733/NVIDIA-Linux-x86-173.14.12-pkg1/usr/s
rc/nv] Error 2
make[2]: *** [sub-make] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
-> 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.

Athlon XP 2200+ 1Gb Ram FX5200

Понравилась статья? Поделить с друзьями:
  • Error unable to access steam workshop tmodloader
  • Error unable to access jarfile перевод
  • Error unable to access jarfile zenzefi jar
  • Error unable to access jarfile vimeworld
  • Error unable to access jarfile unluac jar