Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e28f2aed authored by Neeraj Soni's avatar Neeraj Soni
Browse files

crypto:msm: fix compilation issue for crypto APIs



New APIs introduced as part of new FDE design can
not be referenced if driver config flag is not defined.
Provide a dummy reference to handle this case.

Change-Id: I7cfacd34ffca8cb156e3b12b6f29586950bf1ad8
Signed-off-by: default avatarNeeraj Soni <neersoni@codeaurora.org>
parent b30ac1ff
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -53,16 +53,22 @@ typedef void (*ice_error_cb)(void *, u32 error);

struct qcom_ice_variant_ops *qcom_ice_get_variant_ops(struct device_node *node);
struct platform_device *qcom_ice_get_pdevice(struct device_node *node);
void qcom_ice_set_fde_flag(int flag);
int qcom_ice_set_fde_conf(sector_t strt, sector_t size, int idx, int mode);

#ifdef CONFIG_CRYPTO_DEV_QCOM_ICE
int qcom_ice_setup_ice_hw(const char *storage_type, int enable);
void qcom_ice_set_fde_flag(int flag);
int qcom_ice_set_fde_conf(sector_t strt, sector_t size, int idx, int mode);
#else
static inline int qcom_ice_setup_ice_hw(const char *storage_type, int enable)
{
	return 0;
}
static inline void qcom_ice_set_fde_flag(int flag) {}
static inline int qcom_ice_set_fde_conf(sector_t strt, sector_t size, int idx,
					int mode)
{
	return 0;
}
#endif

struct qcom_ice_variant_ops {