From patchwork Wed Nov 20 21:25:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 179883 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp2672154ilf; Wed, 20 Nov 2019 13:26:13 -0800 (PST) X-Google-Smtp-Source: APXvYqyHkpImLcnGEBOW+YwcUvojluirtlh1tkw23WVxbt/ks/GTLb4P6W1YbS9SS9ElqYd1m2zE X-Received: by 2002:a63:d609:: with SMTP id q9mr5619851pgg.110.1574285173492; Wed, 20 Nov 2019 13:26:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574285173; cv=none; d=google.com; s=arc-20160816; b=t83EUt+1cdwBX+xv33OTBgBDmzFUpy82DPt8ib58Z+M8ymAPdauO0SrWRRTUrdG91z /K8i0pSMJaw1EQh/n3vs9tY86K1x73/rtzXeFh/itT8fUsycCsRzhw7gXOjNkLGkemSC Ww0npOj3W5b7xlg66r71mS6P6VP+5G+INSjWq47Qk3shnzku8eH6ioKO2ybYd/1LZmmA F20X+rhoxU3P1cP15Q1tkwmPgKuDJKlMn9eLKlNu5xL8r+rIL88zNYsgNQDw/J7eifay j5tkgu6vXZYInk1pWmoyJzSoMuKeblOhnpuSFHLbhFvD3RXrxAHzYuZgpfz1i7XUmk+U InNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=hO7Aw5RBEn1HwmAJmFD0Yiauvak1FScYsJq8HvfE5wM=; b=ywwl+xkcfY1HQlTorphZzButPmn3yoiQp606f3aHEWcFnVBZr2+ESg60WqD07Fquhg zPGhR0yRICwE554406IWThF229kPFGOqbNC8SQkaW/HiOYz8+W0x4z2ihzE4hG+u6aHk H392PjxV7Vy8g1D9OTJ1JAXAD5q7napDrdh/FPur7itGuNZY9CrxugqsFITM4aHYCref ebjTYGigadgCnXUgGszSE2Qnq18E4SJRJSBMqzs3oZEJ3Hs4W+CLemDgHkKbibqB8ofN +ET9EU8k0ojncObRfX5PrxIzOpyHUjScS+6jeaRkjU+A+qJCvr1b/mFv51Gez5+SMlm4 L3eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=X9CMRsCi; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id i69si572452pje.98.2019.11.20.13.26.13; Wed, 20 Nov 2019 13:26:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=X9CMRsCi; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 500BE7F817; Wed, 20 Nov 2019 21:26:09 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) by mail.openembedded.org (Postfix) with ESMTP id F36DC7F7DD for ; Wed, 20 Nov 2019 21:26:07 +0000 (UTC) Received: by mail-pg1-f169.google.com with SMTP id 15so373450pgh.5 for ; Wed, 20 Nov 2019 13:26:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AWk50x/wDaFcqGPidrcbGMhg6OBx+Y9luU+GaZUJkaY=; b=X9CMRsCirouko8e39GaAphUWM9WQjWAXrsV3nrHiwqKOVW8NEwHQFArNOluH0oK7ZX KyXgfHMz0/6chv2F1kdEvYkUGIlahg+mp4DTY8aj3dbzvOx8bxAnc00XdDU1MQduGZum d/jBh1J06cF1K0+KF8THWI5u7XLYG6YI5OSuV/RU2kvcUE/Uz6tGCMCk9+nyXfRl4Wue RL2aunK2i0r5GBlvjMUXcAZTD2QXqEjNXmO5aWGMrT2eq2HGlPh+wMB0sfIRH52oxNqj DOFZA9qyKnTgVblkj5MOx90Vu+LLM2SjiyAc9ukfN84uB3zQut6vLAMWPpixSbuMK4tV vWxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AWk50x/wDaFcqGPidrcbGMhg6OBx+Y9luU+GaZUJkaY=; b=EuInomM4FCehNuQ5Vz2dCQ7cEsAmJElnsHcXjyfoyBFEUNpVBffz33JBmshwwN40rn GSz2fMvOCQZeAj7zZFqCbwXYslyzlxhCw52/cOFzlJsbklB2WLgxo93CrgQDDIBDZvCb 2KdDP9li5AyYNtG7Rh1bO8TK6fjx1Nrk8fwlAi3EZ1Ea5ytA/L3DX6l8hvSuYOYj9L9G +IwVI07m0SuwZAjNxUD8Id2b3TUo2X77iMqzS6zH6AllQtCVsPdjlsnRUnuik0UqtJHi 0Na5iPuK+/fxCNONfNCAPf2lmzSHQCrOvpH4Lwdpy8VOJy4JJ2fst7k7Yico5SPoLRDZ izdw== X-Gm-Message-State: APjAAAU5/N2i9UdfilgzUUZv78n0QjyKxApJBv9Oi4EmpBn99sFixTyV e6WoU/LuawoppV6iHpKiNZLxPUmDV/M= X-Received: by 2002:a65:6249:: with SMTP id q9mr5749955pgv.340.1574285168234; Wed, 20 Nov 2019 13:26:08 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:1c20::d61]) by smtp.gmail.com with ESMTPSA id w138sm340135pfc.68.2019.11.20.13.26.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2019 13:26:07 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Wed, 20 Nov 2019 13:25:56 -0800 Message-Id: <20191120212556.1443911-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH] libkcapi: Update patch to upstream submitted one X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- .../0001-kcapi-kdf-Move-code-to-fix.patch | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) -- 2.24.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-crypto/libkcapi/libkcapi/0001-kcapi-kdf-Move-code-to-fix.patch b/meta-oe/recipes-crypto/libkcapi/libkcapi/0001-kcapi-kdf-Move-code-to-fix.patch index 3dd7ea7f9b..7ed9caf096 100644 --- a/meta-oe/recipes-crypto/libkcapi/libkcapi/0001-kcapi-kdf-Move-code-to-fix.patch +++ b/meta-oe/recipes-crypto/libkcapi/libkcapi/0001-kcapi-kdf-Move-code-to-fix.patch @@ -1,4 +1,4 @@ -From 00c1654e368f728b213c4e3782045d54098edb25 Mon Sep 17 00:00:00 2001 +From 8f961521add49278b48c9721fc53e05ee3543b74 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 16 Nov 2019 23:03:51 -0800 Subject: [PATCH] kcapi-kdf: Move code to fix @@ -6,13 +6,14 @@ Subject: [PATCH] kcapi-kdf: Move code to fix Fixes clang build unused function '_bswap32' [-Werror,-Wunused-function] +Upstream-Status: Submitted [https://github.com/smuellerDD/libkcapi/pull/83] Signed-off-by: Khem Raj --- - lib/kcapi-kdf.c | 36 ++++++++++++++++-------------------- - 1 file changed, 16 insertions(+), 20 deletions(-) + lib/kcapi-kdf.c | 37 +++++++++++++++++-------------------- + 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/lib/kcapi-kdf.c b/lib/kcapi-kdf.c -index ea39846..8e4a636 100644 +index ea39846..9e53a0b 100644 --- a/lib/kcapi-kdf.c +++ b/lib/kcapi-kdf.c @@ -54,6 +54,20 @@ @@ -26,17 +27,17 @@ index ea39846..8e4a636 100644 +# define __HAVE_BUILTIN_BSWAP32__ +#endif + -+#ifdef __HAVE_BUILTIN_BSWAP32__ -+# define be_bswap32(x) (uint32_t)__builtin_bswap32((uint32_t)(x)) +/* Endian dependent byte swap operations. */ -+#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ ++#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ +# define be_bswap32(x) ((uint32_t)(x)) +#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ -+ ++# ifdef __HAVE_BUILTIN_BSWAP32__ ++# define be_bswap32(x) (uint32_t)__builtin_bswap32((uint32_t)(x)) ++# else static inline uint32_t rol32(uint32_t x, int n) { return ( (x << (n&(32-1))) | (x >> ((32-n)&(32-1))) ); -@@ -68,27 +82,9 @@ static inline uint32_t _bswap32(uint32_t x) +@@ -68,27 +82,10 @@ static inline uint32_t _bswap32(uint32_t x) { return ((rol32(x, 8) & 0x00ff00ffL) | (ror32(x, 8) & 0xff00ff00L)); } @@ -59,10 +60,11 @@ index ea39846..8e4a636 100644 -# define be_bswap32(x) ((uint32_t)(x)) -#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ -# define be_bswap32(x) _swap32(x) -+# define be_bswap32(x) _bswap32(x) ++# define be_bswap32(x) _bswap32(x) ++# endif #else -#error "Endianess not defined" -+# error "Neither builtin_bswap32 nor endianess defined" ++# error "endianess not defined" #endif DSO_PUBLIC