lkml.org 
[lkml]   [1999]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [2.2.14pre9] Breaks userland scsi.h compiles
On Mon, Nov 29 1999, Aaron Tiensivu wrote:
> Just needs a simple #ifdef wrapper:
>
> --- linux/include/scsi/scsi.h.virgin Sun Nov 28 21:29:06 1999
> +++ linux/include/scsi/scsi.h Sun Nov 28 21:29:31 1999
> @@ -18,7 +18,9 @@
> * SCSI opcodes
> */
>
> +#ifdef __KERNEL__
> extern spinlock_t scsi_malloc_lock;
> +#endif
>
> #define TEST_UNIT_READY 0x00
> #define REZERO_UNIT 0x01

This is my bad, I was to quick in adding. The correct place
to put the definition is in drivers/scsi/scsi.h as it is
(as you note) not meant to be seen by user space at all.

--
* Jens Axboe <axboe@image.dk>
* Linux CD-ROM Maintainer
* http://www.kernel.dk

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.076 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site