MLK-14620 env_sata: Fix build warning
authorYe Li <ye.li@nxp.com>
Wed, 5 Apr 2017 06:20:13 +0000 (14:20 +0800)
committerYe Li <ye.li@nxp.com>
Wed, 5 Apr 2017 11:48:58 +0000 (19:48 +0800)
commit6bdecfc3fddb5998d91f49f991e66ae46ef4486b
tree5992c1e52b45cb3fbd727ce2b1f3bbe8bf811952
parent733a7fde6fea35d6f2ea18c7759a06904b655e54
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>
include/part.h