Skip to contentSkip to conversation

don't include ioctl32.h in drivers

PATCH In review Christoph Hellwig 3 participants 3 messages Dec 13, 2005

Subsystems (8)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 don't include ioctl32.h in drivers

These days ioctl32.h is only used for communication of fs/compat.c and fs/compat_ioctl.c and doesn't contain anything of interest to drivers.

Remove inclusion in various drivers.

arch/s390/kernel/s390_ksyms.c +0 -1
Index: linux-2.6.15-rc5/arch/s390/kernel/s390_ksyms.c
===================================================================
@@ -10,7 +10,6 @@
 #include <linux/smp.h>
 #include <linux/syscalls.h>
 #include <linux/interrupt.h>
-#include <linux/ioctl32.h>
 #include <asm/checksum.h>
 #include <asm/cpcmd.h>
 #include <asm/delay.h>
arch/x86_64/kernel/x8664_ksyms.c +0 -1
Index: linux-2.6.15-rc5/arch/x86_64/kernel/x8664_ksyms.c
===================================================================
@@ -13,7 +13,6 @@
 #include <linux/string.h>
 #include <linux/syscalls.h>
 #include <linux/tty.h>
-#include <linux/ioctl32.h>
 
 #include <asm/semaphore.h>
 #include <asm/processor.h>
drivers/char/drm/drm_ioc32.c +0 -1
Index: linux-2.6.15-rc5/drivers/char/drm/drm_ioc32.c
===================================================================
@@ -28,7 +28,6 @@
  * IN THE SOFTWARE.
  */
 #include <linux/compat.h>
-#include <linux/ioctl32.h>
 
 #include "drmP.h"
 #include "drm_core.h"
drivers/char/drm/i915_ioc32.c +0 -1
Index: linux-2.6.15-rc5/drivers/char/drm/i915_ioc32.c
===================================================================
@@ -30,7 +30,6 @@
  * IN THE SOFTWARE.
  */
 #include <linux/compat.h>
-#include <linux/ioctl32.h>
 
 #include "drmP.h"
 #include "drm.h"
drivers/char/drm/mga_ioc32.c +0 -1
Index: linux-2.6.15-rc5/drivers/char/drm/mga_ioc32.c
===================================================================
@@ -31,7 +31,6 @@
  * IN THE SOFTWARE.
  */
 #include <linux/compat.h>
-#include <linux/ioctl32.h>
 
 #include "drmP.h"
 #include "drm.h"
drivers/char/drm/r128_ioc32.c +0 -1
Index: linux-2.6.15-rc5/drivers/char/drm/r128_ioc32.c
===================================================================
@@ -30,7 +30,6 @@
  * IN THE SOFTWARE.
  */
 #include <linux/compat.h>
-#include <linux/ioctl32.h>
 
 #include "drmP.h"
 #include "drm.h"
drivers/char/drm/radeon_ioc32.c +0 -1
Index: linux-2.6.15-rc5/drivers/char/drm/radeon_ioc32.c
===================================================================
@@ -28,7 +28,6 @@
  * IN THE SOFTWARE.
  */
 #include <linux/compat.h>
-#include <linux/ioctl32.h>
 
 #include "drmP.h"
 #include "drm.h"
drivers/ieee1394/amdtp.c +0 -1
Index: linux-2.6.15-rc5/drivers/ieee1394/amdtp.c
===================================================================
@@ -80,7 +80,6 @@
 #include <linux/pci.h>
 #include <linux/interrupt.h>
 #include <linux/poll.h>
-#include <linux/ioctl32.h>
 #include <linux/compat.h>
 #include <linux/cdev.h>
 #include <asm/uaccess.h>
drivers/ieee1394/dv1394.c +0 -1
Index: linux-2.6.15-rc5/drivers/ieee1394/dv1394.c
===================================================================
@@ -108,7 +108,6 @@
 #include <linux/types.h>
 #include <linux/vmalloc.h>
 #include <linux/string.h>
-#include <linux/ioctl32.h>
 #include <linux/compat.h>
 #include <linux/cdev.h>
 
drivers/ieee1394/video1394.c +0 -1
Index: linux-2.6.15-rc5/drivers/ieee1394/video1394.c
===================================================================
@@ -48,7 +48,6 @@
 #include <linux/vmalloc.h>
 #include <linux/timex.h>
 #include <linux/mm.h>
-#include <linux/ioctl32.h>
 #include <linux/compat.h>
 #include <linux/cdev.h>
 
drivers/message/fusion/mptctl.c +0 -2
Index: linux-2.6.15-rc5/drivers/message/fusion/mptctl.c
===================================================================
@@ -2585,8 +2585,6 @@
 
 #ifdef CONFIG_COMPAT
 
-#include <linux/ioctl32.h>
-
 static int
 compat_mptfwxfer_ioctl(struct file *filp, unsigned int cmd,
 			unsigned long arg)
drivers/s390/crypto/z90main.c +0 -1
Index: linux-2.6.15-rc5/drivers/s390/crypto/z90main.c
===================================================================
@@ -30,7 +30,6 @@
 #include <linux/delay.h>       // mdelay
 #include <linux/init.h>
 #include <linux/interrupt.h>   // for tasklets
-#include <linux/ioctl32.h>
 #include <linux/miscdevice.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
drivers/scsi/aacraid/linit.c +0 -1
Index: linux-2.6.15-rc5/drivers/scsi/aacraid/linit.c
===================================================================
@@ -46,7 +46,6 @@
 #include <linux/slab.h>
 #include <linux/spinlock.h>
 #include <linux/syscalls.h>
-#include <linux/ioctl32.h>
 #include <linux/delay.h>
 #include <linux/smp_lock.h>
 #include <asm/semaphore.h>
drivers/scsi/ch.c +0 -1
Index: linux-2.6.15-rc5/drivers/scsi/ch.c
===================================================================
@@ -20,7 +20,6 @@
 #include <linux/interrupt.h>
 #include <linux/blkdev.h>
 #include <linux/completion.h>
-#include <linux/ioctl32.h>
 #include <linux/compat.h>
 #include <linux/chio.h>			/* here are all the ioctls */
 
drivers/scsi/megaraid/megaraid_mm.h +0 -1
Index: linux-2.6.15-rc5/drivers/scsi/megaraid/megaraid_mm.h
===================================================================
@@ -22,7 +22,6 @@
 #include <linux/moduleparam.h>
 #include <linux/pci.h>
 #include <linux/list.h>
-#include <linux/ioctl32.h>
 
 #include "mbox_defs.h"
 #include "megaraid_ioctl.h"
fs/xfs/linux-2.6/xfs_ioctl32.c +0 -1
Index: linux-2.6.15-rc5/fs/xfs/linux-2.6/xfs_ioctl32.c
===================================================================
@@ -19,7 +19,6 @@
 #include <linux/compat.h>
 #include <linux/init.h>
 #include <linux/ioctl.h>
-#include <linux/ioctl32.h>
 #include <linux/syscalls.h>
 #include <linux/types.h>
 #include <linux/fs.h>
#1 lore raw

Helo guys...

I'm new here...

And I'm happy for this
We need some help, and maybe we are looking in the wrong place...

We are compiling the 2.6.14 Kernel for a HP Proliant DL380 G4 that has a Smart Array 6i Controller.

We would like to know wich Kernel modules we need to add to have support for this controller.

Another question: In the Slackware Distro that we have been installed, the system recognizes just 882Mb of Memory (The system has 2Gb)

Will compiling Kernel 2.6.14 with this RAID support and Highmem Module enabled solve these problems??

Thanks for all.

PS: sorry my bad english... i need to learn more....uhauauh

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-

George Silverio da Silva
Security Consultant
BBCENTER LTDA
tel +55 41 32332266
cel +55 41 84059704

#2 lore raw
Quoted 6 lines · George Silverio da Silva

Helo guys...

I'm new here...

Quoted 9 lines

And I'm happy for this
We need some help, and maybe we are looking in the wrong place...

We are compiling the 2.6.14 Kernel for a HP Proliant DL380 G4 that has a Smart Array 6i Controller.

We would like to know wich Kernel modules we need to add to have support for this controller.

from drivers/block/Kconfig :

config BLK_CPQ_CISS_DA
tristate "Compaq Smart Array 5xxx support"
depends on PCI
help
This is the driver for Compaq Smart Array 5xxx controllers. Everyone using these boards should say Y here. See <file:Documentation/cciss.txt> for the current list of boards supported by this driver, and for further information on the use of this driver.

Quoted 3 lines

Another question: In the Slackware Distro that we have been installed, the system recognizes just 882Mb of Memory (The system has 2Gb)

Yes, you need HIGHMEM enabled to see/use all the RAM and the standard Slackware kernel does not have HIGHMEN enabled.
That explains the 882MB of RAM.

Quoted 3 lines

Will compiling Kernel 2.6.14 with this RAID support and Highmem Module enabled solve these problems??

It should.

Btw: usually a very fast way to find answers to such questions is to "just try it" and then you'll know :-)

--
Jesper Juhl <[email protected]>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html