From patchwork Sun Jan 29 17:25:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 18775 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7A4D5C61D97 for ; Sun, 29 Jan 2023 17:25:42 +0000 (UTC) Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) by mx.groups.io with SMTP id smtpd.web11.20591.1675013139864222506 for ; Sun, 29 Jan 2023 09:25:39 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lim3mteb; spf=pass (domain: gmail.com, ip: 209.85.215.182, mailfrom: raj.khem@gmail.com) Received: by mail-pg1-f182.google.com with SMTP id g68so6146298pgc.11 for ; Sun, 29 Jan 2023 09:25:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=daNWS86IPwGq2jCY/dfdXEky5FXq8NVLxrf4n1s4Oqg=; b=lim3mteb6ma8m0xo4u1VGWmMxuAydzvFRQzS1CxxzyRppbcQ/Hj72YR2lNGQDaf15k cvkmwVrPl3B64A5Upp3t0puagp2tUw+0u/EtG6G7oGnsO9/sQV2CLi0TU48NiJ3nPiD9 PmmTCtdIkocImeskWmr+ricZ/N6YB2tzrXM7rCkNHoCFTT8IxfWNONHSGlzcVZDSc0c0 aeRwqY94JynaeIeJhJyGyLm2nMVYk+1dAsdMJw8u2MA6rSmXt45mTtiRSTjrrfVoheOd zqrKNnzXtCz/LWTwuaGXjgqfvZp0GpNkmA/BjJrYwVHxXwbwF8oNupffz7C9t9kdAvQv j7FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=daNWS86IPwGq2jCY/dfdXEky5FXq8NVLxrf4n1s4Oqg=; b=HJ+J6dd/7xL85fFvbGj7S90EiyoXMZkYHYeotM+tYnktnS2r0d1g5wndvSDVNex4kx 8OLsinE6tMI9/Cd37IMmhHTV+SypV6BMzLl8KATWZjI/ciEdfXIyM03jXAOkgg86Oad4 9LQQZbN3cURh1ghOnXpUV2rHPFdPN4g7y5sZt2qZZY3Sv/mHw5E7+aRbWNauNIMlJeYM loCvSNjQglFdmS+1+tOtp5wcV2kE1AltZP3vYHlv/ndNh+WfEs3TX9eo7EV5htds50sy v8Z3xLppUdWP+/iePks2H5sI44Im+vYulxtHvcxSnGTV/oJHMy7QSsr48l0c4fz73DFH 1L/A== X-Gm-Message-State: AO0yUKUJ9VhtGFzBTVLLGcPHKn/WnT/3VABIKAc8Wme0fCnx2R8EAgUo hMM7qMvGk7jWgSAkGTSr65UGsUvRefXa6A== X-Google-Smtp-Source: AK7set+BgWv3pmXFFl5gVHEJFddXoB26B6DyPti27niri2K4m9lpa/AypvOuzXhf0xKv7HMXyIVPvw== X-Received: by 2002:a05:6a00:23ca:b0:593:baec:27cc with SMTP id g10-20020a056a0023ca00b00593baec27ccmr1840801pfc.3.1675013138839; Sun, 29 Jan 2023 09:25:38 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9181:1cf0::aee3]) by smtp.gmail.com with ESMTPSA id o3-20020a62cd03000000b0058a3d8eab6asm4972781pfg.134.2023.01.29.09.25.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Jan 2023 09:25:38 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 1/2] upm: Fix build with gcc13 Date: Sun, 29 Jan 2023 09:25:34 -0800 Message-Id: <20230129172535.1185410-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sun, 29 Jan 2023 17:25:42 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/100832 Signed-off-by: Khem Raj --- .../upm/0001-include-missing-cstdint.patch | 43 +++++++++++++++++++ meta-oe/recipes-extended/upm/upm_git.bb | 1 + 2 files changed, 44 insertions(+) create mode 100644 meta-oe/recipes-extended/upm/upm/0001-include-missing-cstdint.patch diff --git a/meta-oe/recipes-extended/upm/upm/0001-include-missing-cstdint.patch b/meta-oe/recipes-extended/upm/upm/0001-include-missing-cstdint.patch new file mode 100644 index 0000000000..59f81bf3a2 --- /dev/null +++ b/meta-oe/recipes-extended/upm/upm/0001-include-missing-cstdint.patch @@ -0,0 +1,43 @@ +From 64f75806c04c2ee819cf2f92cb564ad316354823 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sun, 29 Jan 2023 00:27:47 -0800 +Subject: [PATCH] include missing + +gcc 13 moved some includes around and as a result is no longer transitively included [1]. Explicitly include it for uint{32,64}_t. + +[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes + +Upstream-Status: Submitted [https://github.com/eclipse/upm/pull/704] +Signed-off-by: Khem Raj +--- + src/mcp9808/mcp9808.hpp | 1 + + src/micsv89/micsv89.hpp | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/src/mcp9808/mcp9808.hpp b/src/mcp9808/mcp9808.hpp +index b9e138d7..2509cd30 100644 +--- a/src/mcp9808/mcp9808.hpp ++++ b/src/mcp9808/mcp9808.hpp +@@ -13,6 +13,7 @@ + + #pragma once + ++#include + #include + #include + #include +diff --git a/src/micsv89/micsv89.hpp b/src/micsv89/micsv89.hpp +index 2f97dbce..c6e22ad8 100644 +--- a/src/micsv89/micsv89.hpp ++++ b/src/micsv89/micsv89.hpp +@@ -11,6 +11,7 @@ + + #pragma once + ++#include + #include + #include + +-- +2.39.1 + diff --git a/meta-oe/recipes-extended/upm/upm_git.bb b/meta-oe/recipes-extended/upm/upm_git.bb index 61e2e38b05..0ae7760bd2 100644 --- a/meta-oe/recipes-extended/upm/upm_git.bb +++ b/meta-oe/recipes-extended/upm/upm_git.bb @@ -16,6 +16,7 @@ SRC_URI = "git://github.com/eclipse/${BPN}.git;protocol=http;branch=master;proto file://0001-initialize-local-variables-before-use.patch \ file://0001-cmake-Disable-Wno-misleading-indentation-with-clang-.patch \ file://0001-cmake-Disable-using-Wno-maybe-uninitialized.patch \ + file://0001-include-missing-cstdint.patch \ " SRC_URI:append:toolchain-clang:x86 = " file://0001-nmea_gps-Link-with-latomic.patch " From patchwork Sun Jan 29 17:25:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 18776 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7AFB3C05027 for ; Sun, 29 Jan 2023 17:25:42 +0000 (UTC) Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) by mx.groups.io with SMTP id smtpd.web11.20592.1675013140398666969 for ; Sun, 29 Jan 2023 09:25:40 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UmilGm/3; spf=pass (domain: gmail.com, ip: 209.85.215.182, mailfrom: raj.khem@gmail.com) Received: by mail-pg1-f182.google.com with SMTP id q9so6154934pgq.5 for ; Sun, 29 Jan 2023 09:25:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=D+KMau2eIVPvAUZz87XmW5Td658HeOHA9GAVS75c+/A=; b=UmilGm/3rqzmnH/5uGzi2C8mSkismwKasyO8AUrqE64ixcZ1aRVYyZCBJD4/lDeRrz Ni1yymTt1+5cMokS3Uxf8/2Yc+FB3vFh6+/rYyd6TWp8GAnPVbXrnXqojIg6K8MGrdd/ IWOSLTOjKfGG7nlC5PI518cxGsbwV5JFHlXSwztb4+nFuAs9ityjdzU34FayDuyATNh8 a5pMIplVjntD2dr9pWVG4qaIu9owJhZvWQDqvFaFO4/vl/ECbftSNmdp5yAndJKi1Wio 2dGo9pUgEp0jBjv9B/xsp5Q3WWAcETmtVhazrSrvsyCp37lVfWYFj3J6dfqKd6zpbMIY 487g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=D+KMau2eIVPvAUZz87XmW5Td658HeOHA9GAVS75c+/A=; b=mTPlsHSJXL8dndojQoksVZwcDTSq8aLC5D7g14SIMUAZlDU+J0fZ7TrPT1N4NbVjGJ I0tqhbXEgBHVBqJeBaH9YLHv8VKinOd/DOqY5mM13q6DiSZn48di0uCwz5fo9ArOzeTH hI5Kf+PeWfxteoJKuRUF0THEPew22BzrFhnJCD4FpOi3tWb7OTOj39TiyZQ9ewiEG4we SUgxioljzPXsSUfn5ecxR+5buuf6Ky1h2FNTgsBuQIIxRyelyJXSnRIXIwJi1qjCxp+R NZcDCaQNLM+8U/nQYWjHUl9SZyckjf+sPwsDkdeLCD0si4+gM4zIOjVwWilKfLo2hv6s juhQ== X-Gm-Message-State: AO0yUKXpFwvhArz31t5VZ5RtLzaKuqnzDGsQUX5pKPHiZ6nlGvZSatFk jN1UaKQEXR9ARSjflLZEnB8Kj0ReJGJ6qw== X-Google-Smtp-Source: AK7set9hQ1OeJEHqCFCMfQgEuoSWA7TtuACIIaDW86iTQPaq0d9QNo3Trz1SaXBvaawlJKFiyGpfQg== X-Received: by 2002:aa7:9183:0:b0:592:5dd5:7655 with SMTP id x3-20020aa79183000000b005925dd57655mr9769205pfa.28.1675013139538; Sun, 29 Jan 2023 09:25:39 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9181:1cf0::aee3]) by smtp.gmail.com with ESMTPSA id o3-20020a62cd03000000b0058a3d8eab6asm4972781pfg.134.2023.01.29.09.25.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Jan 2023 09:25:39 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 2/2] openthread: Use __attribute__ ((unused)) instead of removing 't' Date: Sun, 29 Jan 2023 09:25:35 -0800 Message-Id: <20230129172535.1185410-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230129172535.1185410-1-raj.khem@gmail.com> References: <20230129172535.1185410-1-raj.khem@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sun, 29 Jan 2023 17:25:42 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/100833 This helps clang to not warn about this variable Signed-off-by: Khem Raj --- .../openthread/ot-br-posix/mbedtls.patch | 11 +---------- .../openthread/ot-daemon/mbedtls.patch | 11 +---------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/meta-networking/recipes-connectivity/openthread/ot-br-posix/mbedtls.patch b/meta-networking/recipes-connectivity/openthread/ot-br-posix/mbedtls.patch index 91b3046484..23e4368d27 100644 --- a/meta-networking/recipes-connectivity/openthread/ot-br-posix/mbedtls.patch +++ b/meta-networking/recipes-connectivity/openthread/ot-br-posix/mbedtls.patch @@ -17,19 +17,10 @@ Signed-off-by: Khem Raj void mpi_mul_hlp( size_t i, mbedtls_mpi_uint *s, mbedtls_mpi_uint *d, mbedtls_mpi_uint b ) { - mbedtls_mpi_uint c = 0, t = 0; -+ mbedtls_mpi_uint c = 0; ++ mbedtls_mpi_uint c = 0, t __attribute__ ((unused)) = 0; #if defined(MULADDC_HUIT) for( ; i >= 8; i -= 8 ) -@@ -1595,8 +1595,6 @@ void mpi_mul_hlp( size_t i, mbedtls_mpi_ - } - #endif /* MULADDC_HUIT */ - -- t++; -- - do { - *d += c; c = ( *d < c ); d++; - } --- a/third_party/openthread/repo/third_party/mbedtls/repo/CMakeLists.txt +++ b/third_party/openthread/repo/third_party/mbedtls/repo/CMakeLists.txt @@ -192,7 +192,7 @@ if(CMAKE_COMPILER_IS_GNU) diff --git a/meta-networking/recipes-connectivity/openthread/ot-daemon/mbedtls.patch b/meta-networking/recipes-connectivity/openthread/ot-daemon/mbedtls.patch index be26a20dad..ffaff48dd4 100644 --- a/meta-networking/recipes-connectivity/openthread/ot-daemon/mbedtls.patch +++ b/meta-networking/recipes-connectivity/openthread/ot-daemon/mbedtls.patch @@ -17,19 +17,10 @@ Signed-off-by: Khem Raj void mpi_mul_hlp( size_t i, mbedtls_mpi_uint *s, mbedtls_mpi_uint *d, mbedtls_mpi_uint b ) { - mbedtls_mpi_uint c = 0, t = 0; -+ mbedtls_mpi_uint c = 0; ++ mbedtls_mpi_uint c = 0, t __attribute__ ((unused)) = 0; #if defined(MULADDC_HUIT) for( ; i >= 8; i -= 8 ) -@@ -1595,8 +1595,6 @@ void mpi_mul_hlp( size_t i, mbedtls_mpi_ - } - #endif /* MULADDC_HUIT */ - -- t++; -- - do { - *d += c; c = ( *d < c ); d++; - } --- a/third_party/mbedtls/repo/CMakeLists.txt +++ b/third_party/mbedtls/repo/CMakeLists.txt @@ -192,7 +192,7 @@ if(CMAKE_COMPILER_IS_GNU)