mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
backports: enable build on x86_64.
backports 4.1.1-1 is not stable so we need to stay on the older version. Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
diff -Naur backports-4.1.1-1.org/compat/dma-shared-helpers.c backports-4.1.1-1/compat/dma-shared-helpers.c
|
||||
--- backports-4.1.1-1.org/compat/dma-shared-helpers.c 2015-07-01 23:10:37.000000000 +0200
|
||||
+++ backports-4.1.1-1/compat/dma-shared-helpers.c 2015-09-25 13:29:14.006762269 +0200
|
||||
@@ -20,22 +20,3 @@
|
||||
#endif /* LINUX_VERSION_CODE <= KERNEL_VERSION(3,6,0) */
|
||||
#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0) */
|
||||
|
||||
-#if RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(7,0)
|
||||
-/*
|
||||
- * Create scatter-list for the already allocated DMA buffer.
|
||||
- */
|
||||
-int dma_common_get_sgtable(struct device *dev, struct sg_table *sgt,
|
||||
- void *cpu_addr, dma_addr_t handle, size_t size)
|
||||
-{
|
||||
- struct page *page = virt_to_page(cpu_addr);
|
||||
- int ret;
|
||||
-
|
||||
- ret = sg_alloc_table(sgt, 1, GFP_KERNEL);
|
||||
- if (unlikely(ret))
|
||||
- return ret;
|
||||
-
|
||||
- sg_set_page(sgt->sgl, page, PAGE_ALIGN(size), 0);
|
||||
- return 0;
|
||||
-}
|
||||
-EXPORT_SYMBOL_GPL(dma_common_get_sgtable);
|
||||
-#endif /* RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(7,0) */
|
||||
Reference in New Issue
Block a user