lkml.org 
[lkml]   [2004]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectcciss patch for 2.6.6
This patch fixes the linux/include/cciss_ioctl.h file. When support for the cciss big ioctl was added the stucture in the header was put in the wrong place. If an application includes the file it will fail to compile.
Please consider this for inclusion in 2.6.6.

Thanks,
mikem
-------------------------------------------------------------------------------

diff -burpN lx266-rc2-p001/include/linux/cciss_ioctl.h lx266-rc2/include/linux/cciss_ioctl.h
--- lx266-rc2-p001/include/linux/cciss_ioctl.h 2004-04-03 21:36:57.000000000 -0600
+++ lx266-rc2/include/linux/cciss_ioctl.h 2004-04-27 13:58:51.000000000 -0500
@@ -35,17 +35,6 @@ typedef __u32 DriverVer_type;

#define MAX_KMALLOC_SIZE 128000

-typedef struct _BIG_IOCTL_Command_struct {
- LUNAddr_struct LUN_info;
- RequestBlock_struct Request;
- ErrorInfo_struct error_info;
- DWORD malloc_size; /* < MAX_KMALLOC_SIZE in cciss.c */
- DWORD buf_size; /* size in bytes of the buf */
- /* < malloc_size * MAXSGENTRIES */
- BYTE *buf;
-} BIG_IOCTL_Command_struct;
-
-
#ifndef CCISS_CMD_H
// This defines are duplicated in cciss_cmd.h in the driver directory

@@ -181,6 +170,16 @@ typedef struct _IOCTL_Command_struct {
BYTE *buf;
} IOCTL_Command_struct;

+typedef struct _BIG_IOCTL_Command_struct {
+ LUNAddr_struct LUN_info;
+ RequestBlock_struct Request;
+ ErrorInfo_struct error_info;
+ DWORD malloc_size; /* < MAX_KMALLOC_SIZE in cciss.c */
+ DWORD buf_size; /* size in bytes of the buf */
+ /* < malloc_size * MAXSGENTRIES */
+ BYTE *buf;
+} BIG_IOCTL_Command_struct;
+
typedef struct _LogvolInfo_struct{
__u32 LunID;
int num_opens; /* number of opens on the logical volume */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.050 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site