diff options
author | Russell King <rmk@arm.linux.org.uk> | 2013-06-23 11:56:13 +0100 |
---|---|---|
committer | Russell King <rmk@arm.linux.org.uk> | 2013-06-23 12:06:30 +0100 |
commit | ab1e6647aa7e4a2f2da5196e52ac86884ffde284 (patch) | |
tree | 4960b2d8b8cb119a767838fec3d8af0dfa05cad6 /bmm_lib.h | |
parent | 2f9be2b33130e780a72826598c5bb0a927bc867f (diff) |
Turn on compiler warnings and fix them
Fix the "warning: function declaration isn't a prototype" warnings
in the bmm_lib code, printf formats in the test code, and make test
functions static.
Diffstat (limited to 'bmm_lib.h')
-rw-r--r-- | bmm_lib.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -38,8 +38,8 @@ extern "C" { #endif -int bmm_init(); -void bmm_exit(); +int bmm_init(void); +void bmm_exit(void); void *bmm_malloc(unsigned long size, int attr); void *bmm_malloc_aligned(unsigned long size, int attr, unsigned align); void *bmm_malloc_aligned_phys(unsigned long size, int attr, unsigned align, @@ -53,13 +53,13 @@ int bmm_get_dmabuf_fd(void *vaddr); int bmm_get_mem_attr(void *vaddr); int bmm_set_mem_attr(void *vaddr, int attr); /* Not supported yet */ unsigned long bmm_get_mem_size(void *vaddr); -unsigned long bmm_get_total_space(); -unsigned long bmm_get_free_space(); -unsigned long bmm_get_allocated_space(); +unsigned long bmm_get_total_space(void); +unsigned long bmm_get_free_space(void); +unsigned long bmm_get_allocated_space(void); void bmm_flush_cache(void *vaddr, int dir); void bmm_flush_cache_range(void *start, size_t size, int direction); void bmm_flush_user(void *start, long size, int direction); -void bmm_dump(); /* for debugging */ +void bmm_dump(void); /* for debugging */ #if defined (__cplusplus) } |