From: Kenn H. <ke...@us...> - 2005-04-20 19:02:12
|
Update of /cvsroot/linux-vax/kernel-2.5/include/asm-vax/mm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21022/mm Modified Files: pgtable.h Log Message: The .lr member of swapper_pg_dir is already an unsigned long, so the cast in SPT_LEN is unnecessary. GCC 4.1 complains about it because casts are no longer allowed in lvalues. Index: pgtable.h =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/mm/pgtable.h,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- pgtable.h 28 Mar 2005 16:38:57 -0000 1.12 +++ pgtable.h 20 Apr 2005 19:02:02 -0000 1.13 @@ -53,7 +53,7 @@ #define SPT_BASE ((unsigned long)( (swapper_pg_dir[2]).br )) /* SPT_LEN can be an lvalue, and is the length in longwords */ -#define SPT_LEN ((unsigned long)( (swapper_pg_dir[2]).lr )) +#define SPT_LEN swapper_pg_dir[2].lr /* SPT_SIZE is the size in BYTES */ #define SPT_SIZE ((unsigned long)( (swapper_pg_dir[2]).lr ) << 2) |