Skip to content

Commit 760d872

Browse files
pelwellpopcornmix
authored andcommitted
drivers: media: pci: Fix Hailo compile warnings
Signed-off-by: Phil Elwell <[email protected]>
1 parent c79c9bc commit 760d872

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: drivers/media/pci/hailo/common/pcie_common.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ int hailo_pcie_write_firmware(struct hailo_pcie_resources *resources, const void
656656
}
657657

658658
// TODO: HRT-14147 - remove this function
659-
bool hailo_pcie_is_device_ready_for_boot(struct hailo_pcie_resources *resources)
659+
static bool hailo_pcie_is_device_ready_for_boot(struct hailo_pcie_resources *resources)
660660
{
661661
return hailo_get_boot_status(resources) == BOOT_STATUS_UNINITIALIZED;
662662
}

Diff for: drivers/media/pci/hailo/vdma/memory.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,7 @@ void hailo_vdma_clear_continuous_buffer_list(struct hailo_vdma_file_context *con
512512
*
513513
* Return: zero and the pfn at @pfn on success, -ve otherwise.
514514
*/
515+
#if defined(HAILO_SUPPORT_MMIO_DMA_MAPPING)
515516
static int follow_pfn(struct vm_area_struct *vma, unsigned long address,
516517
unsigned long *pfn)
517518
{
@@ -529,7 +530,7 @@ static int follow_pfn(struct vm_area_struct *vma, unsigned long address,
529530
pte_unmap_unlock(ptep, ptl);
530531
return 0;
531532
}
532-
533+
#endif
533534

534535
// Assumes the provided user_address belongs to the vma and that MMIO_AND_NO_PAGES_VMA_MASK bits are set under
535536
// vma->vm_flags. This is validated in hailo_vdma_buffer_map, and won't be checked here

0 commit comments

Comments
 (0)