Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Apr 2007 10:41:05 -0700
From:      Mark Atkinson <atkin901@yahoo.com>
To:        freebsd-usb@freebsd.org
Subject:   msleep redefined error in hselasky/usb4bsd/ svn patch against -current
Message-ID:  <ev0nvi$di4$1@sea.gmane.org>

next in thread | raw e-mail | index | archive | help
I get the following error when trying to compile the proposed usb4bsd stack
against current.

In file included from /usr/src/sys/dev/usb/ehci.c:67:
/usr/src/sys/dev/usb/usb_port.h:293:1: "msleep" redefined
In file included from /usr/src/sys/dev/usb/ehci.c:58:
/usr/src/sys/sys/systm.h:313:1: this is the location of the previous
definition
*** Error code 1

Sure enough, it is intentionally redefined:

sys/dev/usb/usb_port.h:290-293

/* preliminary fix for a bug in msleep on FreeBSD, 
 * which cannot sleep with Giant:
 */
#define msleep(i,m,p,w,t) msleep(i,(((m) == &Giant) ? NULL : (m)),p,w,t)


-- 
Mark Atkinson
atkin901@yahoo.com
(!wired)?(coffee++):(wired);




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ev0nvi$di4$1>