diff options
author | Ye Li <ye.li@nxp.com> | 2017-04-05 14:20:13 +0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2017-04-05 19:48:58 +0800 |
commit | 6bdecfc3fddb5998d91f49f991e66ae46ef4486b (patch) | |
tree | 5992c1e52b45cb3fbd727ce2b1f3bbe8bf811952 /include | |
parent | 733a7fde6fea35d6f2ea18c7759a06904b655e54 (diff) | |
download | u-boot-imx-6bdecfc3fddb5998d91f49f991e66ae46ef4486b.zip u-boot-imx-6bdecfc3fddb5998d91f49f991e66ae46ef4486b.tar.gz u-boot-imx-6bdecfc3fddb5998d91f49f991e66ae46ef4486b.tar.bz2 |
MLK-14620 env_sata: Fix build warning
Fix below build warning by declaring sata_get_dev the in the part.h
common/env_sata.c: In function 'saveenv':
common/env_sata.c:70:9: warning: implicit declaration of function 'sata_get_dev' [-Wimplicit-function-declaration]
sata = sata_get_dev(env_sata);
^
common/env_sata.c:70:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
sata = sata_get_dev(env_sata);
^
common/env_sata.c: In function 'env_relocate_spec':
common/env_sata.c:116:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
sata = sata_get_dev(env_sata);
Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/part.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/part.h b/include/part.h index b6d1b33..8d5f06c 100644 --- a/include/part.h +++ b/include/part.h @@ -82,6 +82,7 @@ typedef struct disk_partition { struct blk_desc *blk_get_dev(const char *ifname, int dev); struct blk_desc *mg_disk_get_dev(int dev); +struct blk_desc *sata_get_dev(int dev); int host_get_dev_err(int dev, struct blk_desc **blk_devp); /* disk/part.c */ @@ -187,6 +188,7 @@ extern const struct block_drvr block_drvr[]; static inline struct blk_desc *blk_get_dev(const char *ifname, int dev) { return NULL; } static inline struct blk_desc *mg_disk_get_dev(int dev) { return NULL; } +static inline struct blk_desc *sata_get_dev(int dev) { return NULL; } static inline int part_get_info(struct blk_desc *dev_desc, int part, disk_partition_t *info) { return -1; } |