Compile problem

From: Jeff Dubrule (igor@pobox.com)
Date: Tue Mar 21 2000 - 16:56:46 EST


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/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:34 EST