OSDN Git Service

libext2fs: Remove #include of <linux/types.h> from fiemap.h
authorTheodore Ts'o <tytso@mit.edu>
Mon, 31 May 2010 22:50:50 +0000 (18:50 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 31 May 2010 22:50:50 +0000 (18:50 -0400)
The system header file can end up causing type conflicts, and
including kernel header files is always dodgy/dangerous (and this case
not needed).

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/fiemap.h

index 934e22d..671decb 100644 (file)
@@ -11,8 +11,6 @@
 #ifndef _LINUX_FIEMAP_H
 #define _LINUX_FIEMAP_H
 
-#include <linux/types.h>
-
 struct fiemap_extent {
        __u64 fe_logical;  /* logical offset in bytes for the start of
                            * the extent from the beginning of the file */