Re: Patch: linux-2.5.30: return hd_driveid to <linux/hdreg.h>

From: Marcin Dalecki (
Date: Fri Aug 02 2002 - 04:48:32 EST

Użytkownik Adam J. Richter napisał:
> IDE-108 moved struct hd_driveid from linux/hdreg.h to
> linux/ide.h. However, user level code in pcmcia-cs-3.2.0/cardmgr/ide-info.c
> refers to hd_driveid, and including <linux/ide.h> results in a flood
> of conflicts with GNU C library headers.
> The following patch returns struct hd_driveid to include/linux/hdreg.h
> and changes its u{8,16,32,64} references to __u{8,16,32,64} (which are
> types that the linux include files export for user level programs).
> I have rebuilt the core kernel, drivers/{ide,scsi} and
> pcmcia-cs-3.2.0 with this change. It fixes the pcmcia-cs-3.2.0
> compilation problems and does not appear to cause any new compilation
> errors in the kernel.

Please don't. This structure is not a property of the Linux kernel.
This struture is something which should simply be redeclared in
pcmcia-cs and handled there. It is a "bug" on behalf of pcmcia-cs to
rely on the fact that accidentally some random kernel header
is daclaring it as well.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed Aug 07 2002 - 22:00:18 EST