mmi_annotate: Fix clang compile issues

Fix missing includes and warnings that show up when
building with the clang compiler.

Change-Id: I3eadc724df1598c4c2efe0ca1e18d6a6b7013367
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1401055
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Curtis Porter <porterc@motorola.com>
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Ryan Lattrel 2019-08-12 11:24:51 -05:00
commit 29dfe98601

View file

@ -26,6 +26,8 @@
#include <linux/dma-contiguous.h>
#include <linux/dma-mapping.h>
#include <linux/mmi_annotate.h>
#include <linux/seq_file.h>
#include <linux/fs.h>
#define MAX_USER_STR 1024
#define DEFAULT_MEM_SIZE 4096
@ -60,7 +62,7 @@ static int mmi_annotate_seq_show(struct seq_file *f, void *ptr)
{
mutex_lock(&mem_lock);
if (mem_data.contents && mem_data.cur_off > 0) {
seq_printf(f, mem_data.contents);
seq_printf(f, "%s", mem_data.contents);
} else {
seq_printf(f, "No annotated data.\n");
}