From patchwork Mon Aug 27 06:51:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 145158 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3852208ljw; Sun, 26 Aug 2018 23:51:42 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ38fRbcB06u/JnnhtCbAc+GcPUsQ72iROu32VOwPUaClLNZVgLi86ndSi7gtBPU14ZToJs X-Received: by 2002:a63:ca09:: with SMTP id n9-v6mr11014523pgi.287.1535352702734; Sun, 26 Aug 2018 23:51:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535352702; cv=none; d=google.com; s=arc-20160816; b=Qs6UUXeraL7RPt2Va9dOPJg2/6QiTKxhJYtf8j1WH0DMTicenI1isPOTe1CMkdf2HX llGJEvg4/1sOxx+anS4zKI3TCy4IBLoeCd41T32nIiDweJftsE9R8jymykxPen2MnBVu MBWP7KLpjKMi/hR0rYcUcMeKMvvz0CaT+OH1g085EhjRnGrPhgvQJKi5IUYSLguhbElz wL4BblqzxqNBA/C4HX04e1GUOUKtfFe3qigW1ielXQAjBIpgufmeaSdIS6+C6/AA0rRm +9WwsXpGRP44TCt+h6ffsymC5L436Fvn4ADU6jAJYE8YRnWpoizwUGptfCENKcDDD/KG gOLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=IlqkonChbn4xcwT0gruAVGh3NhoW4n05Lpgnrzf5ZQE=; b=PC2QTilCf9MCMvSb33nqYzDzbwNjs57YerlWH1AQ+Zg6uRXBIlsm5Ri9zaIpmyQhIC BzFIj/Yt+orE5Ai346FrgZuShAPEW/oWVTIM61piktcVa7LiDz2tsXzzWUV0ceHXhfsf 7IzRv8L+DdEInd5vF+BssX9O1lfXzd6rEh23XyGI+3nzgl3JKcI0vbtszGPWUmcI8Z7c KQx+wMxXW9E+HBbU6/g3nw04vC/pTnsFe+By0GLnYfTFBOaXE9AfwfrK5tZx6kdtVln1 DU7wwY1zZ/hualGej3+FYcHkDhXgZPic4NJz7PTw1/a1DPATplkszW07D+3zvrSbl9xy FCww== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=AqniLMe2; 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 q17-v6si13238349pfi.183.2018.08.26.23.51.42; Sun, 26 Aug 2018 23:51:42 -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=AqniLMe2; 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 layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 9713A79366; Mon, 27 Aug 2018 06:51:39 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) by mail.openembedded.org (Postfix) with ESMTP id 5393779327 for ; Mon, 27 Aug 2018 06:51:36 +0000 (UTC) Received: by mail-pg1-f174.google.com with SMTP id d1-v6so556493pgo.3 for ; Sun, 26 Aug 2018 23:51:37 -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:in-reply-to:references; bh=nf3gr6ljfZody/Wxq/kBsDLdgTH3A9hJhxN4S3RvWSk=; b=AqniLMe2YoJzT2tqh3mNZ8mLUP/blAR0uKaGSE5i9SuRM8Iw2x5nT+DD97a7B0slmp WJFnZeCe56aWb4t24rK5uBlMJRuCWAsKt4d2cTDiT0CwX2u3/x0dujV3tgLGVikXhfoI 0bfHGxncgaY3XzxPdzYtT2ql299idH3zSeBqbNbLolA4SoHedGfNzvrEf5PbK9gPMsDC qX+U+p68Kh7GrLO0UIZWvBx6YZnsh9ihmUxgLkJcr1w0wUc13w2p5MCcfeU6/08XWsaP +//xmAHkIqkiKKEYH+XiIhUv7TmU21VqjG6xNjysv/xjhgWw2krIDKQ4TvX/Ayqenh/C 0ZmA== 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:in-reply-to :references; bh=nf3gr6ljfZody/Wxq/kBsDLdgTH3A9hJhxN4S3RvWSk=; b=tFiH1CSR/aWr0lq1xXEzOTzM023vlZTW09J3TMtjE8JfE79efsqZLXH8shiyWtYvzX Vtcyd8VSqHoKbQZwCnzm+J6+j2iiCEmdMWVKnDwhbjykBuI26rVWeEe5fCHLRkaSvJ6P 7V3qhURk8fE3ua/sape+NpqFkv40T7pBPxzZ9IKJk3pQbBfo+5NHiwPHwGk2ncm0o+Sb EeOI6buxbCSG4773updZ1LGmC3DPPBJYXD0lsEySzm1CxfhLZrQ0tXZyDWH4NJbDsYuS 3UaTGcylHCBf49Fv0edj1WKc/UPFmiLGc93lUodxph9nkijbUhk+TId6wyWy4MDq5qLX g17Q== X-Gm-Message-State: APzg51BU/Q1ZgukuuS9HlBZ9u5VVGkxAqiYwDouA8nqNLMJDSVt7Pn3h x2RloqQxtDFxZeF61Hv2MgE4afCa X-Received: by 2002:a63:6745:: with SMTP id b66-v6mr11439874pgc.248.1535352697118; Sun, 26 Aug 2018 23:51:37 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::4add]) by smtp.gmail.com with ESMTPSA id l84-v6sm27437315pfg.3.2018.08.26.23.51.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Aug 2018 23:51:36 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Sun, 26 Aug 2018 23:51:26 -0700 Message-Id: <664a2dd53854bcc55536d1d82518e51f48bb19e5.1535352523.git.raj.khem@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: Subject: [OE-core] [PATCH 2/3] systemd: Fix qsort_r patch for function return mismatch 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org clang is fussy and complains that a valueless return is used from a function which should return a value Signed-off-by: Khem Raj --- .../0002-don-t-use-glibc-specific-qsort_r.patch | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) -- 2.18.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-core/systemd/systemd/0002-don-t-use-glibc-specific-qsort_r.patch b/meta/recipes-core/systemd/systemd/0002-don-t-use-glibc-specific-qsort_r.patch index f07211bd8a..8e0d669e83 100644 --- a/meta/recipes-core/systemd/systemd/0002-don-t-use-glibc-specific-qsort_r.patch +++ b/meta/recipes-core/systemd/systemd/0002-don-t-use-glibc-specific-qsort_r.patch @@ -1,7 +1,7 @@ -From d43faf6d253db789225b7c454c8f255fbc68857e Mon Sep 17 00:00:00 2001 +From d74a4de6daea5a511c2b5636bbb552c15b3a4ad9 Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Thu, 18 Sep 2014 15:24:56 +0200 -Subject: [PATCH 02/19] don't use glibc-specific qsort_r +Subject: [PATCH] don't use glibc-specific qsort_r Upstream-Status: Inappropriate [musl specific] @@ -14,7 +14,7 @@ Signed-off-by: Khem Raj 4 files changed, 37 insertions(+), 31 deletions(-) diff --git a/src/basic/format-table.c b/src/basic/format-table.c -index 94e796d1c..f7b4eade9 100644 +index 94e796d1ca..9b3f35c29a 100644 --- a/src/basic/format-table.c +++ b/src/basic/format-table.c @@ -745,29 +745,29 @@ static int cell_data_compare(TableData *a, size_t index_a, TableData *b, size_t @@ -63,7 +63,7 @@ index 94e796d1c..f7b4eade9 100644 - qsort_r_safe(sorted, n_rows, sizeof(size_t), table_data_compare, t); + if (n_rows <= 1) -+ return; ++ return 0; + assert(sorted); + user_table = t; + qsort(sorted, n_rows, sizeof(size_t), table_data_compare); @@ -72,7 +72,7 @@ index 94e796d1c..f7b4eade9 100644 if (t->display_map) diff --git a/src/basic/util.h b/src/basic/util.h -index 9699d228f..40eaf518c 100644 +index 9699d228f9..40eaf518cb 100644 --- a/src/basic/util.h +++ b/src/basic/util.h @@ -105,13 +105,6 @@ static inline void qsort_safe(void *base, size_t nmemb, size_t size, comparison_ @@ -90,7 +90,7 @@ index 9699d228f..40eaf518c 100644 /** * Normal memcpy requires src to be nonnull. We do nothing if n is 0. diff --git a/src/hwdb/hwdb.c b/src/hwdb/hwdb.c -index 317cad8a6..701d59a1e 100644 +index 317cad8a67..701d59a1eb 100644 --- a/src/hwdb/hwdb.c +++ b/src/hwdb/hwdb.c @@ -135,13 +135,12 @@ static void trie_free(struct trie *trie) { @@ -135,7 +135,7 @@ index 317cad8a6..701d59a1e 100644 } diff --git a/src/udev/udevadm-hwdb.c b/src/udev/udevadm-hwdb.c -index 02408a428..491d367d1 100644 +index 02408a4285..491d367d12 100644 --- a/src/udev/udevadm-hwdb.c +++ b/src/udev/udevadm-hwdb.c @@ -114,13 +114,13 @@ static void trie_node_cleanup(struct trie_node *node) { @@ -179,5 +179,5 @@ index 02408a428..491d367d1 100644 } -- -2.11.0 +2.18.0