From: Jun S. <ju...@us...> - 2001-09-11 22:22:46
|
Update of /cvsroot/linux-mips/linux/include/linux In directory usw-pr-cvs1:/tmp/cvs-serv30389/include/linux Modified Files: module.h Log Message: Update module.h to sync with oss.sgi.com CVS tree. Otherwise module.c does not compile. Index: module.h =================================================================== RCS file: /cvsroot/linux-mips/linux/include/linux/module.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** module.h 2001/09/06 17:13:41 1.1 --- module.h 2001/09/11 22:22:43 1.2 *************** *** 131,134 **** --- 131,144 ---- <= (mod)->size_of_struct) + /* + * Ditto for archdata. Assumes mod->archdata_start and mod->archdata_end + * are validated elsewhere. + */ + #define mod_archdata_member_present(mod, type, member) \ + (((unsigned long)(&((type *)0L)->member) + \ + sizeof(((type *)0L)->member)) <= \ + ((mod)->archdata_end - (mod)->archdata_start)) + + /* Check if an address p with number of entries n is within the body of module m */ #define mod_bound(p, n, m) ((unsigned long)(p) >= ((unsigned long)(m) + ((m)->size_of_struct)) && \ |