Date: Mon, 29 Jun 2026 06:34:33 +0000 From: Bjoern A. Zeeb <bz@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 3b3b73377b3e - stable/15 - LinuxKPI: scatterlist.h: implement sg_init_marker() Message-ID: <6a4211f9.46b0e.20b580ec@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/15 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=3b3b73377b3efcda158fdd23375a7d341cf87ae5 commit 3b3b73377b3efcda158fdd23375a7d341cf87ae5 Author: Bjoern A. Zeeb <bz@FreeBSD.org> AuthorDate: 2026-02-03 18:29:09 +0000 Commit: Bjoern A. Zeeb <bz@FreeBSD.org> CommitDate: 2026-06-29 03:54:01 +0000 LinuxKPI: scatterlist.h: implement sg_init_marker() Add sg_init_marker() which is needed by mt76 drivers USB attachment. Sponosored by: The FreeBSD Foundation Reviewed by: emaste, dumbbell Differential Revision: https://reviews.freebsd.org/D57594 (cherry picked from commit 3d0b6c69dced4936fccff6733912a0ef93214dbe) --- sys/compat/linuxkpi/common/include/linux/scatterlist.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/scatterlist.h b/sys/compat/linuxkpi/common/include/linux/scatterlist.h index 537f5bebc5aa..0c2f8b62f9f5 100644 --- a/sys/compat/linuxkpi/common/include/linux/scatterlist.h +++ b/sys/compat/linuxkpi/common/include/linux/scatterlist.h @@ -188,6 +188,12 @@ sg_mark_end(struct scatterlist *sg) sg->page_link &= ~SG_PAGE_LINK_CHAIN; } +static inline void +sg_init_marker(struct scatterlist *sg, uint32_t num_sgs) +{ + sg_mark_end(&sg[num_sgs - 1]); +} + static inline void sg_init_table(struct scatterlist *sg, unsigned int nents) {home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a4211f9.46b0e.20b580ec>
