opnsense-src/lib/libdevinfo/Makefile
John Baldwin 7554746c43 libdevinfo: Avoid false positives for the root0 sentinel value
Previously, a NULL pointer value was used to request the root0 device
at the top of the device tree.  However, this meant that resource
ranges from a rman with a NULL device pointer were annotated as being
owned by root0 instead of being unowned.  Switch to a different value
for root0's sentinel to avoid the clash.

Since this is an ABI change, bump the SHLIB_MAJOR for libdevinfo to 7.

Reported by:	jrtc27
Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D48675
2025-01-29 10:03:59 -05:00

21 lines
522 B
Makefile

PACKAGE= devmatch
LIB= devinfo
SRCS= devinfo.c
INCS= devinfo.h
MAN= devinfo.3
MLINKS+=devinfo.3 devinfo_init.3
MLINKS+=devinfo.3 devinfo_free.3
MLINKS+=devinfo.3 devinfo_handle_to_device.3
MLINKS+=devinfo.3 devinfo_handle_to_resource.3
MLINKS+=devinfo.3 devinfo_handle_to_rman.3
MLINKS+=devinfo.3 devinfo_foreach_device_child.3
MLINKS+=devinfo.3 devinfo_foreach_device_resource.3
MLINKS+=devinfo.3 devinfo_foreach_rman_resource.3
MLINKS+=devinfo.3 devinfo_foreach_rman.3
SHLIB_MAJOR= 7
WARNS?= 3
.include <bsd.lib.mk>