Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/var/tmp/portage/x11-drivers/nvidia-drivers-361.28/temp/build.log
 * Package: x11-drivers/nvidia-drivers-361.28
 * Repository: gentoo
 * Maintainer: jer@gentoo.org hardened@gentoo.org
 * USE: X abi_x86_64 acpi amd64 driver elibc_glibc gtk3 kernel_linux kms multilib userland_GNU uvm
 * FEATURES: preserve-libs sandbox
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/4.4.6-gentoo/build
* Found sources for kernel version:
* 4.4.6-gentoo
* Checking for suitable kernel configuration options...
 [ ok ]
 * Package: x11-drivers/nvidia-drivers-361.28
 * Repository: gentoo
 * Maintainer: jer@gentoo.org hardened@gentoo.org
 * USE: X abi_x86_64 acpi amd64 driver elibc_glibc gtk3 kernel_linux kms multilib userland_GNU uvm
 * FEATURES: preserve-libs sandbox
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/4.4.6-gentoo/build
* Found sources for kernel version:
* 4.4.6-gentoo
>>> Unpacking source...
>>> Unpacking NVIDIA-Linux-x86_64-361.28.run to /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work
>>> Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work
>>> Preparing source in /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work ...
* Preparing nvidia module
make -j1 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' ARCH=x86_64 IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/4.4.6-gentoo/build CC=x86_64-pc-linux-gnu-gcc NV_VERBOSE=1 clean module
rm -f -r conftest
make "CC=x86_64-pc-linux-gnu-gcc" KBUILD_OUTPUT=/lib/modules/4.4.6-gentoo/build KBUILD_VERBOSE=1 -C /usr/src/linux M=/var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel ARCH=x86_64 NV_KERNEL_SOURCES=/usr/src/linux NV_KERNEL_OUTPUT=/lib/modules/4.4.6-gentoo/build NV_KERNEL_MODULES="nvidia nvidia-uvm nvidia-modeset" INSTALL_MOD_DIR=kernel/drivers/video Q= clean
make[1]: Entering directory '/usr/src/linux-4.4.6-gentoo'
make -C /lib/modules/4.4.6-gentoo/build KBUILD_SRC=/usr/src/linux-4.4.6-gentoo \
-f /usr/src/linux-4.4.6-gentoo/Makefile clean
make[2]: Entering directory '/usr/src/linux-4.4.6-gentoo'
make -f /usr/src/linux-4.4.6-gentoo/scripts/Makefile.clean obj=/var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel
rm -rf /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/.tmp_versions
rm -f /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/Module.symvers
make[2]: Leaving directory '/usr/src/linux-4.4.6-gentoo'
make[1]: Leaving directory '/usr/src/linux-4.4.6-gentoo'
make "CC=x86_64-pc-linux-gnu-gcc" KBUILD_OUTPUT=/lib/modules/4.4.6-gentoo/build KBUILD_VERBOSE=1 -C /usr/src/linux M=/var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel ARCH=x86_64 NV_KERNEL_SOURCES=/usr/src/linux NV_KERNEL_OUTPUT=/lib/modules/4.4.6-gentoo/build NV_KERNEL_MODULES="nvidia nvidia-uvm nvidia-modeset" INSTALL_MOD_DIR=kernel/drivers/video Q= modules
make[1]: Entering directory '/usr/src/linux-4.4.6-gentoo'
make -C /lib/modules/4.4.6-gentoo/build KBUILD_SRC=/usr/src/linux-4.4.6-gentoo \
-f /usr/src/linux-4.4.6-gentoo/Makefile modules
make[2]: Entering directory '/usr/src/linux-4.4.6-gentoo'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
mkdir -p /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/.tmp_versions ; rm -f /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/.tmp_versions/*
make -f /usr/src/linux-4.4.6-gentoo/scripts/Makefile.build obj=/var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel
CONFTEST: INIT_WORK
CONFTEST: remap_pfn_range
CONFTEST: follow_pfn
CONFTEST: vmap
CONFTEST: set_pages_uc
CONFTEST: set_memory_uc
CONFTEST: set_memory_array_uc
CONFTEST: change_page_attr
CONFTEST: pci_get_class
CONFTEST: pci_choose_state
CONFTEST: vm_insert_page
CONFTEST: acpi_device_id
CONFTEST: acquire_console_sem
CONFTEST: console_lock
CONFTEST: kmem_cache_create
CONFTEST: on_each_cpu
CONFTEST: smp_call_function
CONFTEST: acpi_evaluate_integer
CONFTEST: ioremap_cache
CONFTEST: ioremap_wc
CONFTEST: acpi_walk_namespace
CONFTEST: pci_domain_nr
CONFTEST: pci_dma_mapping_error
CONFTEST: sg_alloc_table
CONFTEST: sg_init_table
CONFTEST: pci_get_domain_bus_and_slot
CONFTEST: get_num_physpages
CONFTEST: efi_enabled
CONFTEST: proc_create_data
CONFTEST: pde_data
CONFTEST: proc_remove
CONFTEST: pm_vt_switch_required
CONFTEST: drm_pci_set_busid
CONFTEST: xen_ioemu_inject_msi
CONFTEST: phys_to_dma
CONFTEST: get_dma_ops
CONFTEST: write_cr4
CONFTEST: of_parse_phandle
CONFTEST: for_each_online_node
CONFTEST: node_end_pfn
CONFTEST: pci_bus_address
CONFTEST: pci_stop_and_remove_bus_device
CONFTEST: pci_remove_bus_device
CONFTEST: remap_page_range
CONFTEST: address_space_init_once
CONFTEST: kbasename
CONFTEST: fatal_signal_pending
CONFTEST: list_cut_position
CONFTEST: hlist_for_each_entry
CONFTEST: vzalloc
CONFTEST: wait_on_bit_lock_argument_count
CONFTEST: bitmap_clear
CONFTEST: i2c_adapter
CONFTEST: pm_message_t
CONFTEST: irq_handler_t
CONFTEST: acpi_device_ops
CONFTEST: acpi_op_remove
CONFTEST: outer_flush_all
CONFTEST: proc_dir_entry
CONFTEST: scatterlist
CONFTEST: sg_table
CONFTEST: file_operations
CONFTEST: vm_operations_struct
CONFTEST: pci_save_state
CONFTEST: file_inode
CONFTEST: task_struct
CONFTEST: kuid_t
CONFTEST: dma_ops
CONFTEST: dma_map_ops
CONFTEST: noncoherent_swiotlb_dma_ops
CONFTEST: fault_flags
CONFTEST: atomic64_type
CONFTEST: address_space
CONFTEST: backing_dev_info
CONFTEST: kernel_write
CONFTEST: strnstr
CONFTEST: iterate_dir
CONFTEST: kstrtoull
CONFTEST: get_user_pages_unlocked
CONFTEST: dom0_kernel_present
CONFTEST: drm_available
CONFTEST: nvidia_grid_build
x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/.nv-frontend.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include -I/usr/src/linux-4.4.6-gentoo/arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -I/usr/src/linux-4.4.6-gentoo/include -Iinclude -I/usr/src/linux-4.4.6-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-4.4.6-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-4.4.6-gentoo/include/linux/kconfig.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -march=k8 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -DCC_HAVE_ASM_GOTO -I/var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc -I/var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"361.28\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Wno-sign-compare -Wno-format-extra-args -I/var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_frontend)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.o /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c
In file included from ./include/linux/preempt.h:10:0,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/linux/list.h: In function β€˜INIT_LIST_HEAD’:
./include/linux/list.h:27:6: error: dereferencing pointer to incomplete type
list->next = list;
 ^
./include/linux/list.h:28:6: error: dereferencing pointer to incomplete type
list->prev = list;
 ^
./include/linux/list.h: In function β€˜__list_add’:
./include/linux/list.h:42:6: error: dereferencing pointer to incomplete type
next->prev = new;
 ^
./include/linux/list.h:43:5: error: dereferencing pointer to incomplete type
new->next = next;
 ^
./include/linux/list.h:44:5: error: dereferencing pointer to incomplete type
new->prev = prev;
 ^
./include/linux/list.h:45:6: error: dereferencing pointer to incomplete type
prev->next = new;
 ^
./include/linux/list.h: In function β€˜list_add’:
./include/linux/list.h:63:28: error: dereferencing pointer to incomplete type
__list_add(new, head, head->next);
 ^
./include/linux/list.h: In function β€˜list_add_tail’:
./include/linux/list.h:77:22: error: dereferencing pointer to incomplete type
__list_add(new, head->prev, head);
 ^
./include/linux/list.h: In function β€˜__list_del’:
./include/linux/list.h:89:6: error: dereferencing pointer to incomplete type
next->prev = prev;
 ^
In file included from ./include/asm-generic/bug.h:4:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bug.h:35,
from ./include/linux/bug.h:4,
from ./include/linux/mmdebug.h:4,
from ./include/linux/mm.h:8,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/linux/list.h:90:2: error: dereferencing pointer to incomplete type
WRITE_ONCE(prev->next, next);
 ^
./include/linux/list.h:90:2: error: dereferencing pointer to incomplete type
WRITE_ONCE(prev->next, next);
 ^
./include/linux/list.h:90:2: error: dereferencing pointer to incomplete type
WRITE_ONCE(prev->next, next);
 ^
./include/linux/list.h:90:2: error: dereferencing pointer to incomplete type
WRITE_ONCE(prev->next, next);
 ^
In file included from ./include/linux/preempt.h:10:0,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/linux/list.h: In function β€˜__list_del_entry’:
./include/linux/list.h:102:18: error: dereferencing pointer to incomplete type
__list_del(entry->prev, entry->next);
 ^
./include/linux/list.h:102:31: error: dereferencing pointer to incomplete type
__list_del(entry->prev, entry->next);
 ^
./include/linux/list.h: In function β€˜list_del’:
./include/linux/list.h:107:18: error: dereferencing pointer to incomplete type
__list_del(entry->prev, entry->next);
 ^
./include/linux/list.h:107:31: error: dereferencing pointer to incomplete type
__list_del(entry->prev, entry->next);
 ^
./include/linux/list.h:108:7: error: dereferencing pointer to incomplete type
entry->next = LIST_POISON1;
 ^
./include/linux/list.h:109:7: error: dereferencing pointer to incomplete type
entry->prev = LIST_POISON2;
 ^
./include/linux/list.h: In function β€˜list_replace’:
./include/linux/list.h:126:5: error: dereferencing pointer to incomplete type
new->next = old->next;
 ^
./include/linux/list.h:126:17: error: dereferencing pointer to incomplete type
new->next = old->next;
 ^
./include/linux/list.h:127:5: error: dereferencing pointer to incomplete type
new->next->prev = new;
 ^
./include/linux/list.h:128:5: error: dereferencing pointer to incomplete type
new->prev = old->prev;
 ^
./include/linux/list.h:128:17: error: dereferencing pointer to incomplete type
new->prev = old->prev;
 ^
./include/linux/list.h:129:5: error: dereferencing pointer to incomplete type
new->prev->next = new;
 ^
./include/linux/list.h: In function β€˜list_is_last’:
./include/linux/list.h:180:13: error: dereferencing pointer to incomplete type
return list->next == head;
 ^
./include/linux/list.h: In function β€˜list_empty’:
./include/linux/list.h:189:13: error: dereferencing pointer to incomplete type
return head->next == head;
 ^
./include/linux/list.h: In function β€˜list_empty_careful’:
./include/linux/list.h:207:31: error: dereferencing pointer to incomplete type
struct list_head *next = head->next;
 ^
./include/linux/list.h:208:40: error: dereferencing pointer to incomplete type
return (next == head) && (next == head->prev);
 ^
./include/linux/list.h: In function β€˜list_rotate_left’:
./include/linux/list.h:220:15: error: dereferencing pointer to incomplete type
first = head->next;
 ^
./include/linux/list.h: In function β€˜list_is_singular’:
./include/linux/list.h:231:35: error: dereferencing pointer to incomplete type
return !list_empty(head) && (head->next == head->prev);
 ^
./include/linux/list.h:231:49: error: dereferencing pointer to incomplete type
return !list_empty(head) && (head->next == head->prev);
 ^
./include/linux/list.h: In function β€˜__list_cut_position’:
./include/linux/list.h:237:37: error: dereferencing pointer to incomplete type
struct list_head *new_first = entry->next;
 ^
./include/linux/list.h:238:6: error: dereferencing pointer to incomplete type
list->next = head->next;
 ^
./include/linux/list.h:238:19: error: dereferencing pointer to incomplete type
list->next = head->next;
 ^
./include/linux/list.h:239:6: error: dereferencing pointer to incomplete type
list->next->prev = list;
 ^
./include/linux/list.h:240:6: error: dereferencing pointer to incomplete type
list->prev = entry;
 ^
./include/linux/list.h:241:7: error: dereferencing pointer to incomplete type
entry->next = list;
 ^
./include/linux/list.h:242:6: error: dereferencing pointer to incomplete type
head->next = new_first;
 ^
./include/linux/list.h:243:11: error: dereferencing pointer to incomplete type
new_first->prev = head;
 ^
./include/linux/list.h: In function β€˜list_cut_position’:
./include/linux/list.h:266:8: error: dereferencing pointer to incomplete type
(head->next != entry && head != entry))
 ^
./include/linux/list.h: In function β€˜__list_splice’:
./include/linux/list.h:278:32: error: dereferencing pointer to incomplete type
struct list_head *first = list->next;
 ^
./include/linux/list.h:279:31: error: dereferencing pointer to incomplete type
struct list_head *last = list->prev;
 ^
./include/linux/list.h:281:7: error: dereferencing pointer to incomplete type
first->prev = prev;
 ^
./include/linux/list.h:282:6: error: dereferencing pointer to incomplete type
prev->next = first;
 ^
./include/linux/list.h:284:6: error: dereferencing pointer to incomplete type
last->next = next;
 ^
./include/linux/list.h:285:6: error: dereferencing pointer to incomplete type
next->prev = last;
 ^
./include/linux/list.h: In function β€˜list_splice’:
./include/linux/list.h:297:33: error: dereferencing pointer to incomplete type
__list_splice(list, head, head->next);
 ^
./include/linux/list.h: In function β€˜list_splice_tail’:
./include/linux/list.h:309:27: error: dereferencing pointer to incomplete type
__list_splice(list, head->prev, head);
 ^
./include/linux/list.h: In function β€˜list_splice_init’:
./include/linux/list.h:323:33: error: dereferencing pointer to incomplete type
__list_splice(list, head, head->next);
 ^
./include/linux/list.h: In function β€˜list_splice_tail_init’:
./include/linux/list.h:340:27: error: dereferencing pointer to incomplete type
__list_splice(list, head->prev, head);
 ^
./include/linux/list.h: In function β€˜INIT_HLIST_NODE’:
./include/linux/list.h:600:3: error: dereferencing pointer to incomplete type
h->next = NULL;
 ^
./include/linux/list.h:601:3: error: dereferencing pointer to incomplete type
h->pprev = NULL;
 ^
./include/linux/list.h: In function β€˜hlist_unhashed’:
./include/linux/list.h:606:11: error: dereferencing pointer to incomplete type
return !h->pprev;
 ^
./include/linux/list.h: In function β€˜hlist_empty’:
./include/linux/list.h:611:11: error: dereferencing pointer to incomplete type
return !h->first;
 ^
./include/linux/list.h: In function β€˜__hlist_del’:
./include/linux/list.h:616:29: error: dereferencing pointer to incomplete type
struct hlist_node *next = n->next;
 ^
./include/linux/list.h:617:31: error: dereferencing pointer to incomplete type
struct hlist_node **pprev = n->pprev;
 ^
./include/linux/list.h:621:7: error: dereferencing pointer to incomplete type
next->pprev = pprev;
 ^
./include/linux/list.h: In function β€˜hlist_del’:
./include/linux/list.h:627:3: error: dereferencing pointer to incomplete type
n->next = LIST_POISON1;
 ^
./include/linux/list.h:628:3: error: dereferencing pointer to incomplete type
n->pprev = LIST_POISON2;
 ^
./include/linux/list.h: In function β€˜hlist_add_head’:
./include/linux/list.h:641:30: error: dereferencing pointer to incomplete type
struct hlist_node *first = h->first;
 ^
./include/linux/list.h:642:3: error: dereferencing pointer to incomplete type
n->next = first;
 ^
./include/linux/list.h:644:8: error: dereferencing pointer to incomplete type
first->pprev = &n->next;
 ^
./include/linux/list.h:644:20: error: dereferencing pointer to incomplete type
first->pprev = &n->next;
 ^
./include/linux/list.h:645:3: error: dereferencing pointer to incomplete type
h->first = n;
 ^
./include/linux/list.h:646:3: error: dereferencing pointer to incomplete type
n->pprev = &h->first;
 ^
./include/linux/list.h:646:15: error: dereferencing pointer to incomplete type
n->pprev = &h->first;
 ^
./include/linux/list.h: In function β€˜hlist_add_before’:
./include/linux/list.h:653:3: error: dereferencing pointer to incomplete type
n->pprev = next->pprev;
 ^
./include/linux/list.h:653:17: error: dereferencing pointer to incomplete type
n->pprev = next->pprev;
 ^
./include/linux/list.h:654:3: error: dereferencing pointer to incomplete type
n->next = next;
 ^
./include/linux/list.h:655:6: error: dereferencing pointer to incomplete type
next->pprev = &n->next;
 ^
./include/linux/list.h:655:18: error: dereferencing pointer to incomplete type
next->pprev = &n->next;
 ^
./include/linux/list.h:656:5: error: dereferencing pointer to incomplete type
*(n->pprev) = n;
 ^
./include/linux/list.h: In function β€˜hlist_add_behind’:
./include/linux/list.h:662:3: error: dereferencing pointer to incomplete type
n->next = prev->next;
 ^
./include/linux/list.h:662:16: error: dereferencing pointer to incomplete type
n->next = prev->next;
 ^
./include/linux/list.h:663:6: error: dereferencing pointer to incomplete type
prev->next = n;
 ^
./include/linux/list.h:664:3: error: dereferencing pointer to incomplete type
n->pprev = &prev->next;
 ^
./include/linux/list.h:664:18: error: dereferencing pointer to incomplete type
n->pprev = &prev->next;
 ^
./include/linux/list.h:666:7: error: dereferencing pointer to incomplete type
if (n->next)
 ^
./include/linux/list.h:667:4: error: dereferencing pointer to incomplete type
n->next->pprev = &n->next;
 ^
./include/linux/list.h:667:23: error: dereferencing pointer to incomplete type
n->next->pprev = &n->next;
 ^
./include/linux/list.h: In function β€˜hlist_add_fake’:
./include/linux/list.h:673:3: error: dereferencing pointer to incomplete type
n->pprev = &n->next;
 ^
./include/linux/list.h:673:15: error: dereferencing pointer to incomplete type
n->pprev = &n->next;
 ^
./include/linux/list.h: At top level:
./include/linux/list.h:676:15: error: unknown type name β€˜bool’
static inline bool hlist_fake(struct hlist_node *h)
 ^
./include/linux/list.h: In function β€˜hlist_fake’:
./include/linux/list.h:678:10: error: dereferencing pointer to incomplete type
return h->pprev == &h->next;
 ^
./include/linux/list.h:678:23: error: dereferencing pointer to incomplete type
return h->pprev == &h->next;
 ^
./include/linux/list.h: In function β€˜hlist_move_list’:
./include/linux/list.h:688:5: error: dereferencing pointer to incomplete type
new->first = old->first;
 ^
./include/linux/list.h:688:18: error: dereferencing pointer to incomplete type
new->first = old->first;
 ^
./include/linux/list.h:689:9: error: dereferencing pointer to incomplete type
if (new->first)
 ^
./include/linux/list.h:690:6: error: dereferencing pointer to incomplete type
new->first->pprev = &new->first;
 ^
./include/linux/list.h:690:27: error: dereferencing pointer to incomplete type
new->first->pprev = &new->first;
 ^
./include/linux/list.h:691:5: error: dereferencing pointer to incomplete type
old->first = NULL;
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:5:0,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/percpu.h: In function β€˜x86_this_cpu_constant_test_bit’:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/percpu.h:523:59: error: β€˜BITS_PER_LONG’ undeclared (first use in this function)
unsigned long __percpu *a = (unsigned long *)addr + nr / BITS_PER_LONG;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/percpu.h:523:59: note: each undeclared identifier is reported only once for each function it appears in
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6:0,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/linux/thread_info.h: At top level:
./include/linux/thread_info.h:24:4: error: unknown type name β€˜u32’
u32 __user *uaddr;
 ^
./include/linux/thread_info.h:25:4: error: unknown type name β€˜u32’
u32 val;
 ^
./include/linux/thread_info.h:26:4: error: unknown type name β€˜u32’
u32 flags;
 ^
./include/linux/thread_info.h:27:4: error: unknown type name β€˜u32’
u32 bitset;
 ^
./include/linux/thread_info.h:28:4: error: unknown type name β€˜u64’
u64 time;
 ^
./include/linux/thread_info.h:29:4: error: unknown type name β€˜u32’
u32 __user *uaddr2;
 ^
./include/linux/thread_info.h:33:4: error: unknown type name β€˜clockid_t’
clockid_t clockid;
 ^
./include/linux/thread_info.h:38:4: error: unknown type name β€˜u64’
u64 expires;
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/ptrace.h:5:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/alternative.h:8,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bitops.h:16,
from ./include/linux/bitops.h:36,
from ./include/linux/thread_info.h:53,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/page_types.h:61:15: error: unknown type name β€˜phys_addr_t’
static inline phys_addr_t get_max_mapped(void)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/page_types.h: In function β€˜get_max_mapped’:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/page_types.h:63:10: error: β€˜phys_addr_t’ undeclared (first use in this function)
return (phys_addr_t)max_pfn_mapped << PAGE_SHIFT;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/page_types.h:63:22: error: expected β€˜;’ before β€˜max_pfn_mapped’
return (phys_addr_t)max_pfn_mapped << PAGE_SHIFT;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/page_types.h: At top level:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/page_types.h:66:1: error: unknown type name β€˜bool’
bool pfn_range_is_mapped(unsigned long start_pfn, unsigned long end_pfn);
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/alternative.h:8:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bitops.h:16,
from ./include/linux/bitops.h:36,
from ./include/linux/thread_info.h:53,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/ptrace.h:86:67: error: unknown type name β€˜u32’
extern unsigned long syscall_trace_enter_phase1(struct pt_regs *, u32 arch);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/ptrace.h:87:58: error: unknown type name β€˜u32’
extern long syscall_trace_enter_phase2(struct pt_regs *, u32 arch,
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/ptrace.h:125:15: error: unknown type name β€˜bool’
static inline bool user_64bit_mode(struct pt_regs *regs)
 ^
In file included from ./include/asm-generic/bug.h:4:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bug.h:35,
from ./include/linux/bug.h:4,
from ./include/linux/mmdebug.h:4,
from ./include/linux/mm.h:8,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/ptrace.h: In function β€˜regs_get_register’:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/ptrace.h:175:24: error: expected expression before β€˜struct’
if (unlikely(offset > MAX_REG_OFFSET))
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bitops.h:16:0,
from ./include/linux/bitops.h:36,
from ./include/linux/thread_info.h:53,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/alternative.h: At top level:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/alternative.h:47:2: error: unknown type name β€˜s32’
s32 instr_offset; /* original instruction */
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/alternative.h:48:2: error: unknown type name β€˜s32’
s32 repl_offset; /* offset to replacement instruction */
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/alternative.h:49:2: error: unknown type name β€˜u16’
u16 cpuid; /* cpuid bit set for replacement */
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/alternative.h:50:2: error: unknown type name β€˜u8’
u8 instrlen; /* length of original instruction */
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/alternative.h:51:2: error: unknown type name β€˜u8’
u8 replacementlen; /* length of new instruction */
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/alternative.h:52:2: error: unknown type name β€˜u8’
u8 padlen; /* length of build-time padding */
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/alternative.h:73:8: error: unknown type name β€˜bool’
extern bool skip_smp_alternatives;
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/alternative.h:158:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bitops.h:16,
from ./include/linux/bitops.h:36,
from ./include/linux/thread_info.h:53,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/cpufeature.h:414:8: error: unknown type name β€˜bool’
extern bool __static_cpu_has_safe(u16 bit);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/cpufeature.h:414:35: error: unknown type name β€˜u16’
extern bool __static_cpu_has_safe(u16 bit);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/cpufeature.h:421:31: error: unknown type name β€˜bool’
static __always_inline __pure bool __static_cpu_has(u16 bit)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/cpufeature.h:421:53: error: unknown type name β€˜u16’
static __always_inline __pure bool __static_cpu_has(u16 bit)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/cpufeature.h:504:31: error: unknown type name β€˜bool’
static __always_inline __pure bool _static_cpu_has_safe(u16 bit)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/cpufeature.h:504:57: error: unknown type name β€˜u16’
static __always_inline __pure bool _static_cpu_has_safe(u16 bit)
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bitops.h:16:0,
from ./include/linux/bitops.h:36,
from ./include/linux/thread_info.h:53,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/alternative.h:254:62: error: unknown type name β€˜size_t’
extern void *text_poke_early(void *addr, const void *opcode, size_t len);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/alternative.h:270:56: error: unknown type name β€˜size_t’
extern void *text_poke(void *addr, const void *opcode, size_t len);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/alternative.h:272:59: error: unknown type name β€˜size_t’
extern void *text_poke_bp(void *addr, const void *opcode, size_t len, void *handler);
 ^
In file included from ./include/linux/bitops.h:36:0,
from ./include/linux/thread_info.h:53,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bitops.h:25:3: error: #error "Unexpected BITS_PER_LONG"
# error "Unexpected BITS_PER_LONG"
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bitops.h: In function β€˜set_bit’:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bitops.h:77:13: error: β€˜u8’ undeclared (first use in this function)
: "iq" ((u8)CONST_MASK(nr))
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bitops.h: In function β€˜clear_bit’:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bitops.h:115:13: error: β€˜u8’ undeclared (first use in this function)
: "iq" ((u8)~CONST_MASK(nr)));
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bitops.h:115:16: error: expected β€˜)’ before β€˜~’ token
: "iq" ((u8)~CONST_MASK(nr)));
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bitops.h: In function β€˜change_bit’:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bitops.h:188:13: error: β€˜u8’ undeclared (first use in this function)
: "iq" ((u8)CONST_MASK(nr)));
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bitops.h: In function β€˜constant_test_bit’:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bitops.h:310:25: error: β€˜BITS_PER_LONG’ undeclared (first use in this function)
return ((1UL << (nr & (BITS_PER_LONG-1))) &
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bitops.h:311:15: error: β€˜_BITOPS_LONG_SHIFT’ undeclared (first use in this function)
(addr[nr >> _BITOPS_LONG_SHIFT])) != 0;
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bitops.h:498:0,
from ./include/linux/bitops.h:36,
from ./include/linux/thread_info.h:53,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/asm-generic/bitops/sched.h: In function β€˜sched_find_first_bit’:
./include/asm-generic/bitops/sched.h:27:2: error: #error BITS_PER_LONG not defined
#error BITS_PER_LONG not defined
 ^
In file included from ./include/linux/thread_info.h:53:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/linux/bitops.h: At top level:
./include/linux/bitops.h:202:37: error: unknown type name β€˜u64’
static inline unsigned long __ffs64(u64 word)
 ^
./include/linux/bitops.h:208:2: error: #error BITS_PER_LONG not 32 or 64
#error BITS_PER_LONG not 32 or 64
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/page.h:20:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:11,
from ./include/linux/thread_info.h:54,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/linux/range.h:5:2: error: unknown type name β€˜u64’
u64 start;
 ^
./include/linux/range.h:6:2: error: unknown type name β€˜u64’
u64 end;
 ^
./include/linux/range.h:10:3: error: unknown type name β€˜u64’
u64 start, u64 end);
 ^
./include/linux/range.h:10:14: error: unknown type name β€˜u64’
u64 start, u64 end);
 ^
./include/linux/range.h:14:5: error: unknown type name β€˜u64’
u64 start, u64 end);
 ^
./include/linux/range.h:14:16: error: unknown type name β€˜u64’
u64 start, u64 end);
 ^
./include/linux/range.h:16:50: error: unknown type name β€˜u64’
void subtract_range(struct range *range, int az, u64 start, u64 end);
 ^
./include/linux/range.h:16:61: error: unknown type name β€˜u64’
void subtract_range(struct range *range, int az, u64 start, u64 end);
 ^
./include/linux/range.h:23:15: error: unknown type name β€˜resource_size_t’
static inline resource_size_t cap_resource(u64 val)
 ^
./include/linux/range.h:23:44: error: unknown type name β€˜u64’
static inline resource_size_t cap_resource(u64 val)
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:11:0,
from ./include/linux/thread_info.h:54,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/page.h:65:8: error: unknown type name β€˜bool’
extern bool __virt_addr_valid(unsigned long kaddr);
 ^
In file included from ./include/asm-generic/getorder.h:7:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/page.h:71,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:11,
from ./include/linux/thread_info.h:54,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/linux/log2.h:32:17: error: unknown type name β€˜u32’
int __ilog2_u32(u32 n)
 ^
./include/linux/log2.h:40:17: error: unknown type name β€˜u64’
int __ilog2_u64(u64 n)
 ^
./include/linux/log2.h:52:1: error: unknown type name β€˜bool’
bool is_power_of_2(unsigned long n)
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/ptrace.h:5:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/alternative.h:8,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bitops.h:16,
from ./include/linux/bitops.h:36,
from ./include/linux/thread_info.h:53,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/pgtable_types.h: In function β€˜pgd_flags’:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/pgtable_types.h:234:31: error: β€˜phys_addr_t’ undeclared (first use in this function)
return native_pgd_val(pgd) & PTE_FLAGS_MASK;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/pgtable_types.h: In function β€˜pud_pfn_mask’:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/pgtable_types.h:282:10: error: β€˜phys_addr_t’ undeclared (first use in this function)
return PHYSICAL_PUD_PAGE_MASK;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/pgtable_types.h: In function β€˜pmd_pfn_mask’:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/pgtable_types.h:300:10: error: β€˜phys_addr_t’ undeclared (first use in this function)
return PHYSICAL_PMD_PAGE_MASK;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/pgtable_types.h: In function β€˜pte_flags’:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/pgtable_types.h:327:31: error: β€˜phys_addr_t’ undeclared (first use in this function)
return native_pte_val(pte) & PTE_FLAGS_MASK;
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:18:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:54,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/pgtable_types.h: At top level:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/pgtable_types.h:333:8: error: unknown type name β€˜uint16_t’
extern uint16_t __cachemode2pte_tbl[_PAGE_CACHE_MODE_NUM];
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/pgtable_types.h:334:8: error: unknown type name β€˜uint8_t’
extern uint8_t __pte2cachemode_tbl[8];
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/pgtable_types.h:443:8: error: unknown type name β€˜phys_addr_t’
extern phys_addr_t slow_virt_to_phys(void *__address);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/pgtable_types.h:444:48: error: unknown type name β€˜u64’
extern int kernel_map_pages_in_pgd(pgd_t *pgd, u64 pfn, unsigned long address,
 ^
In file included from ./include/linux/cpumask.h:11:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/cpumask.h:4,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:10,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:20,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:54,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/linux/bitmap.h:172:36: error: unknown type name β€˜bool’
extern int bitmap_print_to_pagebuf(bool list, char *buf,
 ^
./include/linux/bitmap.h: In function β€˜bitmap_zero’:
./include/linux/bitmap.h:183:6: error: β€˜BITS_PER_LONG’ undeclared (first use in this function)
if (small_const_nbits(nbits))
 ^
./include/linux/bitmap.h: In function β€˜bitmap_fill’:
./include/linux/bitmap.h:194:7: error: β€˜BITS_PER_LONG’ undeclared (first use in this function)
if (!small_const_nbits(nbits)) {
 ^
./include/linux/bitmap.h: In function β€˜bitmap_copy’:
./include/linux/bitmap.h:204:6: error: β€˜BITS_PER_LONG’ undeclared (first use in this function)
if (small_const_nbits(nbits))
 ^
./include/linux/bitmap.h: In function β€˜bitmap_and’:
./include/linux/bitmap.h:215:6: error: β€˜BITS_PER_LONG’ undeclared (first use in this function)
if (small_const_nbits(nbits))
 ^
./include/linux/bitmap.h: In function β€˜bitmap_or’:
./include/linux/bitmap.h:223:6: error: β€˜BITS_PER_LONG’ undeclared (first use in this function)
if (small_const_nbits(nbits))
 ^
./include/linux/bitmap.h: In function β€˜bitmap_xor’:
./include/linux/bitmap.h:232:6: error: β€˜BITS_PER_LONG’ undeclared (first use in this function)
if (small_const_nbits(nbits))
 ^
./include/linux/bitmap.h: In function β€˜bitmap_andnot’:
./include/linux/bitmap.h:241:6: error: β€˜BITS_PER_LONG’ undeclared (first use in this function)
if (small_const_nbits(nbits))
 ^
./include/linux/bitmap.h: In function β€˜bitmap_complement’:
./include/linux/bitmap.h:249:6: error: β€˜BITS_PER_LONG’ undeclared (first use in this function)
if (small_const_nbits(nbits))
 ^
./include/linux/bitmap.h: In function β€˜bitmap_equal’:
./include/linux/bitmap.h:258:6: error: β€˜BITS_PER_LONG’ undeclared (first use in this function)
if (small_const_nbits(nbits))
 ^
./include/linux/bitmap.h: In function β€˜bitmap_intersects’:
./include/linux/bitmap.h:267:6: error: β€˜BITS_PER_LONG’ undeclared (first use in this function)
if (small_const_nbits(nbits))
 ^
./include/linux/bitmap.h: In function β€˜bitmap_subset’:
./include/linux/bitmap.h:276:6: error: β€˜BITS_PER_LONG’ undeclared (first use in this function)
if (small_const_nbits(nbits))
 ^
./include/linux/bitmap.h: In function β€˜bitmap_empty’:
./include/linux/bitmap.h:284:6: error: β€˜BITS_PER_LONG’ undeclared (first use in this function)
if (small_const_nbits(nbits))
 ^
./include/linux/bitmap.h: In function β€˜bitmap_full’:
./include/linux/bitmap.h:292:6: error: β€˜BITS_PER_LONG’ undeclared (first use in this function)
if (small_const_nbits(nbits))
 ^
./include/linux/bitmap.h: In function β€˜bitmap_weight’:
./include/linux/bitmap.h:300:6: error: β€˜BITS_PER_LONG’ undeclared (first use in this function)
if (small_const_nbits(nbits))
 ^
./include/linux/bitmap.h: In function β€˜bitmap_shift_right’:
./include/linux/bitmap.h:308:6: error: β€˜BITS_PER_LONG’ undeclared (first use in this function)
if (small_const_nbits(nbits))
 ^
./include/linux/bitmap.h: In function β€˜bitmap_shift_left’:
./include/linux/bitmap.h:317:6: error: β€˜BITS_PER_LONG’ undeclared (first use in this function)
if (small_const_nbits(nbits))
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/cpumask.h:4:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:10,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:20,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:54,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/linux/cpumask.h: At top level:
./include/linux/cpumask.h:15:26: error: expected specifier-qualifier-list before β€˜DECLARE_BITMAP’
typedef struct cpumask { DECLARE_BITMAP(bits, NR_CPUS); } cpumask_t;
 ^
./include/linux/cpumask.h: In function β€˜cpumask_first’:
./include/linux/cpumask.h:174:24: error: β€˜const struct cpumask’ has no member named β€˜bits’
return find_first_bit(cpumask_bits(srcp), nr_cpumask_bits);
 ^
./include/linux/cpumask.h: In function β€˜cpumask_next’:
./include/linux/cpumask.h:189:23: error: β€˜const struct cpumask’ has no member named β€˜bits’
return find_next_bit(cpumask_bits(srcp), nr_cpumask_bits, n+1);
 ^
./include/linux/cpumask.h: In function β€˜cpumask_next_zero’:
./include/linux/cpumask.h:204:28: error: β€˜const struct cpumask’ has no member named β€˜bits’
return find_next_zero_bit(cpumask_bits(srcp), nr_cpumask_bits, n+1);
 ^
./include/linux/cpumask.h: In function β€˜cpumask_set_cpu’:
./include/linux/cpumask.h:272:30: error: β€˜struct cpumask’ has no member named β€˜bits’
set_bit(cpumask_check(cpu), cpumask_bits(dstp));
 ^
./include/linux/cpumask.h: In function β€˜cpumask_clear_cpu’:
./include/linux/cpumask.h:282:32: error: β€˜struct cpumask’ has no member named β€˜bits’
clear_bit(cpumask_check(cpu), cpumask_bits(dstp));
 ^
In file included from ./include/linux/bitops.h:36:0,
from ./include/linux/thread_info.h:53,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/linux/cpumask.h: In function β€˜cpumask_test_cpu’:
./include/linux/cpumask.h:294:38: error: β€˜const struct cpumask’ has no member named β€˜bits’
return test_bit(cpumask_check(cpu), cpumask_bits((cpumask)));
 ^
./include/linux/cpumask.h:294:38: error: β€˜const struct cpumask’ has no member named β€˜bits’
return test_bit(cpumask_check(cpu), cpumask_bits((cpumask)));
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/cpumask.h:4:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:10,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:20,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:54,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/linux/cpumask.h: In function β€˜cpumask_test_and_set_cpu’:
./include/linux/cpumask.h:308:46: error: β€˜struct cpumask’ has no member named β€˜bits’
return test_and_set_bit(cpumask_check(cpu), cpumask_bits(cpumask));
 ^
./include/linux/cpumask.h: In function β€˜cpumask_test_and_clear_cpu’:
./include/linux/cpumask.h:322:48: error: β€˜struct cpumask’ has no member named β€˜bits’
return test_and_clear_bit(cpumask_check(cpu), cpumask_bits(cpumask));
 ^
./include/linux/cpumask.h: In function β€˜cpumask_setall’:
./include/linux/cpumask.h:331:14: error: β€˜struct cpumask’ has no member named β€˜bits’
bitmap_fill(cpumask_bits(dstp), nr_cpumask_bits);
 ^
./include/linux/cpumask.h: In function β€˜cpumask_clear’:
./include/linux/cpumask.h:340:14: error: β€˜struct cpumask’ has no member named β€˜bits’
bitmap_zero(cpumask_bits(dstp), nr_cpumask_bits);
 ^
./include/linux/cpumask.h: In function β€˜cpumask_and’:
./include/linux/cpumask.h:355:20: error: β€˜struct cpumask’ has no member named β€˜bits’
return bitmap_and(cpumask_bits(dstp), cpumask_bits(src1p),
 ^
./include/linux/cpumask.h:355:40: error: β€˜const struct cpumask’ has no member named β€˜bits’
return bitmap_and(cpumask_bits(dstp), cpumask_bits(src1p),
 ^
./include/linux/cpumask.h:356:12: error: β€˜const struct cpumask’ has no member named β€˜bits’
cpumask_bits(src2p), nr_cpumask_bits);
 ^
./include/linux/cpumask.h: In function β€˜cpumask_or’:
./include/linux/cpumask.h:368:12: error: β€˜struct cpumask’ has no member named β€˜bits’
bitmap_or(cpumask_bits(dstp), cpumask_bits(src1p),
 ^
./include/linux/cpumask.h:368:32: error: β€˜const struct cpumask’ has no member named β€˜bits’
bitmap_or(cpumask_bits(dstp), cpumask_bits(src1p),
 ^
./include/linux/cpumask.h:369:11: error: β€˜const struct cpumask’ has no member named β€˜bits’
cpumask_bits(src2p), nr_cpumask_bits);
 ^
./include/linux/cpumask.h: In function β€˜cpumask_xor’:
./include/linux/cpumask.h:382:13: error: β€˜struct cpumask’ has no member named β€˜bits’
bitmap_xor(cpumask_bits(dstp), cpumask_bits(src1p),
 ^
./include/linux/cpumask.h:382:33: error: β€˜const struct cpumask’ has no member named β€˜bits’
bitmap_xor(cpumask_bits(dstp), cpumask_bits(src1p),
 ^
./include/linux/cpumask.h:383:12: error: β€˜const struct cpumask’ has no member named β€˜bits’
cpumask_bits(src2p), nr_cpumask_bits);
 ^
./include/linux/cpumask.h: In function β€˜cpumask_andnot’:
./include/linux/cpumask.h:398:23: error: β€˜struct cpumask’ has no member named β€˜bits’
return bitmap_andnot(cpumask_bits(dstp), cpumask_bits(src1p),
 ^
./include/linux/cpumask.h:398:43: error: β€˜const struct cpumask’ has no member named β€˜bits’
return bitmap_andnot(cpumask_bits(dstp), cpumask_bits(src1p),
 ^
./include/linux/cpumask.h:399:8: error: β€˜const struct cpumask’ has no member named β€˜bits’
cpumask_bits(src2p), nr_cpumask_bits);
 ^
./include/linux/cpumask.h: In function β€˜cpumask_complement’:
./include/linux/cpumask.h:410:20: error: β€˜struct cpumask’ has no member named β€˜bits’
bitmap_complement(cpumask_bits(dstp), cpumask_bits(srcp),
 ^
./include/linux/cpumask.h:410:40: error: β€˜const struct cpumask’ has no member named β€˜bits’
bitmap_complement(cpumask_bits(dstp), cpumask_bits(srcp),
 ^
./include/linux/cpumask.h: At top level:
./include/linux/cpumask.h:419:15: error: unknown type name β€˜bool’
static inline bool cpumask_equal(const struct cpumask *src1p,
 ^
./include/linux/cpumask.h: In function β€˜cpumask_equal’:
./include/linux/cpumask.h:422:22: error: β€˜const struct cpumask’ has no member named β€˜bits’
return bitmap_equal(cpumask_bits(src1p), cpumask_bits(src2p),
 ^
./include/linux/cpumask.h:422:43: error: β€˜const struct cpumask’ has no member named β€˜bits’
return bitmap_equal(cpumask_bits(src1p), cpumask_bits(src2p),
 ^
./include/linux/cpumask.h: At top level:
./include/linux/cpumask.h:431:15: error: unknown type name β€˜bool’
static inline bool cpumask_intersects(const struct cpumask *src1p,
 ^
./include/linux/cpumask.h: In function β€˜cpumask_intersects’:
./include/linux/cpumask.h:434:27: error: β€˜const struct cpumask’ has no member named β€˜bits’
return bitmap_intersects(cpumask_bits(src1p), cpumask_bits(src2p),
 ^
./include/linux/cpumask.h:434:48: error: β€˜const struct cpumask’ has no member named β€˜bits’
return bitmap_intersects(cpumask_bits(src1p), cpumask_bits(src2p),
 ^
./include/linux/cpumask.h: In function β€˜cpumask_subset’:
./include/linux/cpumask.h:448:23: error: β€˜const struct cpumask’ has no member named β€˜bits’
return bitmap_subset(cpumask_bits(src1p), cpumask_bits(src2p),
 ^
./include/linux/cpumask.h:448:44: error: β€˜const struct cpumask’ has no member named β€˜bits’
return bitmap_subset(cpumask_bits(src1p), cpumask_bits(src2p),
 ^
./include/linux/cpumask.h: At top level:
./include/linux/cpumask.h:456:15: error: unknown type name β€˜bool’
static inline bool cpumask_empty(const struct cpumask *srcp)
 ^
./include/linux/cpumask.h: In function β€˜cpumask_empty’:
./include/linux/cpumask.h:458:22: error: β€˜const struct cpumask’ has no member named β€˜bits’
return bitmap_empty(cpumask_bits(srcp), nr_cpumask_bits);
 ^
./include/linux/cpumask.h: At top level:
./include/linux/cpumask.h:465:15: error: unknown type name β€˜bool’
static inline bool cpumask_full(const struct cpumask *srcp)
 ^
./include/linux/cpumask.h: In function β€˜cpumask_full’:
./include/linux/cpumask.h:467:21: error: β€˜const struct cpumask’ has no member named β€˜bits’
return bitmap_full(cpumask_bits(srcp), nr_cpumask_bits);
 ^
./include/linux/cpumask.h: In function β€˜cpumask_weight’:
./include/linux/cpumask.h:476:23: error: β€˜const struct cpumask’ has no member named β€˜bits’
return bitmap_weight(cpumask_bits(srcp), nr_cpumask_bits);
 ^
./include/linux/cpumask.h: In function β€˜cpumask_shift_right’:
./include/linux/cpumask.h:488:21: error: β€˜struct cpumask’ has no member named β€˜bits’
bitmap_shift_right(cpumask_bits(dstp), cpumask_bits(srcp), n,
 ^
./include/linux/cpumask.h:488:41: error: β€˜const struct cpumask’ has no member named β€˜bits’
bitmap_shift_right(cpumask_bits(dstp), cpumask_bits(srcp), n,
 ^
./include/linux/cpumask.h: In function β€˜cpumask_shift_left’:
./include/linux/cpumask.h:501:20: error: β€˜struct cpumask’ has no member named β€˜bits’
bitmap_shift_left(cpumask_bits(dstp), cpumask_bits(srcp), n,
 ^
./include/linux/cpumask.h:501:40: error: β€˜const struct cpumask’ has no member named β€˜bits’
bitmap_shift_left(cpumask_bits(dstp), cpumask_bits(srcp), n,
 ^
./include/linux/cpumask.h: In function β€˜cpumask_copy’:
./include/linux/cpumask.h:513:14: error: β€˜struct cpumask’ has no member named β€˜bits’
bitmap_copy(cpumask_bits(dstp), cpumask_bits(srcp), nr_cpumask_bits);
 ^
./include/linux/cpumask.h:513:34: error: β€˜const struct cpumask’ has no member named β€˜bits’
bitmap_copy(cpumask_bits(dstp), cpumask_bits(srcp), nr_cpumask_bits);
 ^
./include/linux/cpumask.h: In function β€˜cpumask_parse_user’:
./include/linux/cpumask.h:559:37: error: β€˜struct cpumask’ has no member named β€˜bits’
return bitmap_parse_user(buf, len, cpumask_bits(dstp), nr_cpu_ids);
 ^
./include/linux/cpumask.h: In function β€˜cpumask_parselist_user’:
./include/linux/cpumask.h:573:41: error: β€˜struct cpumask’ has no member named β€˜bits’
return bitmap_parselist_user(buf, len, cpumask_bits(dstp),
 ^
./include/linux/cpumask.h: In function β€˜cpumask_parse’:
./include/linux/cpumask.h:589:32: error: β€˜struct cpumask’ has no member named β€˜bits’
return bitmap_parse(buf, len, cpumask_bits(dstp), nr_cpu_ids);
 ^
./include/linux/cpumask.h: In function β€˜cpulist_parse’:
./include/linux/cpumask.h:601:31: error: β€˜struct cpumask’ has no member named β€˜bits’
return bitmap_parselist(buf, cpumask_bits(dstp), nr_cpu_ids);
 ^
./include/linux/cpumask.h: At top level:
./include/linux/cpumask.h:609:15: error: unknown type name β€˜size_t’
static inline size_t cpumask_size(void)
 ^
./include/linux/cpumask.h:669:15: error: unknown type name β€˜bool’
static inline bool alloc_cpumask_var(cpumask_var_t *mask, gfp_t flags)
 ^
./include/linux/cpumask.h:669:59: error: unknown type name β€˜gfp_t’
static inline bool alloc_cpumask_var(cpumask_var_t *mask, gfp_t flags)
 ^
./include/linux/cpumask.h:674:15: error: unknown type name β€˜bool’
static inline bool alloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags,
 ^
./include/linux/cpumask.h:674:64: error: unknown type name β€˜gfp_t’
static inline bool alloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags,
 ^
./include/linux/cpumask.h:680:15: error: unknown type name β€˜bool’
static inline bool zalloc_cpumask_var(cpumask_var_t *mask, gfp_t flags)
 ^
./include/linux/cpumask.h:680:60: error: unknown type name β€˜gfp_t’
static inline bool zalloc_cpumask_var(cpumask_var_t *mask, gfp_t flags)
 ^
./include/linux/cpumask.h:686:15: error: unknown type name β€˜bool’
static inline bool zalloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags,
 ^
./include/linux/cpumask.h:686:65: error: unknown type name β€˜gfp_t’
static inline bool zalloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags,
 ^
In file included from /usr/src/linux-4.4.6-gentoo/include/linux/kconfig.h:4:0,
from <command-line>:0:
./include/linux/cpumask.h:708:43: error: expected β€˜)’ before numeric constant
extern const DECLARE_BITMAP(cpu_all_bits, NR_CPUS);
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/cpumask.h:4:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:10,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:20,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:54,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/linux/cpumask.h:719:41: error: unknown type name β€˜bool’
void set_cpu_possible(unsigned int cpu, bool possible);
 ^
./include/linux/cpumask.h:720:40: error: unknown type name β€˜bool’
void set_cpu_present(unsigned int cpu, bool present);
 ^
./include/linux/cpumask.h:721:39: error: unknown type name β€˜bool’
void set_cpu_online(unsigned int cpu, bool online);
 ^
./include/linux/cpumask.h:722:39: error: unknown type name β€˜bool’
void set_cpu_active(unsigned int cpu, bool active);
 ^
./include/linux/cpumask.h:754:17: error: β€˜BITS_PER_LONG’ undeclared here (not in a function)
cpu_bit_bitmap[BITS_PER_LONG+1][BITS_TO_LONGS(NR_CPUS)];
 ^
./include/linux/cpumask.h:754:2: error: variably modified β€˜cpu_bit_bitmap’ at file scope
cpu_bit_bitmap[BITS_PER_LONG+1][BITS_TO_LONGS(NR_CPUS)];
 ^
./include/linux/cpumask.h:790:15: error: unknown type name β€˜ssize_t’
static inline ssize_t
 ^
./include/linux/cpumask.h:791:25: error: unknown type name β€˜bool’
cpumap_print_to_pagebuf(bool list, char *buf, const struct cpumask *mask)
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:20:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:54,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:16:4: error: unknown type name β€˜u32’
u32 l;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:17:4: error: unknown type name β€˜u32’
u32 h;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:19:3: error: unknown type name β€˜u64’
u64 q;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:24:2: error: unknown type name β€˜u32’
u32 msr_no;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:31:2: error: unknown type name β€˜u32’
u32 *regs;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h: In function β€˜native_read_tscp’:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:40:17: error: β€˜u64’ undeclared (first use in this function)
return low | ((u64)high << 32);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:40:21: error: expected β€˜)’ before β€˜high’
return low | ((u64)high << 32);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h: At top level:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:108:28: error: unknown type name β€˜u32’
extern int rdmsr_safe_regs(u32 regs[8]);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:109:28: error: unknown type name β€˜u32’
extern int wrmsr_safe_regs(u32 regs[8]);
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:20:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:54,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:191:41: error: unknown type name β€˜u64’
static inline void wrmsrl(unsigned msr, u64 val)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:234:31: error: unknown type name β€˜u32’
static inline int wrmsrl_safe(u32 msr, u64 val)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:234:40: error: unknown type name β€˜u64’
static inline int wrmsrl_safe(u32 msr, u64 val)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:245:17: error: unknown type name β€˜u32’
int msr_set_bit(u32 msr, u8 bit);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:245:26: error: unknown type name β€˜u8’
int msr_set_bit(u32 msr, u8 bit);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:246:19: error: unknown type name β€˜u32’
int msr_clear_bit(u32 msr, u8 bit);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:246:28: error: unknown type name β€˜u8’
int msr_clear_bit(u32 msr, u8 bit);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:249:36: error: unknown type name β€˜u32’
int rdmsr_on_cpu(unsigned int cpu, u32 msr_no, u32 *l, u32 *h);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:249:48: error: unknown type name β€˜u32’
int rdmsr_on_cpu(unsigned int cpu, u32 msr_no, u32 *l, u32 *h);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:249:56: error: unknown type name β€˜u32’
int rdmsr_on_cpu(unsigned int cpu, u32 msr_no, u32 *l, u32 *h);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:250:36: error: unknown type name β€˜u32’
int wrmsr_on_cpu(unsigned int cpu, u32 msr_no, u32 l, u32 h);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:250:48: error: unknown type name β€˜u32’
int wrmsr_on_cpu(unsigned int cpu, u32 msr_no, u32 l, u32 h);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:250:55: error: unknown type name β€˜u32’
int wrmsr_on_cpu(unsigned int cpu, u32 msr_no, u32 l, u32 h);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:251:37: error: unknown type name β€˜u32’
int rdmsrl_on_cpu(unsigned int cpu, u32 msr_no, u64 *q);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:251:49: error: unknown type name β€˜u64’
int rdmsrl_on_cpu(unsigned int cpu, u32 msr_no, u64 *q);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:252:37: error: unknown type name β€˜u32’
int wrmsrl_on_cpu(unsigned int cpu, u32 msr_no, u64 q);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:252:49: error: unknown type name β€˜u64’
int wrmsrl_on_cpu(unsigned int cpu, u32 msr_no, u64 q);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:253:48: error: unknown type name β€˜u32’
void rdmsr_on_cpus(const struct cpumask *mask, u32 msr_no, struct msr *msrs);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:254:48: error: unknown type name β€˜u32’
void wrmsr_on_cpus(const struct cpumask *mask, u32 msr_no, struct msr *msrs);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:255:41: error: unknown type name β€˜u32’
int rdmsr_safe_on_cpu(unsigned int cpu, u32 msr_no, u32 *l, u32 *h);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:255:53: error: unknown type name β€˜u32’
int rdmsr_safe_on_cpu(unsigned int cpu, u32 msr_no, u32 *l, u32 *h);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:255:61: error: unknown type name β€˜u32’
int rdmsr_safe_on_cpu(unsigned int cpu, u32 msr_no, u32 *l, u32 *h);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:256:41: error: unknown type name β€˜u32’
int wrmsr_safe_on_cpu(unsigned int cpu, u32 msr_no, u32 l, u32 h);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:256:53: error: unknown type name β€˜u32’
int wrmsr_safe_on_cpu(unsigned int cpu, u32 msr_no, u32 l, u32 h);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:256:60: error: unknown type name β€˜u32’
int wrmsr_safe_on_cpu(unsigned int cpu, u32 msr_no, u32 l, u32 h);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:257:42: error: unknown type name β€˜u32’
int rdmsrl_safe_on_cpu(unsigned int cpu, u32 msr_no, u64 *q);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:257:54: error: unknown type name β€˜u64’
int rdmsrl_safe_on_cpu(unsigned int cpu, u32 msr_no, u64 *q);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:258:42: error: unknown type name β€˜u32’
int wrmsrl_safe_on_cpu(unsigned int cpu, u32 msr_no, u64 q);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:258:54: error: unknown type name β€˜u64’
int wrmsrl_safe_on_cpu(unsigned int cpu, u32 msr_no, u64 q);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:259:46: error: unknown type name β€˜u32’
int rdmsr_safe_regs_on_cpu(unsigned int cpu, u32 regs[8]);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/msr.h:260:46: error: unknown type name β€˜u32’
int wrmsr_safe_regs_on_cpu(unsigned int cpu, u32 regs[8]);
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:21:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:54,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/desc_defs.h:29:4: error: unknown type name β€˜u16’
u16 limit0;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/desc_defs.h:30:4: error: unknown type name β€˜u16’
u16 base0;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/desc_defs.h:52:2: error: unknown type name β€˜u16’
u16 offset_low;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/desc_defs.h:53:2: error: unknown type name β€˜u16’
u16 segment;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/desc_defs.h:55:2: error: unknown type name β€˜u16’
u16 offset_middle;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/desc_defs.h:56:2: error: unknown type name β€˜u32’
u32 offset_high;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/desc_defs.h:57:2: error: unknown type name β€˜u32’
u32 zero1;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/desc_defs.h:72:2: error: unknown type name β€˜u16’
u16 limit0;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/desc_defs.h:73:2: error: unknown type name β€˜u16’
u16 base0;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/desc_defs.h:76:2: error: unknown type name β€˜u32’
u32 base3;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/desc_defs.h:77:2: error: unknown type name β€˜u32’
u32 zero1;
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:24:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:54,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:12:2: error: unknown type name β€˜u32’
u32 cwd; /* FPU Control Word */
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:13:2: error: unknown type name β€˜u32’
u32 swd; /* FPU Status Word */
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:14:2: error: unknown type name β€˜u32’
u32 twd; /* FPU Tag Word */
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:15:2: error: unknown type name β€˜u32’
u32 fip; /* FPU IP Offset */
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:16:2: error: unknown type name β€˜u32’
u32 fcs; /* FPU IP Selector */
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:17:2: error: unknown type name β€˜u32’
u32 foo; /* FPU Operand Pointer Offset */
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:18:2: error: unknown type name β€˜u32’
u32 fos; /* FPU Operand Pointer Selector */
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:21:2: error: unknown type name β€˜u32’
u32 st_space[20];
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:24:2: error: unknown type name β€˜u32’
u32 status;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:34:2: error: unknown type name β€˜u16’
u16 cwd; /* Control Word */
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:35:2: error: unknown type name β€˜u16’
u16 swd; /* Status Word */
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:36:2: error: unknown type name β€˜u16’
u16 twd; /* Tag Word */
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:37:2: error: unknown type name β€˜u16’
u16 fop; /* Last Instruction Opcode */
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:40:4: error: unknown type name β€˜u64’
u64 rip; /* Instruction Pointer */
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:41:4: error: unknown type name β€˜u64’
u64 rdp; /* Data Pointer */
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:44:4: error: unknown type name β€˜u32’
u32 fip; /* FPU IP Offset */
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:45:4: error: unknown type name β€˜u32’
u32 fcs; /* FPU IP Selector */
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:46:4: error: unknown type name β€˜u32’
u32 foo; /* FPU Operand Offset */
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:47:4: error: unknown type name β€˜u32’
u32 fos; /* FPU Operand Selector */
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:50:2: error: unknown type name β€˜u32’
u32 mxcsr; /* MXCSR Register State */
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:51:2: error: unknown type name β€˜u32’
u32 mxcsr_mask; /* MXCSR Mask */
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:54:2: error: unknown type name β€˜u32’
u32 st_space[32];
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:57:2: error: unknown type name β€˜u32’
u32 xmm_space[64];
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:59:2: error: unknown type name β€˜u32’
u32 padding[12];
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:62:3: error: unknown type name β€˜u32’
u32 padding1[12];
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:63:3: error: unknown type name β€˜u32’
u32 sw_reserved[12];
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:76:2: error: unknown type name β€˜u32’
u32 cwd;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:77:2: error: unknown type name β€˜u32’
u32 swd;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:78:2: error: unknown type name β€˜u32’
u32 twd;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:79:2: error: unknown type name β€˜u32’
u32 fip;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:80:2: error: unknown type name β€˜u32’
u32 fcs;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:81:2: error: unknown type name β€˜u32’
u32 foo;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:82:2: error: unknown type name β€˜u32’
u32 fos;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:84:2: error: unknown type name β€˜u32’
u32 st_space[20];
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:85:2: error: unknown type name β€˜u8’
u8 ftop;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:86:2: error: unknown type name β€˜u8’
u8 changed;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:87:2: error: unknown type name β€˜u8’
u8 lookahead;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:88:2: error: unknown type name β€˜u8’
u8 no_update;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:89:2: error: unknown type name β€˜u8’
u8 rm;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:90:2: error: unknown type name β€˜u8’
u8 alimit;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:92:2: error: unknown type name β€˜u32’
u32 entry_eip;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:132:2: error: unknown type name β€˜u8’
u8 regbytes[128/8];
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:135:2: error: unknown type name β€˜u8’
u8 regbytes[256/8];
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:138:2: error: unknown type name β€˜u8’
u8 regbytes[512/8];
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:158:2: error: unknown type name β€˜u64’
u64 lower_bound;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:159:2: error: unknown type name β€˜u64’
u64 upper_bound;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:174:2: error: unknown type name β€˜u64’
u64 bndcfgu;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:175:2: error: unknown type name β€˜u64’
u64 bndstatus;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:184:3: error: unknown type name β€˜u8’
u8 pad_to_64_bytes[64];
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:195:2: error: unknown type name β€˜u64’
u64 opmask_reg[8];
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:216:2: error: unknown type name β€˜u64’
u64 xfeatures;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:217:2: error: unknown type name β€˜u64’
u64 xcomp_bv;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:218:2: error: unknown type name β€˜u64’
u64 reserved[6];
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:233:2: error: unknown type name β€˜u8’
u8 extended_state_area[0];
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/fpu/types.h:250:2: error: unknown type name β€˜u8’
u8 __padding[PAGE_SIZE];
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/div64.h:63:0,
from ./include/linux/math64.h:5,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:30,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:54,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/asm-generic/div64.h:54:3: error: #error do_div() does not yet support the C64
# error do_div() does not yet support the C64
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:30:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:54,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/linux/math64.h:97:15: error: unknown type name β€˜u64’
static inline u64 div_u64(u64 dividend, u32 divisor)
 ^
./include/linux/math64.h:97:27: error: unknown type name β€˜u64’
static inline u64 div_u64(u64 dividend, u32 divisor)
 ^
./include/linux/math64.h:97:41: error: unknown type name β€˜u32’
static inline u64 div_u64(u64 dividend, u32 divisor)
 ^
./include/linux/math64.h:108:15: error: unknown type name β€˜s64’
static inline s64 div_s64(s64 dividend, s32 divisor)
 ^
./include/linux/math64.h:108:27: error: unknown type name β€˜s64’
static inline s64 div_s64(s64 dividend, s32 divisor)
 ^
./include/linux/math64.h:108:41: error: unknown type name β€˜s32’
static inline s64 div_s64(s64 dividend, s32 divisor)
 ^
./include/linux/math64.h:115:1: error: unknown type name β€˜u32’
u32 iter_div_u64_rem(u64 dividend, u32 divisor, u64 *remainder);
 ^
./include/linux/math64.h:115:22: error: unknown type name β€˜u64’
u32 iter_div_u64_rem(u64 dividend, u32 divisor, u64 *remainder);
 ^
./include/linux/math64.h:115:36: error: unknown type name β€˜u32’
u32 iter_div_u64_rem(u64 dividend, u32 divisor, u64 *remainder);
 ^
./include/linux/math64.h:115:49: error: unknown type name β€˜u64’
u32 iter_div_u64_rem(u64 dividend, u32 divisor, u64 *remainder);
 ^
./include/linux/math64.h:117:24: error: unknown type name β€˜u32’
static __always_inline u32
 ^
./include/linux/math64.h:118:20: error: unknown type name β€˜u64’
__iter_div_u64_rem(u64 dividend, u32 divisor, u64 *remainder)
 ^
./include/linux/math64.h:118:34: error: unknown type name β€˜u32’
__iter_div_u64_rem(u64 dividend, u32 divisor, u64 *remainder)
 ^
./include/linux/math64.h:118:47: error: unknown type name β€˜u64’
__iter_div_u64_rem(u64 dividend, u32 divisor, u64 *remainder)
 ^
./include/linux/math64.h:139:15: error: unknown type name β€˜u64’
static inline u64 mul_u64_u32_shr(u64 a, u32 mul, unsigned int shift)
 ^
./include/linux/math64.h:139:35: error: unknown type name β€˜u64’
static inline u64 mul_u64_u32_shr(u64 a, u32 mul, unsigned int shift)
 ^
./include/linux/math64.h:139:42: error: unknown type name β€˜u32’
static inline u64 mul_u64_u32_shr(u64 a, u32 mul, unsigned int shift)
 ^
./include/linux/math64.h:146:15: error: unknown type name β€˜u64’
static inline u64 mul_u64_u64_shr(u64 a, u64 mul, unsigned int shift)
 ^
./include/linux/math64.h:146:35: error: unknown type name β€˜u64’
static inline u64 mul_u64_u64_shr(u64 a, u64 mul, unsigned int shift)
 ^
./include/linux/math64.h:146:42: error: unknown type name β€˜u64’
static inline u64 mul_u64_u64_shr(u64 a, u64 mul, unsigned int shift)
 ^
./include/linux/math64.h:218:15: error: unknown type name β€˜u64’
static inline u64 mul_u64_u32_div(u64 a, u32 mul, u32 divisor)
 ^
./include/linux/math64.h:218:35: error: unknown type name β€˜u64’
static inline u64 mul_u64_u32_div(u64 a, u32 mul, u32 divisor)
 ^
./include/linux/math64.h:218:42: error: unknown type name β€˜u32’
static inline u64 mul_u64_u32_div(u64 a, u32 mul, u32 divisor)
 ^
./include/linux/math64.h:218:51: error: unknown type name β€˜u32’
static inline u64 mul_u64_u32_div(u64 a, u32 mul, u32 divisor)
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:31:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:54,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/linux/err.h:33:15: error: unknown type name β€˜bool’
static inline bool __must_check IS_ERR(__force const void *ptr)
 ^
./include/linux/err.h:38:15: error: unknown type name β€˜bool’
static inline bool __must_check IS_ERR_OR_NULL(__force const void *ptr)
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:52:0,
from ./include/linux/thread_info.h:54,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:74:26: error: expected β€˜,’ or β€˜;’ before β€˜tlb_lli_4k’
extern u16 __read_mostly tlb_lli_4k[NR_INFO];
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:75:26: error: expected β€˜,’ or β€˜;’ before β€˜tlb_lli_2m’
extern u16 __read_mostly tlb_lli_2m[NR_INFO];
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:76:26: error: expected β€˜,’ or β€˜;’ before β€˜tlb_lli_4m’
extern u16 __read_mostly tlb_lli_4m[NR_INFO];
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:77:26: error: expected β€˜,’ or β€˜;’ before β€˜tlb_lld_4k’
extern u16 __read_mostly tlb_lld_4k[NR_INFO];
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:78:26: error: expected β€˜,’ or β€˜;’ before β€˜tlb_lld_2m’
extern u16 __read_mostly tlb_lld_2m[NR_INFO];
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:79:26: error: expected β€˜,’ or β€˜;’ before β€˜tlb_lld_4m’
extern u16 __read_mostly tlb_lld_4m[NR_INFO];
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:80:26: error: expected β€˜,’ or β€˜;’ before β€˜tlb_lld_1g’
extern u16 __read_mostly tlb_lld_1g[NR_INFO];
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:124:2: error: expected specifier-qualifier-list before β€˜u16’
u16 x86_max_cores;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:264:2: error: unknown type name β€˜u32’
u32 reserved1;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:265:2: error: unknown type name β€˜u64’
u64 sp0;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:266:2: error: unknown type name β€˜u64’
u64 sp1;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:267:2: error: unknown type name β€˜u64’
u64 sp2;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:268:2: error: unknown type name β€˜u64’
u64 reserved2;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:269:2: error: unknown type name β€˜u64’
u64 ist[7];
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:270:2: error: unknown type name β€˜u32’
u32 reserved3;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:271:2: error: unknown type name β€˜u32’
u32 reserved4;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:272:2: error: expected specifier-qualifier-list before β€˜u16’
u16 reserved5;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:606:8: error: unknown type name β€˜bool’
extern bool amd_e400_c1e_detected;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:647:58: error: unknown type name β€˜bool’
extern void set_task_blockstep(struct task_struct *task, bool on);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:812:12: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜amd_get_nb_id’
extern u16 amd_get_nb_id(int cpu);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:813:8: error: unknown type name β€˜u32’
extern u32 amd_get_nodes_per_socket(void);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:815:15: error: unknown type name β€˜uint32_t’
static inline uint32_t hypervisor_cpuid_base(const char *sig, uint32_t leaves)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/processor.h:815:63: error: unknown type name β€˜uint32_t’
static inline uint32_t hypervisor_cpuid_base(const char *sig, uint32_t leaves)
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/cmpxchg.h:143:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:8,
from ./include/linux/atomic.h:4,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:53,
from ./include/linux/thread_info.h:54,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/cmpxchg_64.h:4:39: error: unknown type name β€˜u64’
static inline void set_64bit(volatile u64 *ptr, u64 val)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/cmpxchg_64.h:4:49: error: unknown type name β€˜u64’
static inline void set_64bit(volatile u64 *ptr, u64 val)
 ^
In file included from ./include/linux/atomic.h:4:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:53,
from ./include/linux/thread_info.h:54,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:25:46: error: unknown type name β€˜atomic_t’
static __always_inline int atomic_read(const atomic_t *v)
 ^
In file included from ./include/asm-generic/bug.h:4:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bug.h:35,
from ./include/linux/bug.h:4,
from ./include/linux/mmdebug.h:4,
from ./include/linux/mm.h:8,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h: In function β€˜atomic_read’:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:27:9: error: request for member β€˜counter’ in something not a structure or union
return READ_ONCE((v)->counter);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:27:9: error: request for member β€˜counter’ in something not a structure or union
return READ_ONCE((v)->counter);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:27:9: error: request for member β€˜counter’ in something not a structure or union
return READ_ONCE((v)->counter);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:27:9: error: request for member β€˜counter’ in something not a structure or union
return READ_ONCE((v)->counter);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:27:9: error: request for member β€˜counter’ in something not a structure or union
return READ_ONCE((v)->counter);
 ^
In file included from ./include/linux/atomic.h:4:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:53,
from ./include/linux/thread_info.h:54,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h: At top level:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:37:40: error: unknown type name β€˜atomic_t’
static __always_inline void atomic_set(atomic_t *v, int i)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:49:47: error: unknown type name β€˜atomic_t’
static __always_inline void atomic_add(int i, atomic_t *v)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:63:47: error: unknown type name β€˜atomic_t’
static __always_inline void atomic_sub(int i, atomic_t *v)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:79:55: error: unknown type name β€˜atomic_t’
static __always_inline int atomic_sub_and_test(int i, atomic_t *v)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:90:40: error: unknown type name β€˜atomic_t’
static __always_inline void atomic_inc(atomic_t *v)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:102:40: error: unknown type name β€˜atomic_t’
static __always_inline void atomic_dec(atomic_t *v)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:116:48: error: unknown type name β€˜atomic_t’
static __always_inline int atomic_dec_and_test(atomic_t *v)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:129:48: error: unknown type name β€˜atomic_t’
static __always_inline int atomic_inc_and_test(atomic_t *v)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:143:55: error: unknown type name β€˜atomic_t’
static __always_inline int atomic_add_negative(int i, atomic_t *v)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:155:53: error: unknown type name β€˜atomic_t’
static __always_inline int atomic_add_return(int i, atomic_t *v)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:167:53: error: unknown type name β€˜atomic_t’
static __always_inline int atomic_sub_return(int i, atomic_t *v)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:175:43: error: unknown type name β€˜atomic_t’
static __always_inline int atomic_cmpxchg(atomic_t *v, int old, int new)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:180:31: error: unknown type name β€˜atomic_t’
static inline int atomic_xchg(atomic_t *v, int new)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:194:1: error: unknown type name β€˜atomic_t’
ATOMIC_OP(and)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:195:1: error: unknown type name β€˜atomic_t’
ATOMIC_OP(or)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:196:1: error: unknown type name β€˜atomic_t’
ATOMIC_OP(xor)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:209:48: error: unknown type name β€˜atomic_t’
static __always_inline int __atomic_add_unless(atomic_t *v, int a, int u)
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:240:0,
from ./include/linux/atomic.h:4,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:53,
from ./include/linux/thread_info.h:54,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h:19:40: error: unknown type name β€˜atomic64_t’
static inline long atomic64_read(const atomic64_t *v)
 ^
In file included from ./include/asm-generic/bug.h:4:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bug.h:35,
from ./include/linux/bug.h:4,
from ./include/linux/mmdebug.h:4,
from ./include/linux/mm.h:8,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h: In function β€˜atomic64_read’:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h:21:9: error: request for member β€˜counter’ in something not a structure or union
return READ_ONCE((v)->counter);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h:21:9: error: request for member β€˜counter’ in something not a structure or union
return READ_ONCE((v)->counter);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h:21:9: error: request for member β€˜counter’ in something not a structure or union
return READ_ONCE((v)->counter);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h:21:9: error: request for member β€˜counter’ in something not a structure or union
return READ_ONCE((v)->counter);
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h:21:9: error: request for member β€˜counter’ in something not a structure or union
return READ_ONCE((v)->counter);
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic.h:240:0,
from ./include/linux/atomic.h:4,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:53,
from ./include/linux/thread_info.h:54,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h: At top level:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h:31:33: error: unknown type name β€˜atomic64_t’
static inline void atomic64_set(atomic64_t *v, long i)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h:43:50: error: unknown type name β€˜atomic64_t’
static __always_inline void atomic64_add(long i, atomic64_t *v)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h:57:41: error: unknown type name β€˜atomic64_t’
static inline void atomic64_sub(long i, atomic64_t *v)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h:73:49: error: unknown type name β€˜atomic64_t’
static inline int atomic64_sub_and_test(long i, atomic64_t *v)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h:84:42: error: unknown type name β€˜atomic64_t’
static __always_inline void atomic64_inc(atomic64_t *v)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h:97:42: error: unknown type name β€˜atomic64_t’
static __always_inline void atomic64_dec(atomic64_t *v)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h:112:41: error: unknown type name β€˜atomic64_t’
static inline int atomic64_dec_and_test(atomic64_t *v)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h:125:41: error: unknown type name β€˜atomic64_t’
static inline int atomic64_inc_and_test(atomic64_t *v)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h:139:49: error: unknown type name β€˜atomic64_t’
static inline int atomic64_add_negative(long i, atomic64_t *v)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h:151:57: error: unknown type name β€˜atomic64_t’
static __always_inline long atomic64_add_return(long i, atomic64_t *v)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h:156:48: error: unknown type name β€˜atomic64_t’
static inline long atomic64_sub_return(long i, atomic64_t *v)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h:164:37: error: unknown type name β€˜atomic64_t’
static inline long atomic64_cmpxchg(atomic64_t *v, long old, long new)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h:169:34: error: unknown type name β€˜atomic64_t’
static inline long atomic64_xchg(atomic64_t *v, long new)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h:183:39: error: unknown type name β€˜atomic64_t’
static inline int atomic64_add_unless(atomic64_t *v, long a, long u)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h:207:45: error: unknown type name β€˜atomic64_t’
static inline long atomic64_dec_if_positive(atomic64_t *v)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h:232:1: error: unknown type name β€˜atomic64_t’
ATOMIC64_OP(and)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h:233:1: error: unknown type name β€˜atomic64_t’
ATOMIC64_OP(or)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/atomic64_64.h:234:1: error: unknown type name β€˜atomic64_t’
ATOMIC64_OP(xor)
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:53:0,
from ./include/linux/thread_info.h:54,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/linux/atomic.h:435:37: error: unknown type name β€˜atomic_t’
static inline int atomic_add_unless(atomic_t *v, int a, int u)
 ^
./include/linux/atomic.h:452:41: error: unknown type name β€˜atomic_t’
static inline void atomic_andnot(int i, atomic_t *v)
 ^
./include/linux/atomic.h:458:70: error: unknown type name β€˜atomic_t’
static inline __deprecated void atomic_clear_mask(unsigned int mask, atomic_t *v)
 ^
./include/linux/atomic.h:463:68: error: unknown type name β€˜atomic_t’
static inline __deprecated void atomic_set_mask(unsigned int mask, atomic_t *v)
 ^
./include/linux/atomic.h:481:44: error: unknown type name β€˜atomic_t’
static inline int atomic_inc_not_zero_hint(atomic_t *v, int hint)
 ^
./include/linux/atomic.h:501:46: error: unknown type name β€˜atomic_t’
static inline int atomic_inc_unless_negative(atomic_t *p)
 ^
./include/linux/atomic.h:514:46: error: unknown type name β€˜atomic_t’
static inline int atomic_dec_unless_positive(atomic_t *p)
 ^
./include/linux/atomic.h:534:42: error: unknown type name β€˜atomic_t’
static inline int atomic_dec_if_positive(atomic_t *v)
 ^
./include/linux/atomic.h:556:49: error: unknown type name β€˜atomic64_t’
static inline void atomic64_andnot(long long i, atomic64_t *v)
 ^
In file included from ./include/linux/atomic.h:562:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:53,
from ./include/linux/thread_info.h:54,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/asm-generic/atomic-long.h:30:9: error: unknown type name β€˜atomic_t’
typedef atomic_t atomic_long_t;
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_read’:
./include/asm-generic/atomic-long.h:44:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_READ_OP()
 ^
./include/asm-generic/atomic-long.h:44:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_READ_OP()
 ^
./include/asm-generic/atomic-long.h:44:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_READ_OP()
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_read_acquire’:
./include/asm-generic/atomic-long.h:45:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_READ_OP(_acquire)
 ^
./include/asm-generic/atomic-long.h:45:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_READ_OP(_acquire)
 ^
./include/asm-generic/atomic-long.h:45:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_READ_OP(_acquire)
 ^
In file included from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bitops.h:18:0,
from ./include/linux/bitops.h:36,
from ./include/linux/thread_info.h:53,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/asm-generic/atomic-long.h:45:1: error: request for member β€˜counter’ in something not a structure or union
ATOMIC_LONG_READ_OP(_acquire)
 ^
In file included from ./include/asm-generic/bug.h:4:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bug.h:35,
from ./include/linux/bug.h:4,
from ./include/linux/mmdebug.h:4,
from ./include/linux/mm.h:8,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/asm-generic/atomic-long.h:45:1: error: request for member β€˜counter’ in something not a structure or union
ATOMIC_LONG_READ_OP(_acquire)
 ^
./include/asm-generic/atomic-long.h:45:1: error: request for member β€˜counter’ in something not a structure or union
ATOMIC_LONG_READ_OP(_acquire)
 ^
./include/asm-generic/atomic-long.h:45:1: error: request for member β€˜counter’ in something not a structure or union
ATOMIC_LONG_READ_OP(_acquire)
 ^
./include/asm-generic/atomic-long.h:45:1: error: request for member β€˜counter’ in something not a structure or union
ATOMIC_LONG_READ_OP(_acquire)
 ^
./include/asm-generic/atomic-long.h:45:1: error: request for member β€˜counter’ in something not a structure or union
ATOMIC_LONG_READ_OP(_acquire)
 ^
In file included from ./include/asm-generic/bug.h:4:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bug.h:35,
from ./include/linux/bug.h:4,
from ./include/linux/mmdebug.h:4,
from ./include/linux/mm.h:8,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/asm-generic/atomic-long.h:45:1: error: unknown type name β€˜bool’
ATOMIC_LONG_READ_OP(_acquire)
 ^
./include/asm-generic/atomic-long.h:45:1: error: request for member β€˜counter’ in something not a structure or union
ATOMIC_LONG_READ_OP(_acquire)
 ^
./include/asm-generic/atomic-long.h:45:1: error: request for member β€˜counter’ in something not a structure or union
ATOMIC_LONG_READ_OP(_acquire)
 ^
./include/asm-generic/atomic-long.h:45:1: error: request for member β€˜counter’ in something not a structure or union
ATOMIC_LONG_READ_OP(_acquire)
 ^
./include/asm-generic/atomic-long.h:45:1: error: request for member β€˜counter’ in something not a structure or union
ATOMIC_LONG_READ_OP(_acquire)
 ^
In file included from ./include/linux/atomic.h:562:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:53,
from ./include/linux/thread_info.h:54,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_set’:
./include/asm-generic/atomic-long.h:56:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_SET_OP()
 ^
./include/asm-generic/atomic-long.h:56:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_SET_OP()
 ^
./include/asm-generic/atomic-long.h:56:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_SET_OP()
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_set_release’:
./include/asm-generic/atomic-long.h:57:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_SET_OP(_release)
 ^
./include/asm-generic/atomic-long.h:57:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_SET_OP(_release)
 ^
./include/asm-generic/atomic-long.h:57:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_SET_OP(_release)
 ^
In file included from ./include/asm-generic/bug.h:4:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bug.h:35,
from ./include/linux/bug.h:4,
from ./include/linux/mmdebug.h:4,
from ./include/linux/mm.h:8,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/asm-generic/atomic-long.h:57:1: error: unknown type name β€˜bool’
ATOMIC_LONG_SET_OP(_release)
 ^
./include/asm-generic/atomic-long.h:57:1: error: request for member β€˜counter’ in something not a structure or union
ATOMIC_LONG_SET_OP(_release)
 ^
./include/asm-generic/atomic-long.h:57:1: error: request for member β€˜counter’ in something not a structure or union
ATOMIC_LONG_SET_OP(_release)
 ^
./include/asm-generic/atomic-long.h:57:1: error: request for member β€˜counter’ in something not a structure or union
ATOMIC_LONG_SET_OP(_release)
 ^
./include/asm-generic/atomic-long.h:57:1: error: request for member β€˜counter’ in something not a structure or union
ATOMIC_LONG_SET_OP(_release)
 ^
In file included from ./include/asm-generic/bug.h:4:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/bug.h:35,
from ./include/linux/bug.h:4,
from ./include/linux/mmdebug.h:4,
from ./include/linux/mm.h:8,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/asm-generic/atomic-long.h:57:1: error: request for member β€˜counter’ in something not a structure or union
ATOMIC_LONG_SET_OP(_release)
 ^
./include/asm-generic/atomic-long.h:57:1: error: request for member β€˜counter’ in something not a structure or union
ATOMIC_LONG_SET_OP(_release)
 ^
./include/asm-generic/atomic-long.h:57:1: error: request for member β€˜counter’ in something not a structure or union
ATOMIC_LONG_SET_OP(_release)
 ^
./include/asm-generic/atomic-long.h:57:1: error: request for member β€˜counter’ in something not a structure or union
ATOMIC_LONG_SET_OP(_release)
 ^
In file included from ./include/linux/atomic.h:562:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:53,
from ./include/linux/thread_info.h:54,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_add_return’:
./include/asm-generic/atomic-long.h:69:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_ADD_SUB_OP(add,)
 ^
./include/asm-generic/atomic-long.h:69:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_ADD_SUB_OP(add,)
 ^
./include/asm-generic/atomic-long.h:69:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_ADD_SUB_OP(add,)
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_add_return_relaxed’:
./include/asm-generic/atomic-long.h:70:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_ADD_SUB_OP(add, _relaxed)
 ^
./include/asm-generic/atomic-long.h:70:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_ADD_SUB_OP(add, _relaxed)
 ^
./include/asm-generic/atomic-long.h:70:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_ADD_SUB_OP(add, _relaxed)
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_add_return_acquire’:
./include/asm-generic/atomic-long.h:71:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_ADD_SUB_OP(add, _acquire)
 ^
./include/asm-generic/atomic-long.h:71:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_ADD_SUB_OP(add, _acquire)
 ^
./include/asm-generic/atomic-long.h:71:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_ADD_SUB_OP(add, _acquire)
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_add_return_release’:
./include/asm-generic/atomic-long.h:72:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_ADD_SUB_OP(add, _release)
 ^
./include/asm-generic/atomic-long.h:72:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_ADD_SUB_OP(add, _release)
 ^
./include/asm-generic/atomic-long.h:72:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_ADD_SUB_OP(add, _release)
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_sub_return’:
./include/asm-generic/atomic-long.h:73:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_ADD_SUB_OP(sub,)
 ^
./include/asm-generic/atomic-long.h:73:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_ADD_SUB_OP(sub,)
 ^
./include/asm-generic/atomic-long.h:73:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_ADD_SUB_OP(sub,)
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_sub_return_relaxed’:
./include/asm-generic/atomic-long.h:74:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_ADD_SUB_OP(sub, _relaxed)
 ^
./include/asm-generic/atomic-long.h:74:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_ADD_SUB_OP(sub, _relaxed)
 ^
./include/asm-generic/atomic-long.h:74:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_ADD_SUB_OP(sub, _relaxed)
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_sub_return_acquire’:
./include/asm-generic/atomic-long.h:75:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_ADD_SUB_OP(sub, _acquire)
 ^
./include/asm-generic/atomic-long.h:75:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_ADD_SUB_OP(sub, _acquire)
 ^
./include/asm-generic/atomic-long.h:75:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_ADD_SUB_OP(sub, _acquire)
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_sub_return_release’:
./include/asm-generic/atomic-long.h:76:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_ADD_SUB_OP(sub, _release)
 ^
./include/asm-generic/atomic-long.h:76:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_ADD_SUB_OP(sub, _release)
 ^
./include/asm-generic/atomic-long.h:76:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_ADD_SUB_OP(sub, _release)
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_inc’:
./include/asm-generic/atomic-long.h:103:2: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_PFX(_t) *v = (ATOMIC_LONG_PFX(_t) *)l;
 ^
./include/asm-generic/atomic-long.h:103:28: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_PFX(_t) *v = (ATOMIC_LONG_PFX(_t) *)l;
 ^
./include/asm-generic/atomic-long.h:103:49: error: expected expression before β€˜)’ token
ATOMIC_LONG_PFX(_t) *v = (ATOMIC_LONG_PFX(_t) *)l;
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_dec’:
./include/asm-generic/atomic-long.h:110:2: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_PFX(_t) *v = (ATOMIC_LONG_PFX(_t) *)l;
 ^
./include/asm-generic/atomic-long.h:110:28: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_PFX(_t) *v = (ATOMIC_LONG_PFX(_t) *)l;
 ^
./include/asm-generic/atomic-long.h:110:49: error: expected expression before β€˜)’ token
ATOMIC_LONG_PFX(_t) *v = (ATOMIC_LONG_PFX(_t) *)l;
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_add’:
./include/asm-generic/atomic-long.h:124:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_OP(add)
 ^
./include/asm-generic/atomic-long.h:124:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_OP(add)
 ^
./include/asm-generic/atomic-long.h:124:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_OP(add)
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_sub’:
./include/asm-generic/atomic-long.h:125:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_OP(sub)
 ^
./include/asm-generic/atomic-long.h:125:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_OP(sub)
 ^
./include/asm-generic/atomic-long.h:125:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_OP(sub)
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_and’:
./include/asm-generic/atomic-long.h:126:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_OP(and)
 ^
./include/asm-generic/atomic-long.h:126:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_OP(and)
 ^
./include/asm-generic/atomic-long.h:126:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_OP(and)
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_or’:
./include/asm-generic/atomic-long.h:127:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_OP(or)
 ^
./include/asm-generic/atomic-long.h:127:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_OP(or)
 ^
./include/asm-generic/atomic-long.h:127:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_OP(or)
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_xor’:
./include/asm-generic/atomic-long.h:128:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_OP(xor)
 ^
./include/asm-generic/atomic-long.h:128:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_OP(xor)
 ^
./include/asm-generic/atomic-long.h:128:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_OP(xor)
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_andnot’:
./include/asm-generic/atomic-long.h:129:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_OP(andnot)
 ^
./include/asm-generic/atomic-long.h:129:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_OP(andnot)
 ^
./include/asm-generic/atomic-long.h:129:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_OP(andnot)
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_sub_and_test’:
./include/asm-generic/atomic-long.h:135:2: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_PFX(_t) *v = (ATOMIC_LONG_PFX(_t) *)l;
 ^
./include/asm-generic/atomic-long.h:135:28: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_PFX(_t) *v = (ATOMIC_LONG_PFX(_t) *)l;
 ^
./include/asm-generic/atomic-long.h:135:49: error: expected expression before β€˜)’ token
ATOMIC_LONG_PFX(_t) *v = (ATOMIC_LONG_PFX(_t) *)l;
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_dec_and_test’:
./include/asm-generic/atomic-long.h:142:2: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_PFX(_t) *v = (ATOMIC_LONG_PFX(_t) *)l;
 ^
./include/asm-generic/atomic-long.h:142:28: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_PFX(_t) *v = (ATOMIC_LONG_PFX(_t) *)l;
 ^
./include/asm-generic/atomic-long.h:142:49: error: expected expression before β€˜)’ token
ATOMIC_LONG_PFX(_t) *v = (ATOMIC_LONG_PFX(_t) *)l;
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_inc_and_test’:
./include/asm-generic/atomic-long.h:149:2: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_PFX(_t) *v = (ATOMIC_LONG_PFX(_t) *)l;
 ^
./include/asm-generic/atomic-long.h:149:28: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_PFX(_t) *v = (ATOMIC_LONG_PFX(_t) *)l;
 ^
./include/asm-generic/atomic-long.h:149:49: error: expected expression before β€˜)’ token
ATOMIC_LONG_PFX(_t) *v = (ATOMIC_LONG_PFX(_t) *)l;
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_add_negative’:
./include/asm-generic/atomic-long.h:156:2: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_PFX(_t) *v = (ATOMIC_LONG_PFX(_t) *)l;
 ^
./include/asm-generic/atomic-long.h:156:28: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_PFX(_t) *v = (ATOMIC_LONG_PFX(_t) *)l;
 ^
./include/asm-generic/atomic-long.h:156:49: error: expected expression before β€˜)’ token
ATOMIC_LONG_PFX(_t) *v = (ATOMIC_LONG_PFX(_t) *)l;
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_inc_return’:
./include/asm-generic/atomic-long.h:169:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_INC_DEC_OP(inc,)
 ^
./include/asm-generic/atomic-long.h:169:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_INC_DEC_OP(inc,)
 ^
./include/asm-generic/atomic-long.h:169:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_INC_DEC_OP(inc,)
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_inc_return_relaxed’:
./include/asm-generic/atomic-long.h:170:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_INC_DEC_OP(inc, _relaxed)
 ^
./include/asm-generic/atomic-long.h:170:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_INC_DEC_OP(inc, _relaxed)
 ^
./include/asm-generic/atomic-long.h:170:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_INC_DEC_OP(inc, _relaxed)
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_inc_return_acquire’:
./include/asm-generic/atomic-long.h:171:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_INC_DEC_OP(inc, _acquire)
 ^
./include/asm-generic/atomic-long.h:171:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_INC_DEC_OP(inc, _acquire)
 ^
./include/asm-generic/atomic-long.h:171:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_INC_DEC_OP(inc, _acquire)
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_inc_return_release’:
./include/asm-generic/atomic-long.h:172:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_INC_DEC_OP(inc, _release)
 ^
./include/asm-generic/atomic-long.h:172:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_INC_DEC_OP(inc, _release)
 ^
./include/asm-generic/atomic-long.h:172:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_INC_DEC_OP(inc, _release)
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_dec_return’:
./include/asm-generic/atomic-long.h:173:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_INC_DEC_OP(dec,)
 ^
./include/asm-generic/atomic-long.h:173:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_INC_DEC_OP(dec,)
 ^
./include/asm-generic/atomic-long.h:173:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_INC_DEC_OP(dec,)
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_dec_return_relaxed’:
./include/asm-generic/atomic-long.h:174:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_INC_DEC_OP(dec, _relaxed)
 ^
./include/asm-generic/atomic-long.h:174:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_INC_DEC_OP(dec, _relaxed)
 ^
./include/asm-generic/atomic-long.h:174:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_INC_DEC_OP(dec, _relaxed)
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_dec_return_acquire’:
./include/asm-generic/atomic-long.h:175:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_INC_DEC_OP(dec, _acquire)
 ^
./include/asm-generic/atomic-long.h:175:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_INC_DEC_OP(dec, _acquire)
 ^
./include/asm-generic/atomic-long.h:175:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_INC_DEC_OP(dec, _acquire)
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_dec_return_release’:
./include/asm-generic/atomic-long.h:176:1: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_INC_DEC_OP(dec, _release)
 ^
./include/asm-generic/atomic-long.h:176:1: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_INC_DEC_OP(dec, _release)
 ^
./include/asm-generic/atomic-long.h:176:1: error: expected expression before β€˜)’ token
ATOMIC_LONG_INC_DEC_OP(dec, _release)
 ^
./include/asm-generic/atomic-long.h: In function β€˜atomic_long_add_unless’:
./include/asm-generic/atomic-long.h:182:2: error: unknown type name β€˜atomic_t’
ATOMIC_LONG_PFX(_t) *v = (ATOMIC_LONG_PFX(_t) *)l;
 ^
./include/asm-generic/atomic-long.h:182:28: error: β€˜atomic_t’ undeclared (first use in this function)
ATOMIC_LONG_PFX(_t) *v = (ATOMIC_LONG_PFX(_t) *)l;
 ^
./include/asm-generic/atomic-long.h:182:49: error: expected expression before β€˜)’ token
ATOMIC_LONG_PFX(_t) *v = (ATOMIC_LONG_PFX(_t) *)l;
 ^
In file included from ./include/linux/thread_info.h:54:0,
from /usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h: At top level:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:242:15: error: unknown type name β€˜bool’
static inline bool test_restore_sigmask(void)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:246:15: error: unknown type name β€˜bool’
static inline bool test_and_clear_restore_sigmask(void)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h: In function β€˜test_and_clear_restore_sigmask’:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:250:10: error: β€˜false’ undeclared (first use in this function)
return false;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:252:9: error: β€˜true’ undeclared (first use in this function)
return true;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h: At top level:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:255:15: error: unknown type name β€˜bool’
static inline bool is_ia32_task(void)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h: In function β€˜is_ia32_task’:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:262:10: error: β€˜true’ undeclared (first use in this function)
return true;
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/thread_info.h:264:9: error: β€˜false’ undeclared (first use in this function)
return false;
 ^
In file included from ./include/linux/preempt.h:59:0,
from ./include/linux/spinlock.h:50,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h: At top level:
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:58:24: error: unknown type name β€˜bool’
static __always_inline bool test_preempt_need_resched(void)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:82:24: error: unknown type name β€˜bool’
static __always_inline bool __preempt_count_dec_and_test(void)
 ^
/usr/src/linux-4.4.6-gentoo/arch/x86/include/asm/preempt.h:90:24: error: unknown type name β€˜bool’
static __always_inline bool should_resched(int preempt_offset)
 ^
In file included from ./include/linux/spinlock.h:57:0,
from ./include/linux/mmzone.h:7,
from ./include/linux/gfp.h:5,
from ./include/linux/mm.h:9,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-pgprot.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/common/inc/nv-linux.h:17,
from /var/tmp/portage/x11-drivers/nvidia-drivers-361.28/work/kernel/nvidia/nv-frontend.c:13:
./include/linux/bottom_half.h: In function β€˜local_bh_disable’:
./include/linux/bottom_half.h:18:24: error: β€˜_THIS_IP_’ undeclared (first use in this function)
__local_bh_disable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
 ^
./include/linux/bottom_half.h: In function β€˜local_bh_enable’:
./include/linux/bottom_half.h:31:23: error: β€˜_THIS_IP_’ undeclared (first use in this function)
__local_bh_enable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
 ^
In file included from ./include/linux/spinlock_types.h:13:0,
from ./include/linux/spinlock.h:81,
from ./include/linux/mmzone.h: