Skip to content

Commit efcec32

Browse files
guoren83palmer-dabbelt
authored andcommitted
riscv: Cleanup unused functions
These functions haven't been used, so just remove them. The patch has been tested with riscv. Signed-off-by: Guo Ren <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Anup Patel <[email protected]> Reviewed-by: Palmer Dabbelt <[email protected]> Acked-by: Palmer Dabbelt <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 5def442 commit efcec32

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

arch/riscv/include/asm/page.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,6 @@
3737

3838
#ifndef __ASSEMBLY__
3939

40-
#define PAGE_UP(addr) (((addr)+((PAGE_SIZE)-1))&(~((PAGE_SIZE)-1)))
41-
#define PAGE_DOWN(addr) ((addr)&(~((PAGE_SIZE)-1)))
42-
43-
/* align addr on a size boundary - adjust address up/down if needed */
44-
#define _ALIGN_UP(addr, size) (((addr)+((size)-1))&(~((size)-1)))
45-
#define _ALIGN_DOWN(addr, size) ((addr)&(~((size)-1)))
46-
47-
/* align addr on a size boundary - adjust address up if needed */
48-
#define _ALIGN(addr, size) _ALIGN_UP(addr, size)
49-
5040
#define clear_page(pgaddr) memset((pgaddr), 0, PAGE_SIZE)
5141
#define copy_page(to, from) memcpy((to), (from), PAGE_SIZE)
5242

0 commit comments

Comments
 (0)