From patchwork Sun Sep 17 16:58:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hauke Mehrtens X-Patchwork-Id: 9954953 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7476260208 for ; Sun, 17 Sep 2017 16:59:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 60C9128A01 for ; Sun, 17 Sep 2017 16:59:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 55B9528A00; Sun, 17 Sep 2017 16:59:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5701128A04 for ; Sun, 17 Sep 2017 16:59:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751829AbdIQQ6w (ORCPT ); Sun, 17 Sep 2017 12:58:52 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:43406 "EHLO mx2.mailbox.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751806AbdIQQ6u (ORCPT ); Sun, 17 Sep 2017 12:58:50 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id B499A4A892; Sun, 17 Sep 2017 18:58:49 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10030) with ESMTP id 4eaN_4T32iKX; Sun, 17 Sep 2017 18:58:32 +0200 (CEST) From: Hauke Mehrtens To: johannes@sipsolutions.net Cc: backports@vger.kernel.org, Hauke Mehrtens Subject: [PATCH 3/4] header: add UUID_STRING_LEN Date: Sun, 17 Sep 2017 18:58:12 +0200 Message-Id: <20170917165813.17580-4-hauke@hauke-m.de> In-Reply-To: <20170917165813.17580-1-hauke@hauke-m.de> References: <20170917165813.17580-1-hauke@hauke-m.de> Sender: backports-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: backports@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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 #include_next +#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