Update of /cvsroot/linux-vax/kernel-2.5/include/asm-vax/mm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25684/include/asm-vax/mm
Modified Files:
pagelet_pgd.h
Log Message:
Add parentheses around macro arguments
Index: pagelet_pgd.h
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/mm/pagelet_pgd.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- pagelet_pgd.h 26 Aug 2003 23:12:14 -0000 1.5
+++ pagelet_pgd.h 28 Mar 2005 16:28:23 -0000 1.6
@@ -54,7 +54,7 @@
/* to set the page-dir (p0br/p0lr) (p1br/p1lr) see arch/vax/mm/pgtable.c */
extern void set_page_dir(struct task_struct *task, pgd_t *pgdir);
#define SET_PAGE_DIR( tsk, pgdir) \
- set_page_dir( tsk, pgdir)
+ set_page_dir( (tsk), (pgdir))
@@ -68,12 +68,12 @@
* this macro returns the index of the entry in the pgd page which would
* control the given virtual address
*/
-#define pgd_index(address) ((address >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
+#define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
/*
* a shortcut which implies the use of the kernel's pgd, instead
* of a process's
*/
-#define pgd_offset_k(address) pgd_offset(&init_mm, address)
+#define pgd_offset_k(address) pgd_offset(&init_mm, (address))
#endif
|