Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Apr 1995 23:27:26 +0200
From:      Mark Murray <mark@grondar.za>
To:        current@FreeBSD.org, bugs@FreeBSD.org
Subject:   Funnies in the SCSI kernel code...
Message-ID:  <199504032127.XAA05114@grunt.grondar.za>

next in thread | raw e-mail | index | archive | help
Hi

What is going on here?

[Next line is line 56 of /sys/scsi/sd.c]
> #define SECSIZE 512
> #define SDOUTSTANDING 4
> #define SD_RETRIES    4
> #define MAXTRANSFER   8           /* 1 page at a time */
> 
> #define SDUNITSHIFT         3
> #define SDUNIT(DEV)         SH3_UNIT(DEV)             +++++
> #define SDSETUNIT(DEV, U)   SH3SETUNIT((DEV), (U))    =====

> #define PARTITION(dev)      dkpart(dev)
> #define SDUNIT(dev)         dkunit(dev)               +++++
> 
> /* XXX introduce a dkmodunit() macro for this. */
> #define SDSETUNIT(DEV, U) \                           =====
>  makedev(major(DEV), dkmakeminor((U), dkslice(DEV), dkpart(DEV)))

+++++  Multiple definition of SDUNIT
=====  Multiple definition of SDSETUNIT

If they were the same, frankly I wouldn't give a damn. What gives?

M

M

-- 
Mark Murray
46 Harvey Rd, Claremont, Cape Town 7700, South Africa
+27 21 61-3768 GMT+0200



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504032127.XAA05114>