2006-10-21 10:02:01

by Ismail Dönmez

[permalink] [raw]
Subject: [PATCH] scsi/scsi.h protect scsi_to_u32 function by ifdef __KERNEL__

Hi,

include/scsi/scsi.h defines scsi_to_u32 function like this:

static inline u32 scsi_to_u32(u8 *ptr)

But the definition of u8 is protected by ifdef __KERNEL__ in asm/types.h hence
this whole function should be procted as well. This fixes compilation of
cdrtools with latest kernel-headers GIT tree.

Signed-off-by: Ismail Donmez <[email protected]>


Attachments:
(No filename) (361.00 B)
1.patch (520.00 B)
Download all attachments