Skip to content

Commit

Permalink
drivers: media: pci: Fix Hailo compile warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Phil Elwell <[email protected]>
  • Loading branch information
pelwell authored and popcornmix committed Sep 10, 2024
1 parent c79c9bc commit 760d872
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/media/pci/hailo/common/pcie_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ int hailo_pcie_write_firmware(struct hailo_pcie_resources *resources, const void
}

// TODO: HRT-14147 - remove this function
bool hailo_pcie_is_device_ready_for_boot(struct hailo_pcie_resources *resources)
static bool hailo_pcie_is_device_ready_for_boot(struct hailo_pcie_resources *resources)
{
return hailo_get_boot_status(resources) == BOOT_STATUS_UNINITIALIZED;
}
Expand Down
3 changes: 2 additions & 1 deletion drivers/media/pci/hailo/vdma/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ void hailo_vdma_clear_continuous_buffer_list(struct hailo_vdma_file_context *con
*
* Return: zero and the pfn at @pfn on success, -ve otherwise.
*/
#if defined(HAILO_SUPPORT_MMIO_DMA_MAPPING)
static int follow_pfn(struct vm_area_struct *vma, unsigned long address,
unsigned long *pfn)
{
Expand All @@ -529,7 +530,7 @@ static int follow_pfn(struct vm_area_struct *vma, unsigned long address,
pte_unmap_unlock(ptep, ptl);
return 0;
}

#endif

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

0 comments on commit 760d872

Please sign in to comment.