Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3230324pxx; Mon, 2 Nov 2020 03:40:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJzfBe4cIo6eK9HkjhZtDpeMPigmltwGbRy5upCKwwi8KBTjGQYHxMsg6nAJqPgswdd0oFmS X-Received: by 2002:aa7:c889:: with SMTP id p9mr1486177eds.110.1604317201944; Mon, 02 Nov 2020 03:40:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604317201; cv=none; d=google.com; s=arc-20160816; b=Rr0IuMzFI+6jn2bnOMwWKuov3loHbEeof7jUGkTRX7T1MB7MftVnznxrnwTN3UuqZ3 fCPT1pq+asDP9CHpSOa9YBa7xkAUR9gGPLhtGHFAhEOfjoGKVW+IwY7RY/AX1cQbdh9K 3ZEL3XboI4/xAM8SJ8tKvwJoFNRaPZgjFLQDjL971LVp5VDSM5s1W+qlY544HBYU9Wh9 IrIOIScPO4TLeRnvOQZQDKve5v+1Crt7Ir8PfAy4uMMhryJnIh7zNDaI7hXS+Twi181/ p0/Ufst9OKo6y0818MpXmmQn3S+aqsce08QS1CjUTU0ZCLw2l7bd4QeX2WlI1SeM9E+i 8Aig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=IfZ+avq+1clLl5A/ea/GqA/5QhZ7tTqTSa9X45sppZQ=; b=XU1xpoaSBln3NTXWBwEFBcW8Pol2qGz/JcO0G0oUiC5IxwYPLX2ZRyX6q1qBwdS4AZ 05OJjS6PlogshqJIVqNY78J1eT6dr+JUPw2TmkodfuwMt2d3K06pODFDrYl0nm2t0TrX YKGzujLtYK5zPHGvUTq4esATjtfz2Y/sSX7W0GF1GCIU9sLIaZbxobHrMVZqK0SjT1X9 C3Xt0pkx48cZUW/HeAaNm/KdCdv/73EvUXJJxw2nSdapox+rKODcZ7oIWTG/KR5DKsGC rIjbcIggf9Fn6F/hOaQ/pqEbP2O9m2MZTSG/MkT+k7RZ5LCCj64Y9SDVD+K0y8Th8y5l U0+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l11si2290393ejk.285.2020.11.02.03.39.39; Mon, 02 Nov 2020 03:40:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728613AbgKBLgw (ORCPT + 99 others); Mon, 2 Nov 2020 06:36:52 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:60488 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728537AbgKBLgv (ORCPT ); Mon, 2 Nov 2020 06:36:51 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 95CE01C0B7D; Mon, 2 Nov 2020 12:36:48 +0100 (CET) Date: Mon, 2 Nov 2020 12:36:48 +0100 From: Pavel Machek To: Guenter Roeck Cc: Salvatore Bonaccorso , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, shuah@kernel.org, patches@kernelci.org, lkft-triage@lists.linaro.org, pavel@denx.de, stable@vger.kernel.org Subject: Re: [PATCH 4.19 000/264] 4.19.153-rc1 review Message-ID: <20201102113648.GB9840@duo.ucw.cz> References: <20201027135430.632029009@linuxfoundation.org> <20201028171035.GD118534@roeck-us.net> <20201028195619.GC124982@roeck-us.net> <20201031094500.GA271135@eldamar.lan> <7608060e-f48b-1a7c-1a92-9c41d81d9a40@roeck-us.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="s2ZSL+KKDSLx8OML" Content-Disposition: inline In-Reply-To: <7608060e-f48b-1a7c-1a92-9c41d81d9a40@roeck-us.net> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --s2ZSL+KKDSLx8OML Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > >>> perf failures are as usual. powerpc: > >=20 > > Regarding the perf failures, do you plan to revert b801d568c7d8 ("perf > > cs-etm: Move definition of 'traceid_list' global variable from header > > file") included in 4.19.152 or is a bugfix underway? > >=20 >=20 > The problem is: >=20 > In file included from util/evlist.h:15:0, > from util/evsel.c:30: > util/evsel.c: In function =E2=80=98perf_evsel__exit=E2=80=99: > util/util.h:25:28: error: passing argument 1 of =E2=80=98free=E2=80=99 di= scards =E2=80=98const=E2=80=99 qualifier from pointer target type > /usr/include/stdlib.h:563:13: note: expected =E2=80=98void *=E2=80=99 but= argument is of type =E2=80=98const char *=E2=80=99 > extern void free (void *__ptr) __THROW; >=20 > This is seen with older versions of gcc (6.5.0 in my case). I have no ide= a why > newer versions of gcc/glibc accept this (afaics free() still expects a ch= ar *, > not a const char *). The underlying problem is that pmu_name should not be > declared const char *, but char *, since it is allocated. The upstream ve= rsion > of perf no longer uses the same definition of zfree(). It was changed from > #define zfree(ptr) ({ free(*ptr); *ptr =3D NULL; }) > to > #define zfree(ptr) __zfree((void **)(ptr)) > which does the necessary typecast. The fix would be to either change the = definition > of zfree to add the typecast, or to change the definition of pmu_name to = drop the const. > Both would only apply to v4.19.y. I don't know if either would be accepta= ble. As the problem is already fixed in the mainline, either solution should be acceptable for -stable. Probably the one adjusting the zfree() is more suitable, as that is the way it was solved in the mainline. Best regards, Pavel --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --s2ZSL+KKDSLx8OML Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCX5/vUAAKCRAw5/Bqldv6 8mfgAJ9bqTjoqjGvlZk42QcL0GkMgyXv5wCcD6REtgSe4R0YPakDwLMVM0xteAo= =eUJL -----END PGP SIGNATURE----- --s2ZSL+KKDSLx8OML--