From 6078e0bef2236f323377c53e77e26288fb52ee23 Mon Sep 17 00:00:00 2001 From: Sudeep Dutt Date: Wed, 2 Oct 2013 16:09:00 -0700 Subject: misc: mic: Fix build issues in sample daemon. Specifying gcc format function attribute for mpsslog(..) and building on 32 bit systems exposed a few build issues in the sample MIC daemon which are fixed by this patch. Some of these changes were authored by Joe Perches @ https://lkml.org/lkml/2013/9/27/419 Reported-by: Joe Perches Signed-off-by: Ashutosh Dixit Signed-off-by: Caz Yokoyama Signed-off-by: Sudeep Dutt Signed-off-by: Greg Kroah-Hartman --- Documentation/mic/mpssd/mpssd.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Documentation/mic/mpssd/mpssd.h') diff --git a/Documentation/mic/mpssd/mpssd.h b/Documentation/mic/mpssd/mpssd.h index b6dee38ca5b1..ccd589ff9146 100644 --- a/Documentation/mic/mpssd/mpssd.h +++ b/Documentation/mic/mpssd/mpssd.h @@ -94,6 +94,7 @@ struct mic_info { struct mic_info *next; }; +__attribute__((format(printf, 1, 2))) void mpsslog(char *format, ...); char *readsysfs(char *dir, char *entry); int setsysfs(char *dir, char *entry, char *value); -- cgit v1.2.3-59-g8ed1b