pre-patch-2.3.52-3: sparc compile problem personality.h

From: Michael Gerdts (gerdts@cae.wisc.edu)
Date: Tue Mar 14 2000 - 16:28:07 EST


Some problems come up in compiling 2.3.51 + pre-patch-2.3.52-3. The exact
message was lost in my scrollback buffer, so I don't have the exact text.

Anyway, prepatch 2.3.52-3 added

    put_exec_domain(current->exec_domain);

to linux/arch/sparc/kernel/sys_solaris.c. put_exec_domain is a macro
defined in personality.h, which makes use of __MOD_DEC_USE_COUNT. Since
neither sys_solaris.c nor personality.h include <linux/module.h>, the
__MOD_DEC_USE_COUNT macro is not expanded. The proposed fix is attached.
An alternative patch would be to add

#include <linux/module.h>

to sys_solaris.c before

#include <linux/personality.h>

Mike

-- 
Mike Gerdts
UNIX Systems Administrator
Computer-Aided Engineering Center
University of Wisconsin - Madison


- 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 : Wed Mar 15 2000 - 21:00:29 EST