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

Commit 6c9a74ee authored by Armaan Siddiqui's avatar Armaan Siddiqui Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa: Fix compilation errors when DEBUG_FS is disabled



Fix compilation error when CONFIG_DEBUG_FS is disabled in
perf_defconfig.

Change-Id: Ic79f26ebb8fd985c3cdb70703680a522d015897d
Signed-off-by: default avatarArmaan Siddiqui <asiddiqu@codeaurora.org>
[rshaha@codeaurora.org: resolve trivial merge conflicts]
Signed-off-by: default avatarRahul Shahare <rshaha@codeaurora.org>
parent 81e1f886
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2924,7 +2924,16 @@ struct dentry *ipa_debugfs_get_root(void)
EXPORT_SYMBOL(ipa_debugfs_get_root);

#else /* !CONFIG_DEBUG_FS */
#define INVALID_NO_OF_CHAR (-1)
void ipa3_debugfs_pre_init(void) {}
void ipa3_debugfs_post_init(void) {}
void ipa3_debugfs_remove(void) {}
int _ipa_read_ep_reg_v3_0(char *buf, int max_len, int pipe)
{
	return INVALID_NO_OF_CHAR;
}
int _ipa_read_ep_reg_v4_0(char *buf, int max_len, int pipe)
{
	return INVALID_NO_OF_CHAR;
}
#endif
+3 −1
Original line number Diff line number Diff line
/* Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -931,7 +931,9 @@ static int ipa_ut_framework_init(void)

	ipa_assert_on(!ipa_ut_ctx);

#ifdef CONFIG_DEBUG_FS
	ipa_ut_ctx->ipa_dbgfs_root = ipa_debugfs_get_root();
#endif
	if (!ipa_ut_ctx->ipa_dbgfs_root) {
		IPA_UT_ERR("No IPA debugfs root entry\n");
		return -EFAULT;