lkml.org 
[lkml]   [2000]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectCompile problem
I ran into trouble compiling ipc/shm.c, as THIS_MODULE was not
defined. This was being used by:

static DECLARE_FSTYPE(shm_fs_type, "shm", shm_read_super, 0);

This macro, which uses THIS_MODULE, is defined in include/linux/fs.h,
but THIS_MODULE is in include/linux/module.h, which isn't included by
either fs.h or shm.c.

Adding #include <linux/module.h> to fs.h fixed the problem.

-igor
(please CC me on replies)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.024 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site