From patchwork Mon Sep 9 06:33:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3419 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 532DE3F1CD for ; Mon, 9 Sep 2024 08:33:47 +0200 (CEST) Received: by mail-lf1-f71.google.com with SMTP id 2adb3069b0e04-53661a13121sf880925e87.0 for ; Sun, 08 Sep 2024 23:33:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1725863626; cv=pass; d=google.com; s=arc-20240605; b=k9YE1YchPxjG0aP43Dpmw1LPFWQBrx6Nu/SLGsnS8xSj18jCH7m/gO+E8zO7sZvO+6 3AU6XjrSW4pols/ey8+8T44ZrEaLF9u+NTh/8cJyeyb6LN1zmUdjdlOVHmmwrozlTyam pmuzli/sMwL65hXMpMrjHS8q4VAyXTNqNlZiDKaKBg6qNClPT9Q2/W2NCU6yW5n65ZFQ lBjfDRaVVdkHuUW2M6kqEO/fqX2QzPkYmj9G0KL6Gxgx6Ka78RygZKzt0h1+DpjUX4Uu PWoGK6Beitz+Bq+bSgsmToAvyMnrMW1qJ9PdOp9Cv4MOhrOOoEzAIbUAHX1sY9/b8rvn 9u2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=14E/DPPkNOqPPILUqQ8O92znZtlHuAGCs35y2/L3Mxk=; fh=GLuUgF32nkk7kW/YTKX/aGUo1pxFc7gPPEW0KkzUEkw=; b=UIojXs+PSSfE3d9n6pONmRyjviuRdFHpi5LV+mYxRVT/c1qkaodmmoah5tjsKetUts vPe9CqAbO8XD8WZVDM3XvnDxK03QZ9vcSlm+WouqiE3LTVPQd/0c5dDJEuHoY7c10hqB KCgKkbGnx5eT0dTJGl6/t+OtD+nMjF0MjzjhQqQarkHdxdqPnwS7FkNxuiZSp4zYF3vY PA5sgVqIfwD9I7ZwP5rvpLDVkxs/Of4Dkpk793ON7vuVQLhddRX1FpU3558fTJN8JsLw VIVZ8wsDvkaoXBI4fhjjPR1yVau1/zLzFJh6GIZWN3+2SbDnWaeRV0Oqu3HPScam8Ch/ sqVw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=HJLM+Rz6; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1725863626; x=1726468426; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=14E/DPPkNOqPPILUqQ8O92znZtlHuAGCs35y2/L3Mxk=; b=LEpq1NNV2JU5BG2K/LhZxn7Fr0flHXrViwiiHUs8Om2NmlOyHr3CTWbWG7cuTqoBvV chmJd2Zwbru+05W1hqpAgzu3F3YuR/0qQVJk1zgYBrDy93q1FbTBVf52ujtWw7Q3ouA2 SCbkMv/dNTa6IRr0/Hcw9lPOfZwMF+XnbtXBQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725863626; x=1726468426; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=14E/DPPkNOqPPILUqQ8O92znZtlHuAGCs35y2/L3Mxk=; b=oQtU3Vxmiz9VSLlJv0uM2VFEuKY0rs5NQR7dydt9aIwnLbDLX+O/nbNWQeibyuhu0L S41xcBmU+Efb0OaA7OU2a4oMpZF7QlEA0mvlW949p/Qatigc4IkV01AAnYR6neJE7VGA 0mmsL5e51No6IUgZ8y/7hTu9CAnAC2e6cznOdcFi9T2JAkR4td7YX3oUyySZH4/EiuZU lg17NXxkCW/uiykGLck+BnPzLrd37bUFUOuwE49cglDmf1ibwjGWP/3aBC6FNTma+AHn hYFC15MEWEPk6nHxnjLyQCMM3owrPlSam05kgr+N2UYrTUUsokGq8cAkFgUA8wNfaf0g YSxg== X-Forwarded-Encrypted: i=2; AJvYcCXuNde6Aagv25RNegbnoYrVvgNr4dZJBlWqnDFRzPtVBKBuE9X7Jty3waGx+Egpr8KiCge5CA6Y01J+KmFv@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YyB7M9om8yraCfCBq1c/9PchlS6p3oMlRu54hfcKoXNhN5MsMB2 yLlkQSOjkbQNsKXAImKfTbtZy2/NQcjIENyT8s/DHTobj+RTtwOt5iKbRvU1g46ATQ== X-Google-Smtp-Source: AGHT+IE9crb0T4e1KVV4+fMlDldCf4NOEBS1YoM4ZEYpk9tlFgG6aL94hGeiPZ+wgyiLOvODhB53Lg== X-Received: by 2002:a05:6512:1392:b0:533:809:a94d with SMTP id 2adb3069b0e04-536587ad9c5mr7129608e87.17.1725863626379; Sun, 08 Sep 2024 23:33:46 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6512:230b:b0:52e:9d2f:234 with SMTP id 2adb3069b0e04-536572fd7dbls55979e87.0.-pod-prod-06-eu; Sun, 08 Sep 2024 23:33:45 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVmv7oSkG9fcEfWXq5kuggHUUA8xjZDBed/Kzel9y5yA25B1tc2OsER50lnhHwaMhr+YgKxr34kL3mGatZR@amarulasolutions.com X-Received: by 2002:a05:6512:1392:b0:533:809:a94d with SMTP id 2adb3069b0e04-536587ad9c5mr7129549e87.17.1725863624541; Sun, 08 Sep 2024 23:33:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725863624; cv=none; d=google.com; s=arc-20160816; b=Vu+x3yjvgUuiGmnnTxz9+dGg8dgamu8R6Xhoh8aywcFYiHA1bn4Fzm6XxYOUoG4Pqe JgOFlwFJfdlC1TrOYN2AKoB/ZWRXPNzErXWYrvM95fXo0aU9pYouf4wK1Cd4cvYkwHiw YhDq1l35mOBGedeZDM7IPkXaN0aWFgaEumUuYQ+C9MJHfWydeOAQScviomFumBj0z2KP 9iANH9B0JLrBzwERIRxfSUTSA2WuSe8DlKs4pC+HNYsC/J9RXowNBcyZQy56qojuLlnS 91XVlPH3ZmNsYDN0r6nk5+7vhdUU/RPwIHR78rGadAfH+YPFa9ACK36JsBUjLMtvYI5D 5dvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=16tbjg0klZkURB8dQhYMyeJ9JNFoxXCMohgUjlV2bAY=; fh=z6sUw6WcJ70XByajoIvRbdLmYadd2z0o9nac93FmCL4=; b=Qcdi+0d7hyDwvLk8M3Y57lRYr+T4djiwB53jKzYAgMPBE9EszE6UaONlzgVUZgFYe8 wTMrgGl9FHZwIw9DvQgeWpQYSM1X0mytJqVmCaH0Gynfy+u5Y/tSBgXYoSpHIWqsfyea PePUwwv+q0JLXe6OoZzlkk4xER1P2uG6pCeyoer1rNTdDfiXuKHxnwRzg1tBdFYuaX6A 3byZIHVgJsQ2wkYGqQOTl4kamfNPyHaNhVku6G/ceYFFLDB8Jg+dAyaM/dl/EHwbMgqN uqxsT25J3CPhsB7DBburYDKkrw5frZZmIfpLPmDEs9EMBwrz47RK95cVrcVkOSf6+U6v Ekdg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=HJLM+Rz6; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 2adb3069b0e04-5365f873d85sor706022e87.14.2024.09.08.23.33.44 for (Google Transport Security); Sun, 08 Sep 2024 23:33:44 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AJvYcCUIgdf9P3UiiJ1hypZOUFywey8bQ23AnVzFtIJgYN/3dJaE3le75fQNPamdI+FgcMdzIjohxFAqw97CFzuc@amarulasolutions.com X-Received: by 2002:a05:6512:2313:b0:52e:9cc7:4461 with SMTP id 2adb3069b0e04-536587a67c1mr6841790e87.5.1725863623903; Sun, 08 Sep 2024 23:33:43 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-87-4-102-18.retail.telecomitalia.it. [87.4.102.18]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8d25ce974dsm296269566b.147.2024.09.08.23.33.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Sep 2024 23:33:43 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Romain Naour , linux-amarula@amarulasolutions.com, Dario Binacchi Subject: [PATCH 1/1] package/xenomai: fix build with gcc 11 Date: Mon, 9 Sep 2024 08:33:39 +0200 Message-ID: <20240909063340.533620-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=HJLM+Rz6; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The commit adds an upstream patch to fix the following build failure: latency.c: In function 'dump_histo_gnuplot': latency.c:415:9: error: 'fclose' called on pointer returned from a mismatched allocation function [-Werror=mismatched-dealloc] 415 | fclose(ifp); | ^~~~~~~~~~~ latency.c:404:15: note: returned from 'popen' 404 | ifp = popen(xconf, "r"); | ^~~~~~~~~~~~~~~~~ Fixes: - http://autobuild.buildroot.org/results/e15ccef2f2bd58482204b5061f77e76a8a540ebd Signed-off-by: Dario Binacchi --- ...y-Use-corresponding-pclose-for-popen.patch | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 package/xenomai/3.0.10/0005-testsuite-latency-Use-corresponding-pclose-for-popen.patch diff --git a/package/xenomai/3.0.10/0005-testsuite-latency-Use-corresponding-pclose-for-popen.patch b/package/xenomai/3.0.10/0005-testsuite-latency-Use-corresponding-pclose-for-popen.patch new file mode 100644 index 000000000000..a144c4ece35b --- /dev/null +++ b/package/xenomai/3.0.10/0005-testsuite-latency-Use-corresponding-pclose-for-popen.patch @@ -0,0 +1,30 @@ +From 6fe6b75bef4b4bb9723b12f0e9ebfd9877e00a44 Mon Sep 17 00:00:00 2001 +From: Jan Kiszka +Date: Sat, 16 Oct 2021 19:52:28 +0200 +Subject: [PATCH] testsuite/latency: Use corresponding pclose for popen + +Was found by latest gcc-11 and -Werror=mismatched-dealloc. + +Signed-off-by: Jan Kiszka +Signed-off-by: Dario Binacchi +Upstream: https://source.denx.de/Xenomai/xenomai/-/commit/6fe6b75bef4b4bb9723b12f0e9ebfd9877e00a44 +--- + testsuite/latency/latency.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/testsuite/latency/latency.c b/testsuite/latency/latency.c +index a0e6f4826084..6cd3a28b44f6 100644 +--- a/testsuite/latency/latency.c ++++ b/testsuite/latency/latency.c +@@ -412,7 +412,7 @@ static void dump_histo_gnuplot(int32_t *histogram, time_t duration) + fputs(buf, ofp); + } + +- fclose(ifp); ++ pclose(ifp); + + dump_data: + for (n = 0; n < histogram_size && histogram[n] == 0; n++) +-- +2.43.0 +