aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2026-04-23 17:05:54 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2026-04-23 17:05:54 +0000
commit573e6313bc3b3d7d8da4531fbfaa2763dbe209a7 (patch)
treef8520070b04b75aeb8d2f0697842ae4b4671275b /sys/compat/linuxkpi/common
parentd8863680744f2de6a97ca80d8eba3755f506203c (diff)
Diffstat (limited to 'sys/compat/linuxkpi/common')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/highmem.h2
-rw-r--r--sys/compat/linuxkpi/common/include/linux/scatterlist.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/highmem.h b/sys/compat/linuxkpi/common/include/linux/highmem.h
index 294b2666031b..1374712735ac 100644
--- a/sys/compat/linuxkpi/common/include/linux/highmem.h
+++ b/sys/compat/linuxkpi/common/include/linux/highmem.h
@@ -70,7 +70,7 @@ kmap(struct page *page)
sched_unpin();
return (NULL);
}
- return ((void *)sf_buf_kva(sf));
+ return (sf_buf_kva(sf));
}
}
diff --git a/sys/compat/linuxkpi/common/include/linux/scatterlist.h b/sys/compat/linuxkpi/common/include/linux/scatterlist.h
index 537f5bebc5aa..775ed499a7d0 100644
--- a/sys/compat/linuxkpi/common/include/linux/scatterlist.h
+++ b/sys/compat/linuxkpi/common/include/linux/scatterlist.h
@@ -654,7 +654,7 @@ sg_pcopy_to_buffer(struct scatterlist *sgl, unsigned int nents,
sf = sf_buf_alloc(page, SFB_CPUPRIVATE | SFB_NOWAIT);
if (sf == NULL)
break;
- vaddr = (char *)sf_buf_kva(sf);
+ vaddr = sf_buf_kva(sf);
} else
vaddr = (char *)PHYS_TO_DMAP(page_to_phys(page));
memcpy(buf, vaddr + sg->offset + offset, len);