diff --git a/defs.h b/defs.h
index 4b3eec9841900b29bba29cfd65ab6d1b5e507a04..921c7bfb8897a219d4913edf738c210ccadea5dd 100644
--- a/defs.h
+++ b/defs.h
@@ -176,7 +176,7 @@ pde_t*          copyuvm(pde_t*, uint);
 void            switchuvm(struct proc*);
 void            switchkvm(void);
 int             copyout(pde_t*, uint, void*, uint);
-void            clear_pte_u(pde_t *pgdir, char *uva);
+void            clearpteu(pde_t *pgdir, char *uva);
 
 // number of elements in fixed-size array
 #define NELEM(x) (sizeof(x)/sizeof((x)[0]))
diff --git a/exec.c b/exec.c
index af9e0069eedf978363ed72e40e09dcce43c59c5d..4be65a4911593ff1c36ccc505365bc01db1b82eb 100644
--- a/exec.c
+++ b/exec.c
@@ -55,7 +55,7 @@ exec(char *path, char **argv)
   sz = PGROUNDUP(sz);
   if((sz = allocuvm(pgdir, sz, sz + 2*PGSIZE)) == 0)
     goto bad;
-  clear_pte_u(pgdir, (char*)(sz-2*PGSIZE));
+  clearpteu(pgdir, (char*)(sz - 2*PGSIZE));
   sp = sz;
 
   // Push argument strings, prepare rest of stack in ustack.
diff --git a/vm.c b/vm.c
index 10687fcaa12651e148326700a0412146c375ed16..3e52b44a863559246f841839d6df6f585a5f2275 100644
--- a/vm.c
+++ b/vm.c
@@ -292,13 +292,13 @@ freevm(pde_t *pgdir)
 // Clear PTE_U on a page. Used to create an inaccessible
 // page beneath the user stack.
 void
-clear_pte_u(pde_t *pgdir, char *uva)
+clearpteu(pde_t *pgdir, char *uva)
 {
   pte_t *pte;
 
   pte = walkpgdir(pgdir, uva, 0);
   if(pte == 0)
-    panic("clear_pte_u");
+    panic("clearpteu");
   *pte &= ~PTE_U;
 }