Page: 1, 2  Next

Has anyone successfully built the Nvidia proprietary driver on 4.11?
stevenpusser
Status: Contributor
Joined: 14 Jan 2017
Posts: 90
Reply Quote
Debian just has 375.39 and it seems to be hitting the same error as others have reported with the GPL kernel symbol issue" rglinuxtech.com/?p=1935

It was supposed to have been reverted on 4.11.1, but now I think it must have been put back in for 4.11.2.

Looks like I'm going to have to borrow a couple of patches from Ubuntu Artful for the broadcom-sta hybrid driver, too.
Back to top
stevenpusser
Status: Contributor
Joined: 14 Jan 2017
Posts: 90
Reply Quote
Broadcom-sta from Debian Stretch will build on 4.11, no problem.

I managed to adapt a couple patches from a Manjaro github to the Debian Nvidia-driver 375.39 package build, but it's not really kosher, since they have to change a Nvidia release license in the code. I built them anyway in an openSUSE Build Service repo, and I have Nvidia working now with the kernel on a 64-bit Optimus laptop, but I can't send them to the MX Linux repositories.
Back to top
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 4128
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
current stable nvidia is 381.22, which as far as I know works on 4.11, though I haven't had that confirmed or denied yet from sgfxi users.

but I don't see any point at all in trying to use old nvidia drivers with new kernels when there is a new series of nvidia drivers released. I know 381.22 works on 4.10, no confirmation as of yet on 4.11. sgfxi only takes a few minutes to test it, so no reason not to confirm or deny then go on your merry way.
Back to top
stevenpusser
Status: Contributor
Joined: 14 Jan 2017
Posts: 90
Reply Quote
OK, Debian-based Steam OS has a 4.11 kernel and has packaged the 381.22 driver for their repo, so I'll just port that over for my backports. I will assume that Nvidia has fixed any licensing issues upstream. They also have an updated firmware-nonfree set of packages which hasn't appeared in any Debian or Ubuntu repositories yet.

Edit: Yes, 381.22 packaged with a little tweaking, installed and working on my machine. Woot.
Back to top
DeepDayze
Status: Contributor
Joined: 21 May 2009
Posts: 137
Reply Quote
:: stevenpusser wrote ::
OK, Debian-based Steam OS has a 4.11 kernel and has packaged the 381.22 driver for their repo, so I'll just port that over for my backports. I will assume that Nvidia has fixed any licensing issues upstream. They also have an updated firmware-nonfree set of packages which hasn't appeared in any Debian or Ubuntu repositories yet.

Edit: Yes, 381.22 packaged with a little tweaking, installed and working on my machine. Woot.


Did you have to apply any patch or did the driver work out of the box on 4.11?
Back to top
stevenpusser
Status: Contributor
Joined: 14 Jan 2017
Posts: 90
Reply Quote
Didn't have to patch it. Debian just updated to 379.66, so I'm going to see if that also is 4.11 compatible.
Back to top
stevenpusser
Status: Contributor
Joined: 14 Jan 2017
Posts: 90
Reply Quote
Correction, that was the 375.66 release, and it also builds on the 4.11 kernel without additional patches.
Back to top
masmys
Status: Curious
Joined: 02 Jan 2013
Posts: 9
Location: India
Reply Quote
Currently I am running debian testing. I could use 381.22 on 4.11.0-4.1-liquorix-amd64 kernel, but the compilation failed for 4.11.0-5.1-liquorix-amd64 kernel.

I am including the log which gives the error. I am running the driver installation directly, not through sgfxi (if it matters).

[code:1:fc5795c0de]nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Tue Jun 20 07:57:53 2017
installer version: 381.22

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

nvidia-installer command line:
./nvidia-installer
-a
-k
4.11.0-5.1-liquorix-amd64

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 by command line option.
-> Installing NVIDIA driver version 381.22.
-> There appears to already be a driver installed on your system (version: 381.22). As part of installing this driver (version: 381.22), the existing driver will be uninstalled. Are you sure you want to continue? (Answer: Continue installation)
-> Not probing for precompiled kernel interfaces.
-> Performing CC sanity check with CC="/usr/bin/cc".
-> Kernel source path: '/lib/modules/4.11.0-5.1-liquorix-amd64/build'
-> Kernel output path: '/lib/modules/4.11.0-5.1-liquorix-amd64/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.11.0-5.1-liquorix-amd64/build" SYSOUT="/lib/modules/4.11.0-5.1-liquorix-amd64/build"'...
rm -f -r conftest
/usr/bin/make "CC=cc" KBUILD_VERBOSE= -C /lib/modules/4.11.0-5.1-liquorix-amd64/build M=/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel ARCH=x86_64 NV_KERNEL_SOURCES=/lib/modules/4.11.0-5.1-liquorix-amd64/build NV_KERNEL_OUTPUT=/lib/modules/4.11.0-5.1-liquorix-amd64/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-headers-4.11.0-5.1-liquorix-amd64'
make[1]: Leaving directory '/usr/src/linux-headers-4.11.0-5.1-liquorix-amd64'
-> Building kernel modules
executing: 'cd ./kernel; /usr/bin/make -k -j4 NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/4.11.0-5.1-liquorix-amd64/build" SYSOUT="/lib/modules/4.11.0-5.1-liquorix-amd64/build"'...
/usr/bin/make "CC=cc" KBUILD_VERBOSE= -C /lib/modules/4.11.0-5.1-liquorix-amd64/build M=/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel ARCH=x86_64 NV_KERNEL_SOURCES=/lib/modules/4.11.0-5.1-liquorix-amd64/build NV_KERNEL_OUTPUT=/lib/modules/4.11.0-5.1-liquorix-amd64/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-headers-4.11.0-5.1-liquorix-amd64'
SYMLINK /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-kernel.o
SYMLINK /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/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_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_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_get_property
CONFTEST: of_find_node_by_phandle
CONFTEST: pnv_pci_get_npu_dev
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: register_cpu_notifier
CONFTEST: cpuhp_setup_state
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: vm_fault_has_address
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_ops_fault_removed_vma_arg
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
CONFTEST: drm_master_drop_has_from_release_arg
CONFTEST: drm_mode_config_funcs_has_atomic_state_alloc
CONFTEST: drm_driver_unload_has_int_return_type
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/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-frontend.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-instance.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-acpi.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-chrdev.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-cray.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-dma.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-gvi.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-i2c.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-mempool.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-mmap.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-p2p.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-pat.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-procfs.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-usermap.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-vm.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-vtophys.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/os-interface.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/os-mlock.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/os-pci.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/os-registry.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/os-usermap.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-modeset-interface.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-pci-table.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-kthread-q.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-kthread-q-selftest.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv_uvm_interface.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nvlink_linux.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm_utils.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm_common.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm_linux.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm_page_migration.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm_page_migration_stubs.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm_page_migration_kepler.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm_page_migration_maxwell.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm_page_migration_pascal.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/nvstatus.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/nv-kthread-q.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/nv-kthread-q-selftest.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm_mmu_mgmt_pascal.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm_mmu_mgmt.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm_mmu_mgmt_stubs.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm_full_fault_buffer.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm_full_fault_buffer_pascal.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/mmu_fmt.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/gmmu_fmt.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_tools.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_global.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_gpu.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_gpu_isr.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_procfs.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_va_space.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_gpu_semaphore.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_mem.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_rm_mem.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_channel.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_lock.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_hal.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_range_tree.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_range_allocator.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_va_range.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_va_block.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_range_group.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_gpu_page_fault.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_perf_events.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_perf_module.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_mmu.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_pte_batch.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_tlb_batch.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_push.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_pushbuffer.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_thread_context.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_tracker.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_kepler.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_kepler_ce.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_kepler_host.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_kepler_mmu.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_maxwell.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_maxwell_host.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_pascal.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_pascal_ce.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_pascal_host.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_pascal_mmu.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_policy.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_perf_utils.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_kvmalloc.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_pmm_gpu.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_migrate.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_map_external.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_user_channel.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_hmm.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_perf_heuristics.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_perf_thrashing.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_perf_prefetch.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_test.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_test_rng.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_range_tree_test.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_range_allocator_test.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_mem_test.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_rm_mem_test.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_page_tree_test.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_tracker_test.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_push_test.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_channel_test.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_ce_test.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_lock_test.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_perf_utils_test.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_kvmalloc_test.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_pmm_test.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_perf_events_test.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_perf_module_test.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_mmu_test.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_va_block_test.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm/uvm8_range_group_tree_test.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-modeset/nvidia-modeset-linux.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-drv.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.o
In file included from /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-drv.c:28:0:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.h:49:45: warning: ‘struct nvidia_drm_device’ declared inside parameter list will not be visible outside of this definition or declaration
void nvidia_drm_handle_flip_occurred(struct nvidia_drm_device *nv_dev,
^~~~~~~~~~~~~~~~~
In file included from /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-drv.c:29:0:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.h:59:12: warning: ‘struct nvidia_drm_device’ declared inside parameter list will not be visible outside of this definition or declaration
struct nvidia_drm_device *nv_dev, NvKmsKapiDisplay hDisplay
^~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.h:64:12: warning: ‘struct nvidia_drm_device’ declared inside parameter list will not be visible outside of this definition or declaration
struct nvidia_drm_device *nv_dev, NvKmsKapiDisplay hDisplay
^~~~~~~~~~~~~~~~~
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-crtc.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-connector.o
In file included from /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.c:28:0:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.h: In function ‘nvidia_drm_edid_alloc’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.h:84:36: error: implicit declaration of function ‘nvidia_drm_calloc’ [-Werror=implicit-function-declaration]
struct nvidia_drm_edid *edid = nvidia_drm_calloc(1, sizeof(*edid));
^~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.h:84:36: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.h: In function ‘nvidia_drm_edid_unref’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.h:100:9: error: implicit declaration of function ‘nvidia_drm_free’ [-Werror=implicit-function-declaration]
nvidia_drm_free(edid);
^~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.c: In function ‘nvkms_get_display_info’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.c:37:26: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
nvidia_drm_calloc(1, sizeof(*displayInfo));
^~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.c:58:10: error: ‘nvKms’ undeclared (first use in this function)
if (!nvKms->getDisplayInfo(pDevice, hDisplay, displayInfo))
^~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.c:58:10: note: each undeclared identifier is reported only once for each function it appears in
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.c: In function ‘nvkms_get_connector_info’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.c:75:28: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
nvidia_drm_calloc(1, sizeof(*connectorInfo));
^~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.c:82:10: error: ‘nvKms’ undeclared (first use in this function)
if (!nvKms->getConnectorInfo(pDevice, hConnector, connectorInfo))
^~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:294: recipe for target '/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.o' failed
make[2]: *** [/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.o] Error 1
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-gem.o
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-crtc.c: In function ‘nvidia_plane_destroy’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-crtc.c:59:5: error: implicit declaration of function ‘nvidia_drm_free’ [-Werror=implicit-function-declaration]
nvidia_drm_free(plane);
^~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-crtc.c: In function ‘nvidia_crtc_destroy’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-crtc.c:115:5: error: implicit declaration of function ‘NV_DRM_DEV_LOG_DEBUG’ [-Werror=implicit-function-declaration]
NV_DRM_DEV_LOG_DEBUG(
^~~~~~~~~~~~~~~~~~~~
In file included from ./include/uapi/linux/stddef.h:1:0,
from ./include/linux/stddef.h:4,
from ./include/uapi/linux/posix_types.h:4,
from ./include/uapi/linux/types.h:13,
from ./include/linux/types.h:5,
from ./include/linux/list.h:4,
from ./include/linux/agp_backend.h:33,
from ./include/drm/drmP.h:35,
from /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-crtc.h:30,
from /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-crtc.c:28:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-crtc.c:120:36: error: dereferencing pointer to incomplete type ‘struct nvidia_drm_device’
BUG_ON(!mutex_is_locked(&nv_dev->lock));
^
./include/linux/compiler.h:179:42: note: in definition of macro ‘unlikely’
# define unlikely(x) __builtin_expect(!!(x), 0)
^
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-crtc.c:120:5: note: in expansion of macro ‘BUG_ON’
BUG_ON(!mutex_is_locked(&nv_dev->lock));
^~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-crtc.c: In function ‘nvidia_plane_create’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-crtc.c:197:13: error: implicit declaration of function ‘nvidia_drm_calloc’ [-Werror=implicit-function-declaration]
plane = nvidia_drm_calloc(1, sizeof(*plane));
^~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-crtc.c:197:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
plane = nvidia_drm_calloc(1, sizeof(*plane));
^
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-crtc.c:207:17: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
plane_state = nvidia_drm_calloc(1, sizeof(*plane_state));
^
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-crtc.c: In function ‘nvidia_drm_add_crtc’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-crtc.c:282:13: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
nv_crtc = nvidia_drm_calloc(1, sizeof(*nv_crtc));
^
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-crtc.c:286:9: error: implicit declaration of function ‘NV_DRM_DEV_LOG_ERR’ [-Werror=implicit-function-declaration]
NV_DRM_DEV_LOG_ERR(nv_dev, "Failed to allocate nvidia crtc object");
^~~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-crtc.c:292:16: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
crtc_state = nvidia_drm_calloc(1, sizeof(*crtc_state));
^
In file included from ./include/uapi/linux/stddef.h:1:0,
from ./include/linux/stddef.h:4,
from ./include/uapi/linux/posix_types.h:4,
from ./include/uapi/linux/types.h:13,
from ./include/linux/types.h:5,
from ./include/linux/list.h:4,
from ./include/linux/agp_backend.h:33,
from ./include/drm/drmP.h:35,
from /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-crtc.h:30,
from /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-crtc.c:28:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-crtc.c:374:36: error: dereferencing pointer to incomplete type ‘struct nvidia_drm_device’
BUG_ON(!mutex_is_locked(&nv_dev->lock));
^
./include/linux/compiler.h:179:42: note: in definition of macro ‘unlikely’
# define unlikely(x) __builtin_expect(!!(x), 0)
^
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-crtc.c:374:5: note: in expansion of macro ‘BUG_ON’
BUG_ON(!mutex_is_locked(&nv_dev->lock));
^~~~~~
cc1: some warnings being treated as errors
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fb.o
scripts/Makefile.build:294: recipe for target '/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-crtc.o' failed
make[2]: *** [/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-crtc.o] Error 1
In file included from /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.c:28:0:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.h:59:12: warning: ‘struct nvidia_drm_device’ declared inside parameter list will not be visible outside of this definition or declaration
struct nvidia_drm_device *nv_dev, NvKmsKapiDisplay hDisplay
^~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.h:64:12: warning: ‘struct nvidia_drm_device’ declared inside parameter list will not be visible outside of this definition or declaration
struct nvidia_drm_device *nv_dev, NvKmsKapiDisplay hDisplay
^~~~~~~~~~~~~~~~~
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.o
In file included from /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.c:29:0:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.h: In function ‘nvidia_drm_edid_alloc’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.h:84:36: error: implicit declaration of function ‘nvidia_drm_calloc’ [-Werror=implicit-function-declaration]
struct nvidia_drm_edid *edid = nvidia_drm_calloc(1, sizeof(*edid));
^~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.h:84:36: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.h: In function ‘nvidia_drm_edid_unref’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.h:100:9: error: implicit declaration of function ‘nvidia_drm_free’ [-Werror=implicit-function-declaration]
nvidia_drm_free(edid);
^~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.c: In function ‘nvidia_encoder_destroy’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.c:45:5: error: implicit declaration of function ‘NV_DRM_DEV_LOG_DEBUG’ [-Werror=implicit-function-declaration]
NV_DRM_DEV_LOG_DEBUG(
^~~~~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.c: In function ‘nvidia_encoder_new’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.c:136:16: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
nv_encoder = nvidia_drm_calloc(1, sizeof(*nv_encoder));
^
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.c:140:9: error: implicit declaration of function ‘NV_DRM_DEV_LOG_ERR’ [-Werror=implicit-function-declaration]
NV_DRM_DEV_LOG_ERR(
^~~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.c: In function ‘nvidia_drm_add_encoder’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.c:244:48: error: dereferencing pointer to incomplete type ‘struct nvidia_drm_device’
displayInfo = nvkms_get_display_info(nv_dev->pDevice, hDisplay, NULL, 0);
^~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.c: At top level:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.c:350:12: warning: ‘struct nvidia_drm_device’ declared inside parameter list will not be visible outside of this definition or declaration
struct nvidia_drm_device *nv_dev, NvKmsKapiDisplay hDisplay
^~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.c:348:6: error: conflicting types for ‘nvidia_drm_handle_display_change’
void nvidia_drm_handle_display_change
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.c:28:0:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.h:57:6: note: previous declaration of ‘nvidia_drm_handle_display_change’ was here
void nvidia_drm_handle_display_change
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.c: In function ‘nvidia_drm_handle_display_change’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.c:353:36: error: dereferencing pointer to incomplete type ‘struct nvidia_drm_device’
struct drm_device *dev = nv_dev->dev;
^~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.c: At top level:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.c:414:12: warning: ‘struct nvidia_drm_device’ declared inside parameter list will not be visible outside of this definition or declaration
struct nvidia_drm_device *nv_dev, NvKmsKapiDisplay hDisplay
^~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.c:412:6: error: conflicting types for ‘nvidia_drm_handle_dynamic_display_connected’
void nvidia_drm_handle_dynamic_display_connected
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.c:28:0:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.h:62:6: note: previous declaration of ‘nvidia_drm_handle_dynamic_display_connected’ was here
void nvidia_drm_handle_dynamic_display_connected
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.c: In function ‘nvidia_drm_handle_dynamic_display_connected’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.c:417:36: error: dereferencing pointer to incomplete type ‘struct nvidia_drm_device’
struct drm_device *dev = nv_dev->dev;
^~
cc1: some warnings being treated as errors
scripts/Makefile.build:294: recipe for target '/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.o' failed
make[2]: *** [/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.o] Error 1
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fence.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-linux.o
In file included from /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-connector.c:29:0:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.h: In function ‘nvidia_drm_edid_alloc’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.h:84:36: error: implicit declaration of function ‘nvidia_drm_calloc’ [-Werror=implicit-function-declaration]
struct nvidia_drm_edid *edid = nvidia_drm_calloc(1, sizeof(*edid));
^~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.h:84:36: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.h: In function ‘nvidia_drm_edid_unref’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.h:100:9: error: implicit declaration of function ‘nvidia_drm_free’ [-Werror=implicit-function-declaration]
nvidia_drm_free(edid);
^~~~~~~~~~~~~~~
In file included from /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-connector.c:30:0:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.h: At top level:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.h:59:12: warning: ‘struct nvidia_drm_device’ declared inside parameter list will not be visible outside of this definition or declaration
struct nvidia_drm_device *nv_dev, NvKmsKapiDisplay hDisplay
^~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.h:64:12: warning: ‘struct nvidia_drm_device’ declared inside parameter list will not be visible outside of this definition or declaration
struct nvidia_drm_device *nv_dev, NvKmsKapiDisplay hDisplay
^~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-connector.c: In function ‘nvidia_connector_destroy’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-connector.c:45:5: error: implicit declaration of function ‘NV_DRM_DEV_LOG_DEBUG’ [-Werror=implicit-function-declaration]
NV_DRM_DEV_LOG_DEBUG(
^~~~~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-connector.c: In function ‘nvidia_connector_fill_modes’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-connector.c:224:15: error: ‘nvKms’ undeclared (first use in this function)
ret = nvKms->getDisplayMode(nv_dev->pDevice,
^~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-connector.c:224:15: note: each undeclared identifier is reported only once for each function it appears in
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-connector.c:224:43: error: dereferencing pointer to incomplete type ‘struct nvidia_drm_device’
ret = nvKms->getDisplayMode(nv_dev->pDevice,
^~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-connector.c:230:13: error: implicit declaration of function ‘NV_DRM_DEV_LOG_ERR’ [-Werror=implicit-function-declaration]
NV_DRM_DEV_LOG_ERR(
^~~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-connector.c: In function ‘nvidia_connector_new’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-connector.c:371:18: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
nv_connector = nvidia_drm_calloc(1, sizeof(*nv_connector));
^
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-connector.c:394:21: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
connector_state = nvidia_drm_calloc(1, sizeof(*connector_state));
^
cc1: some warnings being treated as errors
scripts/Makefile.build:294: recipe for target '/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-connector.o' failed
make[2]: *** [/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-connector.o] Error 1
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-helper.o
CC [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nv-pci-table.o
In file included from /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.c:28:0:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.h:50:38: error: unknown type name ‘NvU32’
NvU32 head,
^~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.h:51:38: error: unknown type name ‘NvKmsKapiPlaneType’
NvKmsKapiPlaneType plane);
^~~~~~~~~~~~~~~~~~
In file included from /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fb.c:30:0:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.h: In function ‘nvidia_drm_edid_alloc’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.h:84:36: error: implicit declaration of function ‘nvidia_drm_calloc’ [-Werror=implicit-function-declaration]
struct nvidia_drm_edid *edid = nvidia_drm_calloc(1, sizeof(*edid));
^~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.h:84:36: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.h: In function ‘nvidia_drm_edid_unref’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.h:100:9: error: implicit declaration of function ‘nvidia_drm_free’ [-Werror=implicit-function-declaration]
nvidia_drm_free(edid);
^~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fb.c: In function ‘nvidia_framebuffer_destroy’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fb.c:45:5: error: implicit declaration of function ‘drm_gem_object_unreference_unlocked’ [-Werror=implicit-function-declaration]
drm_gem_object_unreference_unlocked(nv_fb->gem);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fb.c:53:5: error: ‘nvKms’ undeclared (first use in this function)
nvKms->destroySurface(nv_dev->pDevice, nv_fb->pSurface);
^~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fb.c:53:5: note: each undeclared identifier is reported only once for each function it appears in
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fb.c:53:33: error: dereferencing pointer to incomplete type ‘struct nvidia_drm_device’
nvKms->destroySurface(nv_dev->pDevice, nv_fb->pSurface);
^~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fb.c: In function ‘nvidia_framebuffer_create_handle’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fb.c:69:12: error: implicit declaration of function ‘drm_gem_handle_create’ [-Werror=implicit-function-declaration]
return drm_gem_handle_create(file, nv_fb->gem, handle);
^~~~~~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fb.c: In function ‘nvidia_drm_internal_framebuffer_create’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fb.c:95:5: error: implicit declaration of function ‘NV_DRM_DEV_LOG_DEBUG’ [-Werror=implicit-function-declaration]
NV_DRM_DEV_LOG_DEBUG(
^~~~~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fb.c:103:9: error: implicit declaration of function ‘NV_DRM_DEV_LOG_ERR’ [-Werror=implicit-function-declaration]
NV_DRM_DEV_LOG_ERR(
^~~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fb.c:116:11: error: implicit declaration of function ‘nvidia_drm_gem_object_lookup’ [-Werror=implicit-function-declaration]
gem = nvidia_drm_gem_object_lookup(dev, file, cmd->handles[0]);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fb.c:116:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
gem = nvidia_drm_gem_object_lookup(dev, file, cmd->handles[0]);
^
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fb.c:124:14: error: implicit declaration of function ‘DRM_GEM_OBJECT_TO_NV_GEM_OBJECT’ [-Werror=implicit-function-declaration]
nv_gem = DRM_GEM_OBJECT_TO_NV_GEM_OBJECT(gem);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fb.c:124:12: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
nv_gem = DRM_GEM_OBJECT_TO_NV_GEM_OBJECT(gem);
^
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fb.c:126:15: error: dereferencing pointer to incomplete type ‘struct nvidia_drm_gem_object’
if (nv_gem->type != NV_DRM_GEM_OBJECT_TYPE_NVKMS_MEMORY)
^~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fb.c:126:25: error: ‘NV_DRM_GEM_OBJECT_TYPE_NVKMS_MEMORY’ undeclared (first use in this function)
if (nv_gem->type != NV_DRM_GEM_OBJECT_TYPE_NVKMS_MEMORY)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fb.c:139:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
nv_fb = nvidia_drm_calloc(1, sizeof(*nv_fb));
^
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fb.c:174:23: error: ‘nvKms’ undeclared (first use in this function)
nv_fb->pSurface = nvKms->createSurface(
^~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fb.c:175:15: error: dereferencing pointer to incomplete type ‘struct nvidia_drm_device’
nv_dev->pDevice, nv_gem->u.nvkms_memory.pMemory,
^~
In file included from /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.c:30:0:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.h: In function ‘nvidia_drm_edid_alloc’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.h:84:36: error: implicit declaration of function ‘nvidia_drm_calloc’ [-Werror=implicit-function-declaration]
struct nvidia_drm_edid *edid = nvidia_drm_calloc(1, sizeof(*edid));
^~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.h:84:36: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.h: In function ‘nvidia_drm_edid_unref’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-utils.h:100:9: error: implicit declaration of function ‘nvidia_drm_free’ [-Werror=implicit-function-declaration]
nvidia_drm_free(edid);
^~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fb.c: In function ‘nvidia_drm_add_nvkms_fb’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fb.c:311:10: error: implicit declaration of function ‘nvidia_drm_modeset_enabled’ [-Werror=implicit-function-declaration]
if (!nvidia_drm_modeset_enabled(dev))
^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.c:33:0:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.h: At top level:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.h:59:12: warning: ‘struct nvidia_drm_device’ declared inside parameter list will not be visible outside of this definition or declaration
struct nvidia_drm_device *nv_dev, NvKmsKapiDisplay hDisplay
^~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-encoder.h:64:12: warning: ‘struct nvidia_drm_device’ declared inside parameter list will not be visible outside of this definition or declaration
struct nvidia_drm_device *nv_dev, NvKmsKapiDisplay hDisplay
^~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.c: In function ‘nvidia_drm_atomic_state_alloc’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.c:64:13: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
nvidia_drm_calloc(1, sizeof(*nv_state));
^~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.c: In function ‘head_modeset_config_attach_connector’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.c:122:9: error: implicit declaration of function ‘NV_DRM_DEV_LOG_DEBUG’ [-Werror=implicit-function-declaration]
NV_DRM_DEV_LOG_DEBUG(
^~~~~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.c: In function ‘nvidia_drm_atomic_check’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.c:494:10: error: ‘nvKms’ undeclared (first use in this function)
if (!nvKms->applyModeSetConfig(nv_dev->pDevice,
^~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.c:494:10: note: each undeclared identifier is reported only once for each function it appears in
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.c:494:42: error: dereferencing pointer to incomplete type ‘struct nvidia_drm_device’
if (!nvKms->applyModeSetConfig(nv_dev->pDevice,
^~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.c: In function ‘nvidia_drm_atomic_helper_commit_tail’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.c:527:9: error: ‘nvKms’ undeclared (first use in this function)
if (nvKms->systemInfo.bAllowWriteCombining) {
^~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.c:532:10: error: implicit declaration of function ‘nvidia_drm_write_combine_flush’ [-Werror=implicit-function-declaration]
nvidia_drm_write_combine_flush();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.c:535:42: error: dereferencing pointer to incomplete type ‘struct nvidia_drm_device’
if (!nvKms->applyModeSetConfig(nv_dev->pDevice,
^~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.c:537:9: error: implicit declaration of function ‘NV_DRM_DEV_LOG_ERR’ [-Werror=implicit-function-declaration]
NV_DRM_DEV_LOG_ERR(
^~~~~~~~~~~~~~~~~~
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.c: At top level:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.c:823:45: warning: ‘struct nvidia_drm_device’ declared inside parameter list will not be visible outside of this definition or declaration
void nvidia_drm_handle_flip_occurred(struct nvidia_drm_device *nv_dev,
^~~~~~~~~~~~~~~~~
In file included from ./include/uapi/linux/stddef.h:1:0,
from ./include/linux/stddef.h:4,
from ./include/uapi/linux/posix_types.h:4,
from ./include/uapi/linux/types.h:13,
from ./include/linux/types.h:5,
from ./include/linux/list.h:4,
from ./include/linux/agp_backend.h:33,
from ./include/drm/drmP.h:35,
from /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.h:30,
from /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.c:28:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.c: In function ‘nvidia_drm_handle_flip_occurred’:
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.c:827:36: error: dereferencing pointer to incomplete type ‘struct nvidia_drm_device’
BUG_ON(!mutex_is_locked(&nv_dev->lock));
^
./include/linux/compiler.h:179:42: note: in definition of macro ‘unlikely’
# define unlikely(x) __builtin_expect(!!(x), 0)
^
/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.c:827:5: note: in expansion of macro ‘BUG_ON’
BUG_ON(!mutex_is_locked(&nv_dev->lock));
^~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:294: recipe for target '/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fb.o' failed
make[2]: *** [/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-fb.o] Error 1
ld -r -o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-interface.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-frontend.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-instance.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-acpi.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-chrdev.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-cray.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-dma.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-gvi.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-i2c.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-mempool.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/ker
nel/nvidia/nv-mmap.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-p2p.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-pat.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-procfs.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-usermap.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-vm.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-vtophys.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/os-interface.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/os-mlock.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/os-pci.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/os-registry.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/os-usermap.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-modeset-interface.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-pci-table.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-kthread-q.o /tmp/selfgz1
5511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-kthread-q-selftest.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv_uvm_interface.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nvlink_linux.o
cc1: some warnings being treated as errors
scripts/Makefile.build:294: recipe for target '/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.o' failed
make[2]: *** [/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-drm/nvidia-drm-modeset.o] Error 1
ld -r -o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-modeset/nv-modeset-interface.o /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-modeset/nvidia-modeset-linux.o
LD [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia.o
LD [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-uvm.o
LD [M] /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia-modeset.o
make[2]: Target '__build' not remade because of errors.
Makefile:1517: recipe for target '_module_/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel' failed
make[1]: *** [_module_/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel] Error 2
make[1]: Target 'modules' not remade because of errors.
make[1]: Leaving directory '/usr/src/linux-headers-4.11.0-5.1-liquorix-amd64'
Makefile:81: recipe for target 'modules' failed
make: *** [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.11.0-5.1-liquorix-amd64/build" SYSOUT="/lib/modules/4.11.0-5.1-liquorix-amd64/build"` failed with the following output:

/usr/bin/make "CC=cc" KBUILD_VERBOSE= -C /lib/modules/4.11.0-5.1-liquorix-amd64/build M=/tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel ARCH=x86_64 NV_KERNEL_SOURCES=/lib/modules/4.11.0-5.1-liquorix-amd64/build NV_KERNEL_OUTPUT=/lib/modules/4.11.0-5.1-liquorix-amd64/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-headers-4.11.0-5.1-liquorix-amd64'
SYMLINK /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/kernel/nvidia/nv-kernel.o
SYMLINK /tmp/selfgz15511/NVIDIA-Linux-x86_64-381.22/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_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_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_get_property[/c
Back to top
damentz
Status: Assistant
Joined: 09 Sep 2008
Posts: 1143
Reply Quote
Can't really say is 4.11.5 breaks compatibility with 381.22, but I'm using Debian's 375.66, zero problems.

:: Code ::
damentz@damentz64:~$ apt-cache policy nvidia-driver
nvidia-driver:
  Installed: 375.66-2
  Candidate: 375.66-2
  Version table:
 *** 375.66-2 500
        500 http://mirrors.kernel.org/debian unstable/non-free amd64 Packages
        100 /var/lib/dpkg/status


:: Code ::
$ uname -r
4.11.0-5.1-liquorix-amd64


:: Code ::
damentz@damentz64:~$ inxi -G
Graphics:  Card: NVIDIA GM200 [GeForce GTX 980 Ti]
           Display Server: X.Org 1.19.3 driver: nvidia
           Resolution: 1920x1080@60.00hz, 1920x1200@59.95hz
           GLX Renderer: GeForce GTX 980 Ti/PCIe/SSE2 GLX Version: 4.5.0 NVIDIA 375.66


I suspect it's the way you're installing the nvidia driver or something very unusual about the way your configured your system. If 4.11.5 broke the nvidia driver, we would probably be seeing that elsewhere in other distributions. In fact, on Arch's nvidia package, they _removed_ a patch for 4.10 compatibility on May 10th: git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/nvidia&id=358fcb0a5336bd502ef0117bd6bcf88dbcc0709d
Back to top
masmys
Status: Curious
Joined: 02 Jan 2013
Posts: 9
Location: India
Reply Quote
:: damentz wrote ::

I suspect it's the way you're installing the nvidia driver or something very unusual about the way your configured your system. If 4.11.5 broke the nvidia driver, we would probably be seeing that elsewhere in other distributions.

I always have installed the nvidia driver from the nvidia site directly. I have been using the liquorix kernels and nvidia driver for many years. No problems :-)

This surprised me. Now, downloaded the 376.22 version and it compiled without any errors. Thanks for the input.
Back to top
Display posts from previous:   
Page: 1, 2  Next
All times are GMT - 8 Hours