Skip to contentSkip to conversation

uapi:libc-compat.h: Correct the comment about the value of __UAPI_DEF_FOO

PATCH New Wang YanQing 1 participant 1 message Apr 18, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uapi:libc-compat.h: Correct the comment about the value of __UAPI_DEF_FOO

In reality, when the userspace libc header has been included first, we need to set the value of guard macros to 0, and set the value of guard macros to 1 when uapi header comes first.

---
 include/uapi/linux/libc-compat.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/uapi/linux/libc-compat.h +2 -2
index 8254c93..ba10eede 100644
@@ -25,8 +25,8 @@
  *     userspace libc header has been included first.
  *
  * (c) If the userspace libc header has been included first define a set of
- *     guard macros of the form __UAPI_DEF_FOO and set their values to 1, else
- *     set their values to 0.
+ *     guard macros of the form __UAPI_DEF_FOO and set their values to 0, else
+ *     set their values to 1.
  *
  * (d) Back in the UAPI header with the conflicting definitions, guard the
  *     definitions with:
Signature · 1 line
1.8.5.6.2.g3d8a54e.dirty