lkml.org 
[lkml]   [2002]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectPROBLEM: compiling hfs module in 2.5.21
Date
Hello,
I ran into a problem compiling the hfs (hierarchical file
system) as a module in kernel 2.5.21. I'm running gcc
version 2.95.4 20011002 (Debian prerelease) on a x86.
The error message from gcc is:
gcc -Wp,-MD,.inode.o.d -D__KERNEL__
-I/usr/src/linux-2.5.21/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe
-mpreferred-stack-boundary=2 -march=i686 -nostdinc
-iwithprefix include -DMODULE -include
/usr/src/linux-2.5.21/include/linux/modversions.h
-DKBUILD_BASENAME=inode -c -o inode.o inode.c
inode.c: In function `hfs_prepare_write':
inode.c:242: dereferencing pointer to incomplete type
make[3]: *** [inode.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.5.21/fs/hfs'
make[2]: *** [_subdir_hfs] Error 2
make[2]: Leaving directory `/usr/src/linux-2.5.21/fs'
make[1]: *** [fs] Error 2
make[1]: Leaving directory `/usr/src/linux-2.5.21'
make: *** [modules] Error 2

My solution is to add #include <linux/mm.h> to
fs/hfs/inode.c, a patch to do this is attached.

Thanks!
--brendan
[unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.223 / U:1.568 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site