aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/mic/mpssd/mpssd.h
diff options
context:
space:
mode:
authorSudeep Dutt <sudeep.dutt@intel.com>2013-10-02 16:09:00 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-03 16:02:35 -0700
commit6078e0bef2236f323377c53e77e26288fb52ee23 (patch)
tree2722bcd8afaede82bae2862de3e30025c879fa72 /Documentation/mic/mpssd/mpssd.h
parentaf68fb65557dee58918822a470cd64fd76ed837e (diff)
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 <joe@perches.com> Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Signed-off-by: Caz Yokoyama <Caz.Yokoyama@intel.com> Signed-off-by: Sudeep Dutt <sudeep.dutt@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/mic/mpssd/mpssd.h')
-rw-r--r--Documentation/mic/mpssd/mpssd.h1
1 files changed, 1 insertions, 0 deletions
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);

Privacy Policy