summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLingutla Chandrasekhar <clingutla@codeaurora.org>2017-06-12 14:36:03 +0530
committerLingutla Chandrasekhar <clingutla@codeaurora.org>2017-06-12 16:24:10 +0530
commitf172706351e32ab2ae18d398d3342d98d91f159d (patch)
tree433789469573230690c4269b741a075d0aff67c5
parentc1a2472056c800ff46e0ac21a4b67c179a570ad0 (diff)
soc: qcom: update return value for minidump add region
If minidump is not enabled, minidump add region api returns error number, clients can log the error to log buffer, which flood the log buffer unnecessarily. So return quietly if minidump support is not enabled. Change-Id: I9c6428015ca40c5233f80471896bacecd0872bf7 Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
-rw-r--r--include/soc/qcom/minidump.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/soc/qcom/minidump.h b/include/soc/qcom/minidump.h
index 2db61a40e2cc..5eb18cb1a365 100644
--- a/include/soc/qcom/minidump.h
+++ b/include/soc/qcom/minidump.h
@@ -37,12 +37,13 @@ struct md_region {
*/
#ifdef CONFIG_QCOM_MINIDUMP
extern int msm_minidump_add_region(const struct md_region *entry);
+/* Sets to true, if minidump table is initialized */
extern bool minidump_enabled;
#else
static inline int msm_minidump_add_region(const struct md_region *entry)
{
- return -ENODEV;
+ /* Return quietly, if minidump is not supported */
+ return 0;
}
-static inline bool msm_minidump_enabled(void) { return false; }
#endif
#endif