Anfängerfragen - Linux Neuling? Hier ist der richtige Platz für deine Fragen (2)

  • Ersteller Gelöschtes Mitglied 45455
  • Erstellt am
Ich habe eine kurze Frage bzgl. BIOS Einstellungen und Linux Installation. Ich versuche gerade mit einem USB Live Stick Linux auf einer SSD zu installieren (alle anderen HDDs SSDs sind abgestöpselt), der Installer bricht mir aber sehr früh mit einer
kernel-panic-machine-check-processor-context-corrupt
Fehlermeldung ab, Ich lasse gerade den MEMTEST laufen.

Meine BIOS Einstellungen für die CPU sind die aus dem Windows, d.h. übertaktete Werte. Muss ich vor der Linux Installation die Settings auf default setzen bzw. das BIOS zurücksetzen? Das wäre eigentlich ziemlich doof, da ich ja einige Zeit gebraucht habe die OC Settings zu konfigurieren. Kurze Randinfos: i5 750, BIOS nicht UEFI.

Vielen Dank im voraus.
 
Wenn Du diese Anzeige nicht sehen willst, registriere Dich und/oder logge Dich ein.
Nein, eigentlich kannste das UEFI so lassen wie es ist. Was ist denn das für ne Distri?
 
Es ist kein UEFI, kp was die Distri damit zu tun haben soll aber es ist OpenSUSE.
 
Läuft die Installation denn mit Standard-Settings vernünftig an?
Dann könntest Du erst @Stock installieren und dann mal schauen, wie sich die Heul-SUSE mit den OC-Werten verträgt....
 
Die OC Settings waren das Problem(Lösung des Problems bzw. wie ich darauf gekommen bin), den Multiplikator von 21 auf 20 und schon lief alles durch, nun habe ich ein anderes Problem. Wie bereits oben beschildert habe ich Linux auf einer gesonderten SSD installiert, wenn ich nun eine alte Windows SSD reinhänge bootet der PC automatisch von Windows. Wie kann ich GRUB sozusagen als bootmngr festlegen?
 
Zuletzt bearbeitet:
Boot-Reihenfolge im BIOS ändern?!?

Dann nochmal "sudo update-grub" laufen lassen....

- - - Updated - - -

....damit Linux die Windows-Partition mit in grub aufnimmt
 
Jo ich denke das Problem bekomm ich irgendwann hin, wenn ich über F8 die Linux SSD wähle startet er GRUB und es wird mir dort ein Windows angezeigt. Nur bootet er halt noch automatisch von der Win SSD. In meinem BIOS konnte ich die Linux SSD noch nicht auswählen, kann aber an meinem MB/Bios liegen. Ich habe aber ein viel nervtötenderes Problem. Wenn ich ins Linux boote habe ich ein extrem störendes Spulenfiepen, ich nehme mal an es kommt von der GPU, da ich beide HDDs abgestöpselt habe. Ist so ein Problem irgendwie bekannt mit den OS Treibern für AMD? Wie checke ich überhaupt welcher Treiber installiert ist, bzw. wie heißt der OS Treiber?
 
Der Open Source Treiber für aktuelle AMD GPUs heißt "radeon" und der teilproprietäre heisst für aktuelle GPUs "AMDGPU-PRO" und der für alte GPUs und Distributionen heißt "fglrx".
Bei einer Neuinstallation werden aus rechtlichen Gründen immer die Open Source Treiber installiert. Zur einfachen Installation der proprietaren Treiber gibt es dann häufig ein Tool (z.B. "Zusätzliche Treiber" bei den Ubuntus), welches den Treiber herunterlädt und installiert. Wie es bei Suse diesbezüglich aussieht weiss ich nicht (aber hier steht Einiges zur Installation).
 
Zuletzt bearbeitet:
Ich möchte eigentlich bei dem Opensource Treiber bleiben, dennoch würde ich gern das Spulenfiepen in den Griff bekommen. Habe auch ein eckliges Tearing beim scrollen im Browser unter Linux.
 
Zuletzt bearbeitet:
Es könnte auch das Netzteil sein. So oder so müsste (abgesehen vom Übersprühen mit ggeignetem Kleber) die Taktfrequenz der über die fiepende Spule versorgten Teile verändert werden. um sie vom Resonanzbereich zu entfernen.
Das geht mit Open Source Treiber in der Regel leider gar nicht (kann ich nicht garantieren, da ich gerade nvidia im Notebook habe, aber ist sehr wahrscheinlich auch beim Radeon Treiber so).
Falls es das Netzteil, oder das Board wäre, dann könnte entsprechend eine Konfiguration der CPU-States helfen.

Ansonsten kann man bei einigen Grafikkarten noch das BIOS flashen, um ohne Treiberhilfe optimierte Powerkonfigurationen zu erreichen, aber das ist ein Theme für sich, und Nichts, das man einfach mal so schnell machen sollte.
 
Zuletzt bearbeitet:
Ansonsten kann man bei einigen Grafikkarten noch das BIOS flashen, um ohne Treiberhilfe optimierte Powerkonfigurationen zu erreichen, aber das ist ein Theme für sich, und Nichts, das man einfach mal so schnell machen sollte.
Davon habe ich anderer Stelle bereits gelesen und bin sehr interessiert an jedewedem Lesestoff der sich anbietet falls da jemand schon recherchiert hat.

Ansonsten gibt es keine Möglichkeit Lüfterdrehzahl und Taktung der GPU unter den open source Treibern zu regeln?

Wenn es die PSU wäre, müsste das Problem auch unter Windows vorhanden sein oder? Das ist ja defintiv nicht der Fall, weder unter Last noch sonstwas. Und die CPU Einstellungen werden ja im BIOS geregelt, daher müsste auch hier das Problem auch im Windows auftreten. Einzig die GPU ist durch den Linuxbasierten Treibern gesondert geregelt.
 
Unabhängig davon, ob die CPU in Hardware oder Software geregelt wird, kann es ja dennoch sein, dass dein System je nach OS, in einem, etwas anderen Lastzustand herumidelt., oder auch arbeitet Deshalb kann man das so pauschal wohl nicht sagen.
 
Hmm das klingt natürlich einleuchtend, allerdings habe ich dieses Spulenfiepen noch nie im Zusammenhang mit einer CPU gelesen, dass ist Neuland für mich. Ich schau mal wie Linux darauf reagiert wenn ich die verschiedenen CPU Sparmodi im BIOS wieder aktiviere.

Für mich ist das schon ein schwerwiegendes Problem, da ich akustisch sehr empfindlich bin, falls ich das nicht in den Griff bekommen sollte wäre das schon fast ein Ausschlusskriterium für Linux. Was ich persönlich natürlich sehr schade finde da ich mich nun endlich dazu durchgerungen habe es richtig zu probieren (statt immer nur in einer VM bzw. auf dem Netbook).
 
Es wäre dann auch nicht direkt die CPU. Sondern prinzipiell beliebige Teile des Gesamtsystems, die einen Verbrauch verursachen, die das Netzteil genau in einem ungünstigen Bereich laufen lassen, das muss nicht einmal eine hohe Last sein. Also würde ich der Einfachheit halber hoffen, dass es durch die Grafikkarte verursacht wird, ansonsten wäre die Ursachenforschung zu aufwendig. Es gibt ja auch Stromspartechniken auf PCIe usw. Ein Umstellen von BIOS-Optionen könnte, wie du schon gesagt hast helfen. 5 Watt mehr oder weniger Verbrauch, und falls es das Netzteil ist, könnte das schon den Unterschied ausmachen.
 
Zuletzt bearbeitet:
Es geht doch weiter mit dem alten Medion Laptop. Nachdem das Wlan ja nicht ging hat es mir keine ruhe geassen. Ich habe heute nochmal Ubuntu 16.04LTS neu herunter geladen. Und was soll ich sagen Wlan funktioniert ohne Probleme.

Beim anderen Laptop habe ich nichts herausfinden können warum die HDD LED dauerhaft an ist. Es gibt keine Speziellen Reiber oder sonstiges.
 
Amateur-Frage zu nvidia-Treibern:
Ich habe keine hohen Ansprüche, Office, Youtube..., daher genügt mir die billig geschossene GT210. Ich brauche überhaupt nur eine dezidierte GPU, da meine onboard-Grafik keine 1440er-Auflösung ausgeben kann.
Mit noveau-Treibern läuft die GPU, manchmal kommt mir aber die Grafikausgabe etwas spanisch vor, z.B. ruckelt es schnmal bei aufwändigen Websites und bei Flash-Inhalten (die ja endlich dem Ende entgegen gehen). Die Temperatur scheint manchmal durch die Decke zu gehen, was nicht am Gehäuse/Airflow liegen dürfte, sogar bis zum Freeze .

Also hab ich die nvidia-Treiber probiert - allerdings bekomme ich dann gar kein Bild mehr. Wenn ich den proprietären Treiber unter "zusätzliche Treiber aktiviere" und dann neustarte geht der BIOS/UEFI POST-Screen noch, grub auch und dann ist Ende. Ich kann mich zwar noch "blind" auf Konsole einloggen und rebooten (strg+alt-F1 und dann ohne Bild tippen), aber es kommt einfach kein Bild. Wenn ich im GRUB-Menü "ubuntu (upstart)" auswähle komme ich auf ein Terminal, das normal funktioniert, aber "startx" kackt dann ab. Der Treiber listet die 210er-Karte, daran sollte es nicht liegen.

Woran kann es denn dann liegen?
Ich vermute ja, dass die verfügbaren Modi von meinem koreanischen Crossover Monitor nicht korrekt übertragen werden und die GPU daher nicht weiß, was sie machen soll. Könnte ich dem Treiber manuell mitgeben, was er für eine Auflösung fahren soll? Geht bestimmt, die Frage ist also: wie mache ich das?

Danke für alle Hinweise!
 
Also hab ich die nvidia-Treiber probiert - allerdings bekomme ich dann gar kein Bild mehr. Wenn ich den proprietären Treiber unter "zusätzliche Treiber aktiviere" und dann neustarte geht der BIOS/UEFI POST-Screen noch, grub auch und dann ist Ende. Ich kann mich zwar noch "blind" auf Konsole einloggen und rebooten (strg+alt-F1 und dann ohne Bild tippen), aber es kommt einfach kein Bild. Wenn ich im GRUB-Menü "ubuntu (upstart)" auswähle komme ich auf ein Terminal, das normal funktioniert, aber "startx" kackt dann ab. Der Treiber listet die 210er-Karte, daran sollte es nicht liegen.
Du solltest Dir die log Files vom X Server anschauen. Unter Ubuntu 16.04 LTS
Code:
/var/log/Xorg.0.log
. Ideal ist es, wenn Du per SSH auf Dein System zugreifen kannst, sprich einen zweiten Computer nutzen kannst.
 
Hm, ssh hab ich bisher nicht als server laufen, nur als Client. Log file schau ich mir mal an. (Ist Xubuntu 16.04.)

@fax: Was heißt denn bzw. welche ist die richtige Version?
Von noveau deinstallieren hate ich nirgends was gelesen, auch im wiki nicht. Wenn ich über "Zusätzliche Treiber" gehe sollte das doch passen?!?
 
Also im aktuellen log, jetzt wieder mit noveau, findet sich immer noch was zu nvidia, obwohl die "gepurged" sind / sein sollten:
[ 3.947] (II) LoadModule: "nvidia"
[ 3.947] (WW) Warning, couldn't open module nvidia
[ 3.947] (II) UnloadModule: "nvidia"
[ 3.947] (II) Unloading nvidia
[ 3.947] (EE) Failed to load module "nvidia" (module does not exist, 0)

Ich werde jetzt nochmal einen Versuch mit dem nvidia-Treiber machen. Macht denn "legacy" oder nicht einen großen Unterschied? Meine Karte müsste alt genug sein um von jeder Version unterstützt zu werden :-)
 

Anhänge

  • Bildschirmfoto_2017-08-04_18-48-56.png
    Bildschirmfoto_2017-08-04_18-48-56.png
    19,5 KB · Aufrufe: 54
Ich werde jetzt nochmal einen Versuch mit dem nvidia-Treiber machen. Macht denn "legacy" oder nicht einen großen Unterschied? Meine Karte müsste alt genug sein um von jeder Version unterstützt zu werden :-)
Ok, da haben wir wohl den Fehler gefunden, die GT210 ist zu alt für den aktuellen Treiber, du musst den legacy Treiber nutzen!

Wie hast Du den Treiber installiert?
 
Zusätzliche Treiber im Menü/Einstellungen gewählt, umstellen-neustarten-schwarz

- - - Updated - - -

war eben noch unterwegs...neuer Versuch mit legacy in T-5min - wobei in der 340er Treiber-Beschreibung von nvidia mehrfach die 210er vorkommt :confused:

wenn ich den "nicht-legacy" Treiber verwende, war folgende xorg.conf erstellt worden:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 340.102 (buildmeister@swio-display-x64-rhel04-19) Mon Jan 16 13:23:00 PST 2017

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
EndSubSection
EndSection
update folgt

- - - Updated - - -

geht mir schon 'n bisschen auf die Fipronil-Eier....mit dem legacy-Treiber ist es das gleiche Spiel - außer das keine xorg.conf angelegt wird.
Ich meine den hatte ich auch gestern schonmal probiert...

Das spuckt übrigens die Xorg.0.log-File aus:
attachment.php
 

Anhänge

  • IMG_20170804_230710.jpg
    IMG_20170804_230710.jpg
    90,5 KB · Aufrufe: 176
Da das mit der automatischen Installation anscheinend nicht hinhaut, hab ich dann doch den umständlicheren Weg der manuellen Installation gewählt (den ich vermeiden wollte) - geht aber auch nicht.
Reboot ohne Xserver, Nouveau geblacklisted --> reicht nicht, Installation fängt nicht an
neue initrd ohne nouveau erstellt --> läuft an, geht bis 100%, bricht dann aber trotzdem mit Fehlermeldung ab
Iich führe das skript als root aus, kein plan was da schief läuft....

Hab jetzt abgenervt wieder auf den alten Status umgestellt und werde aus dem zur Lektüre empfohlenen log-File der installation auch nicht wirklich schlau:

----pre-install script failed (passenderweise ganz zu Beginn)
----jede Menge signed/unsigned Fehler (die unproblematisch erscheinen)
zum Ende:
----case CPU_DOWN_FAILED (???)
----case CPU_DOWN_PREPARE (???)
make failed dann, Ende Gelände :wut:

- - - Updated - - -

Nachtrag: mir ist gerade eingefallen, dass ich das run-Skript nicht ge"chmodded" habe (chmod a+x), aber da ich es in root-Umgebung ausführe, darf ich da ja eigentlich eh alles, oder übersehe ich hier was?

- - - Updated - - -

und hier wäre dann das komplette Installer-Log
Code:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sat Aug  5 00:12:34 2017
installer version: 340.102

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

nvidia-installer command line:
    ./nvidia-installer

Unable to load: nvidia-installer ncurses v6 user interface

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 340.102.
-> Running distribution scripts
   executing: '/usr/lib/nvidia/pre-install'...
-> done.
-> The distribution-provided pre-install script failed!  Are you sure you want to continue? (Answer: Continue installation)
-> Performing CC sanity check with CC="/usr/bin/cc".
-> Kernel source path: '/lib/modules/4.10.0-30-generic/build'
-> Kernel output path: '/lib/modules/4.10.0-30-generic/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.0-30-generic/build SYSOUT=/lib/modules/4.10.0-30-generic/build NV_BUILD_MODULE_INSTANCES='...
   NVIDIA: calling KBUILD...
   make[1]: Verzeichnis „/usr/src/linux-headers-4.10.0-30-generic“ wird betreten
   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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/.tmp_versions ; rm -f /tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/.tmp_versions/*
   /usr/bin/make -f ./scripts/Makefile.build obj=/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel
     cc -Wp,-MD,/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/.nv.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/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 -inclu
   de ./include/linux/kconfig.h -Iubuntu/include  -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sib
   ling-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 -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv.o /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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)
                                           ^
   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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv.c:13:
   ./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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv.o"; fi; fi;
     cc -Wp,-MD,/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/.nv-acpi.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/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 -Iubuntu/include  -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setu
   p -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-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 -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz3148/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_acpi"'  -DKBUILD_MODNAME='"nvidia"' -c -o /tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-acpi.o /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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)
                                           ^
   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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-acpi.c:15:
   ./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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-acpi.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-acpi.o"; fi; fi;
     cc -Wp,-MD,/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/.nv-chrdev.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/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 -Iubuntu/include  -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe
    -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-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 -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/
   kernel/nv-chrdev.o /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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)
                                           ^
   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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-chrdev.c:15:
   ./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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-chrdev.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-chrdev.o"; fi; fi;
     cc -Wp,-MD,/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/.nv-cray.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/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 -Iubuntu/include  -D__KERNEL__ -fno-pie -Wall -Wundef -
   Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaratio
   n-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-cray.o /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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)
                                           ^
   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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-cray.c:15:
   ./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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-cray.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-cray.o"; fi; fi;
     cc -Wp,-MD,/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/.nv-dma.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/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 -Iubuntu/include  -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=
   kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-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 -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__K
   ERNEL__ -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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-dma.o /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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)
                                           ^
   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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-dma.c:15:
   ./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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-dma.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-dma.o"; fi; fi;
     cc -Wp,-MD,/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/.nv-drm.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/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 -Iubuntu/include  -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -
   fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-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 -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-drm.o /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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)
                                           ^
   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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-drm.c:15:
   ./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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-drm.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-drm.o"; fi; fi;
     cc -Wp,-MD,/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/.nv-gvi.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/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 -Iubuntu/include  -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-impli
   cit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-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 -Werro
   r=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-gvi.o /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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)
                                           ^
   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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-gvi.c:15:
   ./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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-gvi.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-gvi.o"; fi; fi;
     cc -Wp,-MD,/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/.nv-i2c.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/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 -Iubuntu/include  -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1
    -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-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 -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz3148/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 -Wuninitiali
   zed -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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-i2c.o /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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)
                                           ^
   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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-i2c.c:15:
   ./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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-i2c.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-i2c.o"; fi; fi;
     cc -Wp,-MD,/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/.nv-mempool.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/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 -Iubuntu/include  -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOT
   O -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-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 -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-mempool.o /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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)
                                           ^
   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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-mempool.c:15:
   ./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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-mempool.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-mempool.o"; fi; fi;
     cc -Wp,-MD,/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/.nv-mmap.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/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 -Iubuntu/include  -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -s
   td=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-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 -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-mmap.o /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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)
                                           ^
   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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-mmap.c:15:
   ./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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-mmap.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-mmap.o"; fi; fi;
     cc -Wp,-MD,/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/.nv-p2p.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/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 -Iubuntu/include  -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFI
   G_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 -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-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 -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz3148/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_p2p"'  -DKBUILD_MODNAME='"nvidia"' -c -o /tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-p2p.o /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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)
                                           ^
   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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-p2p.c:15:
   ./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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-p2p.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-p2p.o"; fi; fi;
     cc -Wp,-MD,/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/.nv-pat.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/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 -Iubuntu/include  -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=1024 -fstack-protecto
   r-strong -Wno-unused-but-set-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 -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-pat.o /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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)
                                           ^
   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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-pat.c:15:
   ./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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-linux.h:44,
                    from /tmp/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-pat.c: In function ‘nvidia_cpu_callback’:
   /tmp/selfgz3148/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/selfgz3148/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/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-pat.c:15:0:
   /tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-pat.c: In function ‘nv_init_pat_support’:
   /tmp/selfgz3148/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/selfgz3148/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/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-pat.c: In function ‘nv_teardown_pat_support’:
   /tmp/selfgz3148/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/selfgz3148/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
   scripts/Makefile.build:294: die Regel für Ziel „/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-pat.o“ scheiterte
   make[2]: *** [/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel/nv-pat.o] Fehler 1
   Makefile:1524: die Regel für Ziel „_module_/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel“ scheiterte
   make[1]: *** [_module_/tmp/selfgz3148/NVIDIA-Linux-x86_64-340.102/kernel] Fehler 2
   make[1]: Verzeichnis „/usr/src/linux-headers-4.10.0-30-generic“ wird verlassen
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   Makefile:185: die Regel für Ziel „nvidia.ko“ scheiterte
   make: *** [nvidia.ko] Fehler 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.
 
weiß nicht, wie das bei den *untus ausschaut, aber für die 210 sollten die nvidia-340 treiber passig sein.

Allerdings würde ich einfach bei nouveau bleiben. Die GT210 ist nun wirklich fern von potenter Karte, da ändert auch der proprietäre Treiber nix dran.
 
ja, auf dem "lassen's wir's lieber bei nouveau"-Stand bin ich nun auch....aber fallwrrk hat schon recht, extrem ätzende Scheiße!
Einfach installieren auf DAU-Niveau wäre natürlich an sich schon wünschenswert, aber weit darüber hinaus habe ich ja mittlerweile schon Stunden investiert und vieles hin- und her umgestellt und probiert - nix zu machen.
 
Ich möchte eigentlich bei dem Opensource Treiber bleiben, dennoch würde ich gern das Spulenfiepen in den Griff bekommen. Habe auch ein eckliges Tearing beim scrollen im Browser unter Linux.

Ich wollte noch eine kurze Rückmeldung zu dem hier geschilderten Problem geben. Das Geräusch(Fiepen) hat sich nachdem einschalten diverser Sparfunktionen im BIOS gelegt (C-States, CE1, Speedstep etc.). Das Tearing war wohl ein Problem im Firefox, durch deaktiveren der Hardwarebeschleunigung hat sich das Problem auch gelöst.
 
Ich hatte gleichermaßen ziemliche Probleme mit dem Catalyst und den Nvidia-Treibern. Die einzige Chance habe ich darin gesehen, dass die Grafikkarten einfach ohne Treiberinstallation funktionieren, wie auch andere unterstützte Geräte es üblicherweise mit Linux tun.
Deshalb bin ich sehr froh, dass AMD-Karten jetzt ohne Installation direkt einwandfrei laufen und ab Kernel 4.14 vielleicht auch endlich Freesync usw. gehen wird. Es wäre sehr wünschenswert, dass Nvidia sich auch um Nouveau kümmert, statt nur um die Closed-Source-Treiber, die eben dann nicht aus einem Guss mit der restlichen Linux-Infrastruktur sind und hier und da Probleme erzeugen, die die Community mangels Quellcode auch nicht mal eben beheben kann.
Bei AMD war es auch ein langer Weg, aber es zeigt sich, dass die Qualität durch die Öffnung einfach steigt und sich auch zunehmend Spieleentwickler um die Behebung von kleineren Bugs etc. kümmern, wenn ihr Spiel betroffen ist.
 
Es wäre sehr wünschenswert, dass Nvidia sich auch um Nouveau kümmert, statt nur um die Closed-Source-Treiber

Das wird leider auf absehbare Zeit ein Traum bleiben. Ich meine momentan ist es eher so, dass Nvidia die Arbeit behindert.
 
Hardwareluxx setzt keine externen Werbe- und Tracking-Cookies ein. Auf unserer Webseite finden Sie nur noch Cookies nach berechtigtem Interesse (Art. 6 Abs. 1 Satz 1 lit. f DSGVO) oder eigene funktionelle Cookies. Durch die Nutzung unserer Webseite erklären Sie sich damit einverstanden, dass wir diese Cookies setzen. Mehr Informationen und Möglichkeiten zur Einstellung unserer Cookies finden Sie in unserer Datenschutzerklärung.


Zurück
Oben Unten refresh