LinuxKPI: add _devcd_free_sgtable() to devcoredump.h

It may be that once we implement freeing of chained tables
_devcd_free_sgtable() will become our _lkpi_dev_coredumpsg_free()
but further investigations need to happen.  For now make an
updated iwlwifi driver happy which should not need more.

Sponsored by:	The FreeBSD Foundation
Reviewed by:	dumbbell
Differential Revision: https://reviews.freebsd.org/D50006

(cherry picked from commit 71576ed24b56143429a3b6774a7862965c2dea88)
This commit is contained in:
Bjoern A. Zeeb 2025-04-24 11:13:35 +00:00 committed by Franco Fichtner
parent bf1e748dfd
commit ddb311ffab

View file

@ -1,7 +1,7 @@
/*-
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2020 The FreeBSD Foundation
* Copyright (c) 2020-2025 The FreeBSD Foundation
*
* This software was developed by Björn Zeeb under sponsorship from
* the FreeBSD Foundation.
@ -71,4 +71,11 @@ dev_coredumpsg(struct device *dev __unused, struct scatterlist *table,
_lkpi_dev_coredumpsg_free(table);
}
static inline void
_devcd_free_sgtable(struct scatterlist *table)
{
/* UNIMPLEMENTED */
_lkpi_dev_coredumpsg_free(table);
}
#endif /* _LINUXKPI_LINUX_DEVCOREDUMP_H */