linux-2.1.81 PATCH to adjust <linux/msdos_fs.h> for name space pollution fixes

Adam J. Richter (adam@yggdrasil.com)
Sun, 25 Jan 1998 20:47:47 -0800


There are some fixes in include/linux/byteorder/* that put double
underscores in front of the names of various byte swapping routines.
The following patch adjusts include/linux/msdos_fs.h to be compatible
with the changes when __KERNEL__ is not defined (this problem does not
occur when __KERNEL__ is defined).

This patch allows dosfsck to compile again (actually there
are also some minor unrelated patches to dosfsck, but that's beside
the point).

Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 205
adam@yggdrasil.com \ / San Jose, California 95129-1034
+1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."

-----------------------CUT HERE--------------------------------------------
*** /tmp/linux-2.1.81.orig/include/linux/msdos_fs.h Fri Jan 23 17:21:02 1998
--- linux/include/linux/msdos_fs.h Sun Jan 25 19:57:53 1998
***************
*** 96,103 ****
*/

! #define CF_LE_W(v) le16_to_cpu(v)
! #define CF_LE_L(v) le32_to_cpu(v)
! #define CT_LE_W(v) cpu_to_le16(v)
! #define CT_LE_L(v) cpu_to_le32(v)

struct fat_boot_sector {
--- 96,103 ----
*/

! #define CF_LE_W(v) __le16_to_cpu(v)
! #define CF_LE_L(v) __le32_to_cpu(v)
! #define CT_LE_W(v) __cpu_to_le16(v)
! #define CT_LE_L(v) __cpu_to_le32(v)

struct fat_boot_sector {