mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
arm: mvebu: ddr: Fix compilation warning
gcc 5.1 generates this new warning (for Armada 38x platforms): drivers/ddr/marvell/a38x/ddr3_debug.c: In function 'hws_ddr3_tip_read_training_result': drivers/ddr/marvell/a38x/ddr3_debug.c:177:40: warning: 'sizeof' on array function parameter 'result' will return size of 'enum hws_result (*)[1]' [-Wsizeof-array-argument] memcpy(result, training_result, sizeof(result)); ^ drivers/ddr/marvell/a38x/ddr3_debug.c:171:31: note: declared here u32 dev_num, enum hws_result result[MAX_STAGE_LIMIT][MAX_INTERFACE_NUM]) ^ Since this functions is not referenced anywhere, lets just remove it. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Luka Perkov <luka.perkov@sartura.hr>
This commit is contained in:
parent
2fbc18fe21
commit
cdf1d240ba
2 changed files with 0 additions and 17 deletions
|
@ -164,21 +164,6 @@ int ddr3_tip_init_config_func(u32 dev_num,
|
||||||
return MV_OK;
|
return MV_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Read training result table
|
|
||||||
*/
|
|
||||||
int hws_ddr3_tip_read_training_result(
|
|
||||||
u32 dev_num, enum hws_result result[MAX_STAGE_LIMIT][MAX_INTERFACE_NUM])
|
|
||||||
{
|
|
||||||
dev_num = dev_num;
|
|
||||||
|
|
||||||
if (result == NULL)
|
|
||||||
return MV_BAD_PARAM;
|
|
||||||
memcpy(result, training_result, sizeof(result));
|
|
||||||
|
|
||||||
return MV_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get training result info pointer
|
* Get training result info pointer
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -171,8 +171,6 @@ int hws_ddr3_tip_load_topology_map(u32 dev_num,
|
||||||
struct hws_topology_map *topology);
|
struct hws_topology_map *topology);
|
||||||
int hws_ddr3_tip_run_alg(u32 dev_num, enum hws_algo_type algo_type);
|
int hws_ddr3_tip_run_alg(u32 dev_num, enum hws_algo_type algo_type);
|
||||||
int hws_ddr3_tip_mode_read(u32 dev_num, struct mode_info *mode_info);
|
int hws_ddr3_tip_mode_read(u32 dev_num, struct mode_info *mode_info);
|
||||||
int hws_ddr3_tip_read_training_result(u32 dev_num,
|
|
||||||
enum hws_result result[MAX_STAGE_LIMIT][MAX_INTERFACE_NUM]);
|
|
||||||
int ddr3_tip_is_pup_lock(u32 *pup_buf, enum hws_training_result read_mode);
|
int ddr3_tip_is_pup_lock(u32 *pup_buf, enum hws_training_result read_mode);
|
||||||
u8 ddr3_tip_get_buf_min(u8 *buf_ptr);
|
u8 ddr3_tip_get_buf_min(u8 *buf_ptr);
|
||||||
u8 ddr3_tip_get_buf_max(u8 *buf_ptr);
|
u8 ddr3_tip_get_buf_max(u8 *buf_ptr);
|
||||||
|
|
Loading…
Reference in a new issue