375.39 does not build on kernel 4.10

Hello,

the nvidia 375.39 driver does not install with kernel 4.10.

nvidia-installer log file ‘/var/log/nvidia-installer.log’
creation time: Tue Feb 28 09:58:57 2017
installer version: 375.39

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

nvidia-installer command line:
./nvidia-installer

Unable to load: nvidia-installer ncurses v6 user interface

Using: nvidia-installer ncurses user interface
-> Detected 4 CPUs online; setting concurrency level to 4.
-> License accepted.
-> Installing NVIDIA driver version 375.39.
-> There appears to already be a driver installed on your system (version: 375.39). As part of installing this driver (version: 375.39), the existing driver will be uninstalled. Are you sure you want to continue? (Answer: Continue installation)
-> Running distribution scripts
executing: ‘/usr/lib/nvidia/pre-install’…
grep: /etc/sysconfig/kernel: No such file or directory
-> done.
-> The distribution-provided pre-install script completed successfully. If this is the first time you have run the installer, this script may have helped disable Nouveau, but a reboot may be required first. Would you like to continue, or would you prefer to abort installation to reboot the system? (Answer: Continue installation)
-> Performing CC sanity check with CC="/usr/bin/cc".
-> Kernel source path: ‘/lib/modules/4.10.0-1-default/source’
-> Kernel output path: ‘/lib/modules/4.10.0-1-default/build’
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Performing PREEMPT_RT check.
-> Cleaning kernel module build directory.
executing: ‘cd ./kernel; /usr/bin/make -k -j4 clean NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/4.10.0-1-default/source" SYSOUT="/lib/modules/4.10.0-1-default/build"’…
rm -f -r conftest
/usr/bin/make “CC=cc” KBUILD_OUTPUT=/lib/modules/4.10.0-1-default/build KBUILD_VERBOSE= -C /lib/modules/4.10.0-1-default/source M=/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel ARCH=x86_64 NV_KERNEL_SOURCES=/lib/modules/4.10.0-1-default/source NV_KERNEL_OUTPUT=/lib/modules/4.10.0-1-default/build NV_KERNEL_MODULES=“nvidia nvidia-uvm nvidia-modeset nvidia-drm” INSTALL_MOD_DIR=kernel/drivers/video clean
make[1]: Entering directory ‘/usr/src/linux-4.10.0-1’
make[2]: Entering directory ‘/usr/src/linux-4.10.0-1-obj/x86_64/default’
make[2]: Leaving directory ‘/usr/src/linux-4.10.0-1-obj/x86_64/default’
make[1]: Leaving directory ‘/usr/src/linux-4.10.0-1’
-> Building kernel modules
executing: ‘cd ./kernel; /usr/bin/make -k -j4 NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/4.10.0-1-default/source" SYSOUT="/lib/modules/4.10.0-1-default/build"’…
/usr/bin/make “CC=cc” KBUILD_OUTPUT=/lib/modules/4.10.0-1-default/build KBUILD_VERBOSE= -C /lib/modules/4.10.0-1-default/source M=/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel ARCH=x86_64 NV_KERNEL_SOURCES=/lib/modules/4.10.0-1-default/source NV_KERNEL_OUTPUT=/lib/modules/4.10.0-1-default/build NV_KERNEL_MODULES=“nvidia nvidia-uvm nvidia-modeset nvidia-drm” INSTALL_MOD_DIR=kernel/drivers/video modules
make[1]: Entering directory ‘/usr/src/linux-4.10.0-1’
make[2]: Entering directory ‘/usr/src/linux-4.10.0-1-obj/x86_64/default’
SYMLINK /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-kernel.o
SYMLINK /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-modeset/nv-modeset-kernel.o
CONFTEST: INIT_WORK
CONFTEST: remap_pfn_range
CONFTEST: follow_pfn
CONFTEST: vmap
CONFTEST: set_pages_uc
CONFTEST: set_memory_array_uc
CONFTEST: set_memory_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_driver_has_set_busid
CONFTEST: drm_driver_has_gem_prime_res_obj
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: request_threaded_irq
CONFTEST: remap_page_range
CONFTEST: address_space_init_once
CONFTEST: kbasename
CONFTEST: fatal_signal_pending
CONFTEST: list_cut_position
CONFTEST: vzalloc
CONFTEST: wait_on_bit_lock_argument_count
CONFTEST: bitmap_clear
CONFTEST: usleep_range
CONFTEST: radix_tree_empty
CONFTEST: drm_dev_unref
CONFTEST: drm_reinit_primary_mode_group
CONFTEST: drm_atomic_set_mode_for_crtc
CONFTEST: drm_atomic_clean_old_fb
CONFTEST: get_user_pages_remote
CONFTEST: drm_gem_object_lookup
CONFTEST: drm_atomic_state_free
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: atomic_long_type
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: vm_fault_present
CONFTEST: fault_flags
CONFTEST: atomic64_type
CONFTEST: address_space
CONFTEST: backing_dev_info
CONFTEST: kernel_write
CONFTEST: strnstr
CONFTEST: iterate_dir
CONFTEST: kstrtoull
CONFTEST: mm_context_t
CONFTEST: vm_fault_has_address
CONFTEST: drm_bus_present
CONFTEST: drm_bus_has_bus_type
CONFTEST: drm_bus_has_get_irq
CONFTEST: drm_bus_has_get_name
CONFTEST: drm_driver_has_legacy_dev_list
CONFTEST: drm_crtc_state_has_connectors_changed
CONFTEST: drm_init_functions_have_name_arg
CONFTEST: drm_mode_connector_list_update_has_merge_type_bits_arg
CONFTEST: drm_helper_mode_fill_fb_struct_has_const_mode_cmd_arg
CONFTEST: drm_master_drop_has_from_release_arg
CONFTEST: drm_mode_config_funcs_has_atomic_state_alloc
CONFTEST: dom0_kernel_present
CONFTEST: nvidia_vgpu_kvm_build
CONFTEST: drm_available
CONFTEST: nvidia_grid_build
CONFTEST: drm_atomic_available
CONFTEST: drm_atomic_modeset_nonblocking_commit_available
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-frontend.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-instance.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-acpi.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-chrdev.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-cray.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-dma.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-gvi.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-i2c.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-mempool.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-mmap.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-p2p.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-pat.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-procfs.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-usermap.o
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-pat.c: In function ‘nvidia_cpu_callback’:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-pat.c:213:14: error: ‘CPU_DOWN_FAILED’ undeclared (first use in this function)
case CPU_DOWN_FAILED:
^~~~~~~~~~~~~~~
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-pat.c:213:14: note: each undeclared identifier is reported only once for each function it appears in
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-pat.c:220:14: error: ‘CPU_DOWN_PREPARE’ undeclared (first use in this function)
case CPU_DOWN_PREPARE:
^~~~~~~~~~~~~~~~
In file included from /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-pat.c:15:0:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-pat.c: In function ‘nv_init_pat_support’:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/common/inc/nv-linux.h:391:34: error: implicit declaration of function ‘register_cpu_notifier’ [-Werror=implicit-function-declaration]
#define register_hotcpu_notifier register_cpu_notifier
^
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-pat.c:258:17: note: in expansion of macro ‘register_hotcpu_notifier’
if (register_hotcpu_notifier(&nv_hotcpu_nfb) != 0)
^~~~~~~~~~~~~~~~~~~~~~~~
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-pat.c: In function ‘nv_teardown_pat_support’:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/common/inc/nv-linux.h:388:36: error: implicit declaration of function ‘unregister_cpu_notifier’ [-Werror=implicit-function-declaration]
#define unregister_hotcpu_notifier unregister_cpu_notifier
^
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-pat.c:283:9: note: in expansion of macro ‘unregister_hotcpu_notifier’
unregister_hotcpu_notifier(&nv_hotcpu_nfb);
^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-4.10.0-1/scripts/Makefile.build:295: /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-pat.o] Error 1
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-vm.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-vtophys.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/os-interface.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/os-mlock.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/os-pci.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/os-registry.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/os-usermap.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-modeset-interface.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-pci-table.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-kthread-q.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-kthread-q-selftest.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv_uvm_interface.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/ebridge_linux.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/ibmnpu_linux.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nvlink_linux.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nvlink_pci.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_utils.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_common.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_linux.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_page_migration.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_page_migration_stubs.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_page_migration_kepler.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_page_migration_maxwell.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_page_migration_pascal.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/nvstatus.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/nv-kthread-q.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/nv-kthread-q-selftest.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_kernel_events.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_kernel_counters.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_debug_session.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_mmu_mgmt_pascal.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_mmu_mgmt.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_mmu_mgmt_stubs.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_full_fault_buffer.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_full_fault_buffer_pascal.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/mmu_fmt.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/gmmu_fmt.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_tools.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_global.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_gpu.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_procfs.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_va_space.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_gpu_semaphore.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_mem.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_rm_mem.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_channel.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_lock.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_hal.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_range_tree.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_range_allocator.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_va_range.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_va_block.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_range_group.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_gpu_page_fault.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_perf_events.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_perf_module.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_mmu.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_pte_batch.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_tlb_batch.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_push.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_pushbuffer.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_thread_context.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_tracker.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_kepler.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_kepler_ce.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_kepler_host.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_kepler_mmu.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_maxwell.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_maxwell_host.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_pascal.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_pascal_ce.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_pascal_host.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_pascal_mmu.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_policy.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_perf_utils.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_kvmalloc.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_pmm_gpu.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_migrate.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_map_external.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_user_channel.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_hmm.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_perf_heuristics.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_perf_thrashing.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_perf_prefetch.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_test_rng.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_range_tree_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_range_allocator_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_mem_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_rm_mem_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_page_tree_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_tracker_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_push_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_channel_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_ce_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_lock_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_perf_utils_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_kvmalloc_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_pmm_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_perf_events_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_perf_module_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_mmu_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_va_block_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_range_group_tree_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-modeset/nvidia-modeset-linux.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-drv.o
In file included from /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm.c:27:0:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-priv.h:37:25: fatal error: linux/fence.h: No such file or directory
#include <linux/fence.h>
^
compilation terminated.
make[3]: *** [/usr/src/linux-4.10.0-1/scripts/Makefile.build:295: /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm.o] Error 1
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-utils.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-crtc.o
In file included from /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-drv.c:25:0:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-priv.h:37:25: fatal error: linux/fence.h: No such file or directory
#include <linux/fence.h>
^
compilation terminated.
make[3]: *** [/usr/src/linux-4.10.0-1/scripts/Makefile.build:295: /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-drv.o] Error 1
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-encoder.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-connector.o
In file included from /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-utils.c:27:0:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-priv.h:37:25: fatal error: linux/fence.h: No such file or directory
#include <linux/fence.h>
^
compilation terminated.
make[3]: *** [/usr/src/linux-4.10.0-1/scripts/Makefile.build:295: /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-utils.o] Error 1
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-gem.o
In file included from /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-crtc.c:27:0:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-priv.h:37:25: fatal error: linux/fence.h: No such file or directory
#include <linux/fence.h>
^
compilation terminated.
make[3]: *** [/usr/src/linux-4.10.0-1/scripts/Makefile.build:295: /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-crtc.o] Error 1
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-fb.o
In file included from /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-encoder.c:27:0:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-priv.h:37:25: fatal error: linux/fence.h: No such file or directory
#include <linux/fence.h>
^
compilation terminated.
make[3]: *** [/usr/src/linux-4.10.0-1/scripts/Makefile.build:295: /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-encoder.o] Error 1
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-modeset.o
In file included from /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-connector.c:27:0:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-priv.h:37:25: fatal error: linux/fence.h: No such file or directory
#include <linux/fence.h>
^
compilation terminated.
make[3]: *** [/usr/src/linux-4.10.0-1/scripts/Makefile.build:295: /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-connector.o] Error 1
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-mmap.o
In file included from /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-gem.c:27:0:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-priv.h:37:25: fatal error: linux/fence.h: No such file or directory
#include <linux/fence.h>
^
compilation terminated.
make[3]: *** [/usr/src/linux-4.10.0-1/scripts/Makefile.build:295: /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-gem.o] Error 1
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-fence.o
In file included from /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-fb.c:27:0:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-priv.h:37:25: fatal error: linux/fence.h: No such file or directory
#include <linux/fence.h>
^
compilation terminated.
make[3]: *** [/usr/src/linux-4.10.0-1/scripts/Makefile.build:295: /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-fb.o] Error 1
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-linux.o
In file included from /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-modeset.c:27:0:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-priv.h:37:25: fatal error: linux/fence.h: No such file or directory
#include <linux/fence.h>
^
compilation terminated.
make[3]: *** [/usr/src/linux-4.10.0-1/scripts/Makefile.build:295: /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-modeset.o] Error 1
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nv-pci-table.o
In file included from /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-mmap.c:27:0:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-priv.h:37:25: fatal error: linux/fence.h: No such file or directory
#include <linux/fence.h>
^
compilation terminated.
make[3]: *** [/usr/src/linux-4.10.0-1/scripts/Makefile.build:296: /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-mmap.o] Error 1
ld -r -o /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-modeset/nv-modeset-interface.o /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-modeset/nvidia-modeset-linux.o
LD [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm.o
In file included from /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-fence.c:27:0:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-priv.h:37:25: fatal error: linux/fence.h: No such file or directory
#include <linux/fence.h>
^
compilation terminated.
make[3]: *** [/usr/src/linux-4.10.0-1/scripts/Makefile.build:296: /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-fence.o] Error 1
LD [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-modeset.o
make[3]: Target ‘__build’ not remade because of errors.
make[2]: *** [/usr/src/linux-4.10.0-1/Makefile:1500: module/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel] Error 2
make[2]: Target ‘modules’ not remade because of errors.
make[2]: Leaving directory ‘/usr/src/linux-4.10.0-1-obj/x86_64/default’
make[1]: *** [Makefile:150: sub-make] Error 2
make[1]: Target ‘modules’ not remade because of errors.
make[1]: Leaving directory ‘/usr/src/linux-4.10.0-1’
make: *** [Makefile:81: modules] Error 2
-> Error.
ERROR: An error occurred while performing the step: “Building kernel modules”. See /var/log/nvidia-installer.log for details.
-> The command cd ./kernel; /usr/bin/make -k -j4 NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/4.10.0-1-default/source" SYSOUT="/lib/modules/4.10.0-1-default/build" failed with the following output:

/usr/bin/make “CC=cc” KBUILD_OUTPUT=/lib/modules/4.10.0-1-default/build KBUILD_VERBOSE= -C /lib/modules/4.10.0-1-default/source M=/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel ARCH=x86_64 NV_KERNEL_SOURCES=/lib/modules/4.10.0-1-default/source NV_KERNEL_OUTPUT=/lib/modules/4.10.0-1-default/build NV_KERNEL_MODULES=“nvidia nvidia-uvm nvidia-modeset nvidia-drm” INSTALL_MOD_DIR=kernel/drivers/video modules
make[1]: Entering directory ‘/usr/src/linux-4.10.0-1’
make[2]: Entering directory ‘/usr/src/linux-4.10.0-1-obj/x86_64/default’
SYMLINK /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-kernel.o
SYMLINK /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-modeset/nv-modeset-kernel.o
CONFTEST: INIT_WORK
CONFTEST: remap_pfn_range
CONFTEST: follow_pfn
CONFTEST: vmap
CONFTEST: set_pages_uc
CONFTEST: set_memory_array_uc
CONFTEST: set_memory_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_driver_has_set_busid
CONFTEST: drm_driver_has_gem_prime_res_obj
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: request_threaded_irq
CONFTEST: remap_page_range
CONFTEST: address_space_init_once
CONFTEST: kbasename
CONFTEST: fatal_signal_pending
CONFTEST: list_cut_position
CONFTEST: vzalloc
CONFTEST: wait_on_bit_lock_argument_count
CONFTEST: bitmap_clear
CONFTEST: usleep_range
CONFTEST: radix_tree_empty
CONFTEST: drm_dev_unref
CONFTEST: drm_reinit_primary_mode_group
CONFTEST: drm_atomic_set_mode_for_crtc
CONFTEST: drm_atomic_clean_old_fb
CONFTEST: get_user_pages_remote
CONFTEST: drm_gem_object_lookup
CONFTEST: drm_atomic_state_free
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: atomic_long_type
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: vm_fault_present
CONFTEST: fault_flags
CONFTEST: atomic64_type
CONFTEST: address_space
CONFTEST: backing_dev_info
CONFTEST: kernel_write
CONFTEST: strnstr
CONFTEST: iterate_dir
CONFTEST: kstrtoull
CONFTEST: mm_context_t
CONFTEST: vm_fault_has_address
CONFTEST: drm_bus_present
CONFTEST: drm_bus_has_bus_type
CONFTEST: drm_bus_has_get_irq
CONFTEST: drm_bus_has_get_name
CONFTEST: drm_driver_has_legacy_dev_list
CONFTEST: drm_crtc_state_has_connectors_changed
CONFTEST: drm_init_functions_have_name_arg
CONFTEST: drm_mode_connector_list_update_has_merge_type_bits_arg
CONFTEST: drm_helper_mode_fill_fb_struct_has_const_mode_cmd_arg
CONFTEST: drm_master_drop_has_from_release_arg
CONFTEST: drm_mode_config_funcs_has_atomic_state_alloc
CONFTEST: dom0_kernel_present
CONFTEST: nvidia_vgpu_kvm_build
CONFTEST: drm_available
CONFTEST: nvidia_grid_build
CONFTEST: drm_atomic_available
CONFTEST: drm_atomic_modeset_nonblocking_commit_available
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-frontend.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-instance.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-acpi.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-chrdev.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-cray.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-dma.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-gvi.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-i2c.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-mempool.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-mmap.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-p2p.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-pat.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-procfs.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-usermap.o
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-pat.c: In function ‘nvidia_cpu_callback’:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-pat.c:213:14: error: ‘CPU_DOWN_FAILED’ undeclared (first use in this function)
case CPU_DOWN_FAILED:
^~~~~~~~~~~~~~~
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-pat.c:213:14: note: each undeclared identifier is reported only once for each function it appears in
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-pat.c:220:14: error: ‘CPU_DOWN_PREPARE’ undeclared (first use in this function)
case CPU_DOWN_PREPARE:
^~~~~~~~~~~~~~~~
In file included from /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-pat.c:15:0:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-pat.c: In function ‘nv_init_pat_support’:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/common/inc/nv-linux.h:391:34: error: implicit declaration of function ‘register_cpu_notifier’ [-Werror=implicit-function-declaration]
#define register_hotcpu_notifier register_cpu_notifier
^
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-pat.c:258:17: note: in expansion of macro ‘register_hotcpu_notifier’
if (register_hotcpu_notifier(&nv_hotcpu_nfb) != 0)
^~~~~~~~~~~~~~~~~~~~~~~~
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-pat.c: In function ‘nv_teardown_pat_support’:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/common/inc/nv-linux.h:388:36: error: implicit declaration of function ‘unregister_cpu_notifier’ [-Werror=implicit-function-declaration]
#define unregister_hotcpu_notifier unregister_cpu_notifier
^
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-pat.c:283:9: note: in expansion of macro ‘unregister_hotcpu_notifier’
unregister_hotcpu_notifier(&nv_hotcpu_nfb);
^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-4.10.0-1/scripts/Makefile.build:295: /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-pat.o] Error 1
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-vm.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-vtophys.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/os-interface.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/os-mlock.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/os-pci.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/os-registry.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/os-usermap.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-modeset-interface.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-pci-table.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-kthread-q.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv-kthread-q-selftest.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nv_uvm_interface.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/ebridge_linux.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/ibmnpu_linux.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nvlink_linux.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia/nvlink_pci.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_utils.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_common.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_linux.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_page_migration.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_page_migration_stubs.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_page_migration_kepler.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_page_migration_maxwell.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_page_migration_pascal.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/nvstatus.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/nv-kthread-q.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/nv-kthread-q-selftest.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_kernel_events.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_kernel_counters.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_debug_session.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_mmu_mgmt_pascal.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_mmu_mgmt.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_mmu_mgmt_stubs.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_full_fault_buffer.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm_full_fault_buffer_pascal.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/mmu_fmt.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/gmmu_fmt.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_tools.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_global.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_gpu.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_procfs.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_va_space.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_gpu_semaphore.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_mem.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_rm_mem.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_channel.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_lock.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_hal.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_range_tree.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_range_allocator.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_va_range.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_va_block.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_range_group.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_gpu_page_fault.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_perf_events.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_perf_module.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_mmu.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_pte_batch.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_tlb_batch.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_push.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_pushbuffer.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_thread_context.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_tracker.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_kepler.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_kepler_ce.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_kepler_host.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_kepler_mmu.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_maxwell.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_maxwell_host.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_pascal.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_pascal_ce.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_pascal_host.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_pascal_mmu.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_policy.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_perf_utils.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_kvmalloc.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_pmm_gpu.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_migrate.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_map_external.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_user_channel.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_hmm.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_perf_heuristics.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_perf_thrashing.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_perf_prefetch.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_test_rng.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_range_tree_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_range_allocator_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_mem_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_rm_mem_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_page_tree_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_tracker_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_push_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_channel_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_ce_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_lock_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_perf_utils_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_kvmalloc_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_pmm_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_perf_events_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_perf_module_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_mmu_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_va_block_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm/uvm8_range_group_tree_test.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-modeset/nvidia-modeset-linux.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-drv.o
In file included from /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm.c:27:0:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-priv.h:37:25: fatal error: linux/fence.h: No such file or directory
#include <linux/fence.h>
^
compilation terminated.
make[3]: *** [/usr/src/linux-4.10.0-1/scripts/Makefile.build:295: /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm.o] Error 1
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-utils.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-crtc.o
In file included from /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-drv.c:25:0:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-priv.h:37:25: fatal error: linux/fence.h: No such file or directory
#include <linux/fence.h>
^
compilation terminated.
make[3]: *** [/usr/src/linux-4.10.0-1/scripts/Makefile.build:295: /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-drv.o] Error 1
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-encoder.o
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-connector.o
In file included from /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-utils.c:27:0:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-priv.h:37:25: fatal error: linux/fence.h: No such file or directory
#include <linux/fence.h>
^
compilation terminated.
make[3]: *** [/usr/src/linux-4.10.0-1/scripts/Makefile.build:295: /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-utils.o] Error 1
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-gem.o
In file included from /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-crtc.c:27:0:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-priv.h:37:25: fatal error: linux/fence.h: No such file or directory
#include <linux/fence.h>
^
compilation terminated.
make[3]: *** [/usr/src/linux-4.10.0-1/scripts/Makefile.build:295: /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-crtc.o] Error 1
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-fb.o
In file included from /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-encoder.c:27:0:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-priv.h:37:25: fatal error: linux/fence.h: No such file or directory
#include <linux/fence.h>
^
compilation terminated.
make[3]: *** [/usr/src/linux-4.10.0-1/scripts/Makefile.build:295: /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-encoder.o] Error 1
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-modeset.o
In file included from /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-connector.c:27:0:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-priv.h:37:25: fatal error: linux/fence.h: No such file or directory
#include <linux/fence.h>
^
compilation terminated.
make[3]: *** [/usr/src/linux-4.10.0-1/scripts/Makefile.build:295: /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-connector.o] Error 1
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-mmap.o
In file included from /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-gem.c:27:0:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-priv.h:37:25: fatal error: linux/fence.h: No such file or directory
#include <linux/fence.h>
^
compilation terminated.
make[3]: *** [/usr/src/linux-4.10.0-1/scripts/Makefile.build:295: /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-gem.o] Error 1
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-fence.o
In file included from /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-fb.c:27:0:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-priv.h:37:25: fatal error: linux/fence.h: No such file or directory
#include <linux/fence.h>
^
compilation terminated.
make[3]: *** [/usr/src/linux-4.10.0-1/scripts/Makefile.build:295: /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-fb.o] Error 1
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-linux.o
In file included from /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-modeset.c:27:0:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-priv.h:37:25: fatal error: linux/fence.h: No such file or directory
#include <linux/fence.h>
^
compilation terminated.
make[3]: *** [/usr/src/linux-4.10.0-1/scripts/Makefile.build:295: /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-modeset.o] Error 1
CC [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nv-pci-table.o
In file included from /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-mmap.c:27:0:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-priv.h:37:25: fatal error: linux/fence.h: No such file or directory
#include <linux/fence.h>
^
compilation terminated.
make[3]: *** [/usr/src/linux-4.10.0-1/scripts/Makefile.build:296: /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-mmap.o] Error 1
ld -r -o /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-modeset/nv-modeset-interface.o /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-modeset/nvidia-modeset-linux.o
LD [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-uvm.o
In file included from /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-fence.c:27:0:
/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-priv.h:37:25: fatal error: linux/fence.h: No such file or directory
#include <linux/fence.h>
^
compilation terminated.
make[3]: *** [/usr/src/linux-4.10.0-1/scripts/Makefile.build:296: /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-drm/nvidia-drm-fence.o] Error 1
LD [M] /tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel/nvidia-modeset.o
make[3]: Target ‘__build’ not remade because of errors.
make[2]: *** [/usr/src/linux-4.10.0-1/Makefile:1500: module/tmp/selfgz1862/NVIDIA-Linux-x86_64-375.39/kernel] Error 2
make[2]: Target ‘modules’ not remade because of errors.
make[2]: Leaving directory ‘/usr/src/linux-4.10.0-1-obj/x86_64/default’
make[1]: *** [Makefile:150: sub-make] Error 2
make[1]: Target ‘modules’ not remade because of errors.
make[1]: Leaving directory ‘/usr/src/linux-4.10.0-1’
make: *** [Makefile:81: modules] Error 2
ERROR: The nvidia kernel module was not created.
ERROR: Installation has failed. Please see the file ‘/var/log/nvidia-installer.log’ for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

http://rglinuxtech.com/

Same problem. It seems that the fence.h file has disappeared between kernel 4.9 and 4.10, thus breaking module compilation. I’ve tried to copy the file to the new kernel tree, but it’s not so easy, compilation breaks again with another error. This can only be solved by a new nvidia driver release, I’m afraid…

http://lxr.free-electrons.com/source/include/linux/fence.h?v=4.9

This is ridiculous x_x. Do you know if this is only a problem with 375.39, or all of them? – since you mention that the kernel itself changed…