From: Hauke Mehrtens <hauke@hauke-m.de>
To: johannes@sipsolutions.net
Cc: backports@vger.kernel.org, Hauke Mehrtens <hauke@hauke-m.de>
Subject: [PATCH 3/4] header: add UUID_STRING_LEN
Date: Sun, 17 Sep 2017 18:58:12 +0200 [thread overview]
Message-ID: <20170917165813.17580-4-hauke@hauke-m.de> (raw)
In-Reply-To: <20170917165813.17580-1-hauke@hauke-m.de>
This was added in commit 2b1b0d6670 ("lib/uuid.c: introduce a few more
generic helpers") and is used by ath10k.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
backport/backport-include/linux/uuid.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/backport/backport-include/linux/uuid.h b/backport/backport-include/linux/uuid.h
index 5ffe225b..bc6fbe17 100644
--- a/backport/backport-include/linux/uuid.h
+++ b/backport/backport-include/linux/uuid.h
@@ -3,6 +3,14 @@
#include <linux/version.h>
#include_next <linux/uuid.h>
+#ifndef UUID_STRING_LEN
+/*
+ * The length of a UUID string ("aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee")
+ * not including trailing NUL.
+ */
+#define UUID_STRING_LEN 36
+#endif
+
#if LINUX_VERSION_IS_LESS(4,13,0)
#define guid_t uuid_le
#define uuid_t uuid_be
--
2.11.0
--
To unsubscribe from this list: send the line "unsubscribe backports" in
next prev parent reply other threads:[~2017-09-17 16:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-17 16:58 [PATCH 0/4] backports: make compatible with kernel 4.14-rc Hauke Mehrtens
2017-09-17 16:58 ` [PATCH 1/4] patches: refresh patches on v4.14-rc1 Hauke Mehrtens
2017-09-17 16:58 ` [PATCH 2/4] header: add uuid backports Hauke Mehrtens
2017-09-17 16:58 ` Hauke Mehrtens [this message]
2017-09-17 16:58 ` [PATCH 4/4] header: add ether_addr_to_u64() and u64_to_ether_addr() Hauke Mehrtens
2017-09-21 13:23 ` [PATCH 0/4] backports: make compatible with kernel 4.14-rc Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170917165813.17580-4-hauke@hauke-m.de \
--to=hauke@hauke-m.de \
--cc=backports@vger.kernel.org \
--cc=johannes@sipsolutions.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.