Commit c02d3506 authored by Geoff Levand's avatar Geoff Levand Committed by Michael Ellerman

powerpc/ps3: Add empty repository highmem routines

To avoid the need for preprocessor conditionals in C source files add a set of
empty inline repository highmem write routines to platform.h that are used when
CONFIG_PS3_REPOSITORY_WRITE is not defined.
Signed-off-by: default avatarGeoff Levand <geoff@infradead.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 601fad35
...@@ -196,6 +196,7 @@ int ps3_repository_read_highmem_size(unsigned int region_index, ...@@ -196,6 +196,7 @@ int ps3_repository_read_highmem_size(unsigned int region_index,
int ps3_repository_read_highmem_info(unsigned int region_index, int ps3_repository_read_highmem_info(unsigned int region_index,
u64 *highmem_base, u64 *highmem_size); u64 *highmem_base, u64 *highmem_size);
#if defined (CONFIG_PS3_REPOSITORY_WRITE)
int ps3_repository_write_highmem_region_count(unsigned int region_count); int ps3_repository_write_highmem_region_count(unsigned int region_count);
int ps3_repository_write_highmem_base(unsigned int region_index, int ps3_repository_write_highmem_base(unsigned int region_index,
u64 highmem_base); u64 highmem_base);
...@@ -204,6 +205,18 @@ int ps3_repository_write_highmem_size(unsigned int region_index, ...@@ -204,6 +205,18 @@ int ps3_repository_write_highmem_size(unsigned int region_index,
int ps3_repository_write_highmem_info(unsigned int region_index, int ps3_repository_write_highmem_info(unsigned int region_index,
u64 highmem_base, u64 highmem_size); u64 highmem_base, u64 highmem_size);
int ps3_repository_delete_highmem_info(unsigned int region_index); int ps3_repository_delete_highmem_info(unsigned int region_index);
#else
static inline int ps3_repository_write_highmem_region_count(
unsigned int region_count) {return 0;}
static inline int ps3_repository_write_highmem_base(unsigned int region_index,
u64 highmem_base) {return 0;}
static inline int ps3_repository_write_highmem_size(unsigned int region_index,
u64 highmem_size) {return 0;}
static inline int ps3_repository_write_highmem_info(unsigned int region_index,
u64 highmem_base, u64 highmem_size) {return 0;}
static inline int ps3_repository_delete_highmem_info(unsigned int region_index)
{return 0;}
#endif
/* repository pme info */ /* repository pme info */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment