View | Details | Raw Unified | Return to bug 263616
Collapse All | Expand All

(-)files/rtc.c (+6 lines)
Lines 109-118 Link Here
109
rtc_attach(struct cdev *dev)
109
rtc_attach(struct cdev *dev)
110
{
110
{
111
	struct rtc_softc *sc;
111
	struct rtc_softc *sc;
112
/* Clang 13+ realises that "unit" below isn't actually used if we */
113
/* aren't running with DEBUG set. The warning is treated as a     */
114
/* fatal error by FreeBSD's kmod build system, so wrap its usage  */
115
/* within DEBUG pre-processor conditionals. - Jamie Landeg-Jones  */
116
#if DEBUG
112
	int unit;
117
	int unit;
113
118
114
	unit = dev2unit(dev);
119
	unit = dev2unit(dev);
115
	DLog(Lenter, "%d %p", unit, dev);
120
	DLog(Lenter, "%d %p", unit, dev);
121
#endif /* DEBUG */
116
	if (dev->si_drv1) {
122
	if (dev->si_drv1) {
117
		DLog(Lexit, "old %p, %p", dev, dev->si_drv1);
123
		DLog(Lexit, "old %p, %p", dev, dev->si_drv1);
118
		return dev->si_drv1;
124
		return dev->si_drv1;

Return to bug 263616