freebsd-src/sys/powerpc
Mitchell Horne 7cb028deff busdma: Prevent the use of filters with bus_dma_tag_create()
A deprecation notice was added to the bus_dma(9) man page by scottl@ in
September 2020 discouraging the use of filter functions. I've performed
an attentive check of all callers in the tree and everything that exists
today passes NULL for both filtfunc and filtarg. Thus, we should start
returning EINVAL if these arguments are non-NULL to prevent new usages
from popping up. Update the man page to be more clear about this.

The deprecation notice is present since at least 13.0-RELEASE, so this
is the appropriate step for the lifetime of 15, without actually
breaking the driver API. Stable branches will emit a warning instead.

This change enables the removal of a fair amount of unused complexity
across the various busdma implementations.

Reviewed by:	jhb
MFC after:	never
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D42852
2023-12-06 19:10:25 -04:00
..
aim sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
amigaone sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
booke sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
conf Add a COMPAT_FREEBSD14 kernel option 2023-10-10 11:48:22 +02:00
cpufreq sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
fpu sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
include sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
mambo sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
mikrotik sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
mpc85xx sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
ofw sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
powermac sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
powernv sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
powerpc busdma: Prevent the use of filters with bus_dma_tag_create() 2023-12-06 19:10:25 -04:00
ps3 sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
pseries sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
psim sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00