summarylogtreecommitdiffstats
path: root/stdarg-kernel-path-fix.patch
blob: 95e9814a9fae6428e0f46cbfb6cc6058b185ad9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
From b676f8efe97a62f3c0ac677d0a2b8968b7d5331b Mon Sep 17 00:00:00 2001
From: egnappahz <egnappah@gmail.com>
Date: Thu, 27 Jan 2022 09:50:59 +0100
Subject: [PATCH] stdarg kernel path fix

---
 uds/memoryAlloc.h    | 2 +-
 uds/stringUtils.h    | 4 ++--
 vdo/vdoStringUtils.h | 2 +-
 vdo/vio.h            | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/uds/memoryAlloc.h b/uds/memoryAlloc.h
index b144a708..f69e8931 100644
--- a/uds/memoryAlloc.h
+++ b/uds/memoryAlloc.h
@@ -22,7 +22,7 @@
 #ifndef MEMORY_ALLOC_H
 #define MEMORY_ALLOC_H 1
 
-#include <stdarg.h>
+#include <linux/stdarg.h>
 
 #include "compiler.h"
 #include "cpu.h"
diff --git a/uds/stringUtils.h b/uds/stringUtils.h
index 305e28eb..51c129b3 100644
--- a/uds/stringUtils.h
+++ b/uds/stringUtils.h
@@ -22,7 +22,7 @@
 #ifndef STRING_UTILS_H
 #define STRING_UTILS_H
 
-#include <stdarg.h>
+#include <linux/stdarg.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
 
@@ -88,7 +88,7 @@ int __must_check uds_fixed_sprintf(const char *what,
  * @param [in]  error    The error code to return for exceeding the specified
  *                       space, UDS_SUCCESS if no logging required.
  * @param [in]  fmt      The sprintf format specification.
- * @param [in]  ap       The variable argument pointer (see <stdarg.h>).
+ * @param [in]  ap       The variable argument pointer (see <linux/stdarg.h>).
  * @param [out] needed   If non-NULL, the actual amount of string space
  *                       required, which may be smaller or larger than
  *                       buf_size.
diff --git a/vdo/vdoStringUtils.h b/vdo/vdoStringUtils.h
index cbae05e0..39160551 100644
--- a/vdo/vdoStringUtils.h
+++ b/vdo/vdoStringUtils.h
@@ -22,7 +22,7 @@
 #ifndef VDO_STRING_UTILS_H
 #define VDO_STRING_UTILS_H
 
-#include <stdarg.h>
+#include <linux/stdarg.h>
 #include <linux/types.h>
 
 /**
diff --git a/vdo/vio.h b/vdo/vio.h
index b5ea4284..9d5a3110 100644
--- a/vdo/vio.h
+++ b/vdo/vio.h
@@ -22,7 +22,7 @@
 #ifndef VIO_H
 #define VIO_H
 
-#include <stdarg.h>
+#include <linux/stdarg.h>
 
 #include "kernelLayer.h"
 
-- 
2.35.0