mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Try to make this work again. Peter's last changes left it like :
loading kernel worm.o: Undefined symbol `_STUNIT' referenced from text segment I copied the STUNIT definition from the old scsiconf.c into this file to work around this problem.
This commit is contained in:
parent
bacc93a004
commit
7493537088
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=8256
1 changed files with 4 additions and 4 deletions
|
@ -37,7 +37,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: worm.c,v 1.3 1995/04/23 07:39:21 bde Exp $
|
||||
* $Id: worm.c,v 1.4 1995/04/23 22:07:56 gibbs Exp $
|
||||
*/
|
||||
|
||||
/* XXX This is PRELIMINARY.
|
||||
|
@ -59,6 +59,8 @@
|
|||
#include <scsi/scsiconf.h>
|
||||
#include <scsi/scsi_disk.h>
|
||||
|
||||
#define STUNIT(DEV) ((minor(DEV)&0xF0) >> 4) /* 4 bit unit. */
|
||||
|
||||
struct scsi_data {
|
||||
struct buf *buf_queue; /* the queue of pending IO operations */
|
||||
|
||||
|
@ -240,7 +242,7 @@ wormstart(unit, flags)
|
|||
flags | SCSI_NOSLEEP) == SUCCESSFULLY_QUEUED) {
|
||||
} else {
|
||||
badnews:
|
||||
printf("worm%d: oops not queued\n", unit);
|
||||
printf("worm%ld: oops not queued\n", unit);
|
||||
bp->b_flags |= B_ERROR;
|
||||
bp->b_error = EIO;
|
||||
biodone(bp);
|
||||
|
@ -305,8 +307,6 @@ int
|
|||
worm_open(dev_t dev, int flags, int fmt, struct proc *p,
|
||||
struct scsi_link *sc_link)
|
||||
{
|
||||
struct scsi_data *worm = sc_link->sd;
|
||||
|
||||
if (sc_link->flags & SDEV_OPEN)
|
||||
return EBUSY;
|
||||
|
||||
|
|
Loading…
Reference in a new issue