mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
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:
parent
1acd89dfb9
commit
29dfe98601
1 changed files with 3 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue