Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 589858
Collapse All | Expand All

(-)kernel/nvidia-drm/nvidia-drm-fb.c (-1 / +1 lines)
Lines 114-120 Link Here
114
     * We don't support any planar format, pick up first buffer only.
114
     * We don't support any planar format, pick up first buffer only.
115
     */
115
     */
116
116
117
    gem = drm_gem_object_lookup(dev, file, cmd->handles[0]);
117
    gem = drm_gem_object_lookup(file, cmd->handles[0]);
118
118
119
    if (gem == NULL)
119
    if (gem == NULL)
120
    {
120
    {
(-)kernel/nvidia-drm/nvidia-drm-gem.c (-1 / +1 lines)
Lines 408-414 Link Here
408
408
409
    mutex_lock(&dev->struct_mutex);
409
    mutex_lock(&dev->struct_mutex);
410
410
411
    gem = drm_gem_object_lookup(dev, file, handle);
411
    gem = drm_gem_object_lookup(file, handle);
412
412
413
    if (gem == NULL)
413
    if (gem == NULL)
414
    {
414
    {
(-)kernel/nvidia-uvm/uvm8_gpu.c (-1 / +1 lines)
Lines 647-653 Link Here
647
                   gpu->id, uvm_gpu_retained_count(gpu));
647
                   gpu->id, uvm_gpu_retained_count(gpu));
648
648
649
    // All channels should have been removed before the retained count went to 0
649
    // All channels should have been removed before the retained count went to 0
650
    UVM_ASSERT(radix_tree_empty(&gpu->instance_ptr_table));
650
    UVM_ASSERT(radix_tree_is_empty(&gpu->instance_ptr_table));
651
651
652
    // Remove the GPU from the table.
652
    // Remove the GPU from the table.
653
    uvm_spin_lock_irqsave(&g_uvm_global.gpu_table_lock);
653
    uvm_spin_lock_irqsave(&g_uvm_global.gpu_table_lock);
(-)kernel/nvidia-uvm/uvm_linux.h (-1 / +1 lines)
Lines 554-560 Link Here
554
    INIT_RADIX_TREE(tree, GFP_NOWAIT);
554
    INIT_RADIX_TREE(tree, GFP_NOWAIT);
555
}
555
}
556
556
557
static bool radix_tree_empty(struct radix_tree_root *tree)
557
static bool radix_tree_is_empty(struct radix_tree_root *tree)
558
{
558
{
559
    void *dummy;
559
    void *dummy;
560
    return radix_tree_gang_lookup(tree, &dummy, 0, 1) == 0;
560
    return radix_tree_gang_lookup(tree, &dummy, 0, 1) == 0;

Return to bug 589858