From patchwork Fri May 24 04:26:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 165081 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp3079542ili; Thu, 23 May 2019 21:27:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXkZcNMuIHBou3oWkKDZlibz1yR6y/WzBKtupFJXSq5VDhW8pBI+pRHcGSG9QUWTSAGY/9 X-Received: by 2002:a17:90a:b388:: with SMTP id e8mr6483047pjr.97.1558672032379; Thu, 23 May 2019 21:27:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558672032; cv=none; d=google.com; s=arc-20160816; b=WZFxP9F8PnhK3lDo4UVDfb/LbManJhtwQwVhVcNnTww7U4p51iwgZWIFGCFhqtUqzr utFpFhgFrD6i4wz6rT5df9dme6RffkPUD4LFEHEJY1yd31S2jpVrXPtWWFY9o2kxg2vS YU6wl19j2DmQgfs+O6FjN/G6kV+0lHNJnv1IgPMs7Y4zPh/CJMvxexXeX6Cd0bIX4JOq y08Sv08DZqapPwGA7b7l47MG+FexM5UH0U5gW5F8sfJnRLaPan2WrsMeub/k7LaAnxkh PaBkxPTJg2Ps8obTJZRCHY+c3XowAGDsRMRYUCSQLr1wv1rtWzkgu3x5wdE2SggKQwmD 3LOw== 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=SXCjyvuz8G/gUL240fLPPU/Xt1ljcgs7WXq3QNfPdv0=; b=FlPBUR2Jk+O2qDSDrhUbUFO4IMsCTPi6wBvtQjNejRTFs2WopEzi/4bDIwX0uRmkJq cwc0PsRRIM2F6cg7w6qA7zwT3Ugp9MBJM0CLH6A2cWm1wHLburRnG1jst4AfPjwZhoEM EDykJ1N8xj3kFRSaI+mcqUFE2PBOksbRYWDCDJe2NDUbNwsSGnBYwMCnrACs5sLyYCFO BeHlgBJUT1LMhZ+SvAEFSgppb9KPZpvQQIp/L4qY4FayS/XWFuLMNeo1Fx8r8qaW5kJJ 1+9RF4BCLMcG3RCSUYqetHpxdh3IQG2J5898BnlaDGmFM0J1llVX39QOsj2zR8vki8E6 ap7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=NwtyfY1u; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-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 f14si2474317plr.1.2019.05.23.21.27.11; Thu, 23 May 2019 21:27:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-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=NwtyfY1u; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-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 7BD227E46B; Fri, 24 May 2019 04:27:08 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by mail.openembedded.org (Postfix) with ESMTP id 62DF87E466 for ; Fri, 24 May 2019 04:27:07 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id w22so4296531pgi.6 for ; Thu, 23 May 2019 21:27:08 -0700 (PDT) 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=J9JEnrHBPoERwbGe2XwkfnhbWpvrRgtQICnVLFvCkXM=; b=NwtyfY1uJ7JJ6jCbYF1lQZVCzJjDbaKZ4qyQPiXefvpYrMPLBB/sTUyGtlIHguqvwV srj099Wjp6S87Tq/qpikTSTLqmOXEetacAe7cNLrBWt9ZQBf1tigjqeMBfTywMHrcXIS OPMccV0OjEbHJDBd7aMGy2t8RoXFJdpl1WnTPCqxu39mGKiniN0hEYE+yPj55Rp7tZkj iQee2qDYPuzZMCxZ33Rbv2AFlB4OJsRujxbYAm5vJP+77SWv4RNv4jkvUcWWHHSCxSME alppmozVyfI+5g02hvW0Nb+1022P7sHfqkqQpnNsl94ovHWC4IvRo6hHGruDv8G34I/Z E8kQ== 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=J9JEnrHBPoERwbGe2XwkfnhbWpvrRgtQICnVLFvCkXM=; b=VrARg0Efhw1irC858gGOG2uBPbmUDPzc/VqcQAIbGR45JItBtxcoOZaqdXxMBE55fe 5l7hzsyIizFAa15uBoGcN94+Of68dMBugtmTHBXNWhmJGSWdae/dU0ElfN9MRyGv7/D0 J0j+9nks9ZwQEUCb8NxHL8MrWYeNr8Uoi5XY7LetUXPY+Fc6QMdOGG1x+XfMnglpmypM 04ArRptS4X3GzdbdvLUHXFzTsotzM2PuUhste7TZGXwe+FLNw7rfUXpU08hEzzqTNbcG y3jD9SgLrYsYg0R62at8wsVVKjNIT1Hx8soIT0y+Vfs7cc9XrB13ZigLYvFGYXMsOu3d wY1A== X-Gm-Message-State: APjAAAWfHW5jHc2D6BsBf+TFzPoeQXXf7WGkf3pDlk8yew/hBbtNmo3R 3pMAlPWcOYn/2hyOdUwRCt73hjK8WhA= X-Received: by 2002:aa7:8c12:: with SMTP id c18mr111842037pfd.194.1558672027735; Thu, 23 May 2019 21:27:07 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::e252]) by smtp.gmail.com with ESMTPSA id g22sm1004097pfo.28.2019.05.23.21.27.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 May 2019 21:27:07 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Thu, 23 May 2019 21:26:59 -0700 Message-Id: <20190524042659.24616-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH] ofono: Add TEMP_FAILURE_RETRY optional definition X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Fixes build with musl where TEMP_FAILURE_RETRY is not provided Signed-off-by: Khem Raj --- ...tional-TEMP_FAILURE_RETRY-macro-copy.patch | 36 +++++++++++++++++++ meta/recipes-connectivity/ofono/ofono_1.29.bb | 1 + 2 files changed, 37 insertions(+) create mode 100644 meta/recipes-connectivity/ofono/ofono/0001-mbim-add-an-optional-TEMP_FAILURE_RETRY-macro-copy.patch -- 2.21.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-connectivity/ofono/ofono/0001-mbim-add-an-optional-TEMP_FAILURE_RETRY-macro-copy.patch b/meta/recipes-connectivity/ofono/ofono/0001-mbim-add-an-optional-TEMP_FAILURE_RETRY-macro-copy.patch new file mode 100644 index 0000000000..8a5a300adc --- /dev/null +++ b/meta/recipes-connectivity/ofono/ofono/0001-mbim-add-an-optional-TEMP_FAILURE_RETRY-macro-copy.patch @@ -0,0 +1,36 @@ +From 22b52db4842611ac31a356f023fc09595384e2ad Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 23 May 2019 18:11:22 -0700 +Subject: [PATCH] mbim: add an optional TEMP_FAILURE_RETRY macro copy + +Fixes build on musl which does not provide this macro + +Upstream-Status: Submitted [https://lists.ofono.org/pipermail/ofono/2019-May/019370.html] +Signed-off-by: Khem Raj +--- + drivers/mbimmodem/mbim-private.h | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/drivers/mbimmodem/mbim-private.h b/drivers/mbimmodem/mbim-private.h +index e159235..51693ea 100644 +--- a/drivers/mbimmodem/mbim-private.h ++++ b/drivers/mbimmodem/mbim-private.h +@@ -21,6 +21,15 @@ + + #define align_len(len, boundary) (((len)+(boundary)-1) & ~((boundary)-1)) + ++#ifndef TEMP_FAILURE_RETRY ++#define TEMP_FAILURE_RETRY(expression) ({ \ ++ __typeof(expression) __result; \ ++ do { \ ++ __result = (expression); \ ++ } while (__result == -1 && errno == EINTR); \ ++ __result; }) ++#endif ++ + enum mbim_control_message { + MBIM_OPEN_MSG = 0x1, + MBIM_CLOSE_MSG = 0x2, +-- +2.21.0 + diff --git a/meta/recipes-connectivity/ofono/ofono_1.29.bb b/meta/recipes-connectivity/ofono/ofono_1.29.bb index b5838e19bf..900a6d26d9 100644 --- a/meta/recipes-connectivity/ofono/ofono_1.29.bb +++ b/meta/recipes-connectivity/ofono/ofono_1.29.bb @@ -7,6 +7,7 @@ SRC_URI = "\ file://0001-build-Add-check-for-explicit_bzero-support.patch \ file://0001-main-Quiet-ld-errors-with-external-ell.patch \ file://0001-Makefile.am-Don-t-overwrite-src_ofonod_DEPENDENCIES.patch \ + file://0001-mbim-add-an-optional-TEMP_FAILURE_RETRY-macro-copy.patch \ " SRC_URI[md5sum] = "4fa0372630ff03f223452e4d05efa8f8" SRC_URI[sha256sum] = "67f0f8e5740dea5b46309e40667d1e560be39c90ef08dd01ff9e9ce8e61f0679"