+ include-linux-msdos_fsh-cleanup-include-linux-msdos_fsh-for-userspace.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     include/linux/msdos_fs.h: cleanup include/linux/msdos_fs.h for userspace
has been added to the -mm tree.  Its filename is
     include-linux-msdos_fsh-cleanup-include-linux-msdos_fsh-for-userspace.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: include/linux/msdos_fs.h: cleanup include/linux/msdos_fs.h for userspace
From: S.Caglar Onur <caglar@xxxxxxxxxxxxx>

include/linux/msdos_fs.h header should use __u## rather than u## types
else any userspace code (like syslinux) includes that header fails to
compile like following;

[...]
gcc -Wp,-MT,bootsect_bin.o,-MMD,.bootsect_bin.o.d -W -Wall -D_FILE_OFFSET_BITS=64 -g -Os -I. -I.. -I../libinstaller -c -o bootsect_bin.o ../bootsect_bin.c
gcc -Wp,-MT,ldlinux_bin.o,-MMD,.ldlinux_bin.o.d -W -Wall -D_FILE_OFFSET_BITS=64 -g -Os -I. -I.. -I../libinstaller -c -o ldlinux_bin.o ../ldlinux_bin.c
In file included from syslinux.c:52:
/usr/include/linux/msdos_fs.h:61: error: expected ')' before 'media'
[...]

Noticed by Onur Küçük <onur@xxxxxxxxxxxxx>

Cc: Frank Seidel <fseidel@xxxxxxx>
Acked-by: OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx>
Cc: Onur Küçük <onur@xxxxxxxxxxxxx>
Signed-off-by: S.Caglar Onur <caglar@xxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 include/linux/msdos_fs.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN include/linux/msdos_fs.h~include-linux-msdos_fsh-cleanup-include-linux-msdos_fsh-for-userspace include/linux/msdos_fs.h
--- a/include/linux/msdos_fs.h~include-linux-msdos_fsh-cleanup-include-linux-msdos_fsh-for-userspace
+++ a/include/linux/msdos_fs.h
@@ -328,7 +328,7 @@ static inline void fatwchar_to16(__u8 *d
 }
 
 /* media of boot sector */
-static inline int fat_valid_media(u8 media)
+static inline int fat_valid_media(__u8 media)
 {
 	return 0xf8 <= media || media == 0xf0;
 }
_

Patches currently in -mm which might be from caglar@xxxxxxxxxxxxx are

include-linux-msdos_fsh-cleanup-include-linux-msdos_fsh-for-userspace.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux