Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3236043pxx; Mon, 2 Nov 2020 03:51:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJyyEDJGm8jrx/+AVFpQhpC78BM4PjxWtKrW43Ki6+cXNHYlEyuH5zz0+sU1ErRkqOh2e+sO X-Received: by 2002:a50:9e69:: with SMTP id z96mr11383819ede.226.1604317888842; Mon, 02 Nov 2020 03:51:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604317888; cv=none; d=google.com; s=arc-20160816; b=wpER67C/R2DAYZCX+7SA2urQnvOwYQQbY4wyR9PPAbNZQ4vKVhPmvxGBiZgQoQI/wX H2N50wXyzjmfX6xTcOqS1vp/m8iNyPiwkDe66JHt8urCjhLiZ4JkcHsxsKfXLXpwTcH7 o06O35uGnDZ2IbavIQVwGyn4BJlVQXNu8hjI6TfV75WnxQ8mBsv39BhTkQoBJ8I+Mm8W iI18n5xTsXfRn8decjcBsyGw/YCfkryt0fyeSca9EMlhaJSFW6XXbm8UV7LSZaHpM7aQ 4nwnAyuJjjiI0CTNK/5G71XhANarJyE6hSU61jpa4lyTpgD3g9upemSl4Wg6u1+BBs66 jO9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Uor27yUF5et1mX429hkGnVQJIqFB0JQ9Qv/E7lPLcCM=; b=ZH/mNjiND4+JeXBsfLS3mBQyVfIZyHSC6lM2N1RuzRWFIRXSa2QrlbHbekNJW8KCrx NLiIUDr1YRKHwkQsDnCAvfCLgX8kW4wJnQtc719v1DzxLbPeiOr5uyiPchDrtTbzu5aV qUKpoDphta8/8RZDVxoXmzsee9EKbDNoSteJYVvtwXWhJgB4UeEeSKLmmIu9ShPOVvk0 Ls/O4Ls9oxJ5O3KZhrLpn7g6/5meRIb5Izycf6GgubxtsbzkT2bYR7i6z5eo6zdBphUU j6c8be/3JwHAk6cSP1S80i861dEGxRsbr5vTGnzOsjAHu9/buu8vTWIo7DWREY7RQKhq PM2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=R5c5fWp8; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs17si10396176ejb.543.2020.11.02.03.51.06; Mon, 02 Nov 2020 03:51:28 -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; dkim=pass header.i=@kernel.org header.s=default header.b=R5c5fWp8; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728682AbgKBLs6 (ORCPT + 99 others); Mon, 2 Nov 2020 06:48:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:41302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728610AbgKBLs5 (ORCPT ); Mon, 2 Nov 2020 06:48:57 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 385D821D91; Mon, 2 Nov 2020 11:48:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604317736; bh=+iwZp4hz8Ac+ih2R+PIMnjM3wfsZ6NHD+wtMijUtFSo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R5c5fWp8keTvEfGO5J6e9XUE0aaIT+pfFquuQdLSWzdeLc3rsCYkUYVSFuUw/egEx CJddh4EPYpUjJWmUynG0GdV8KVOcBhUvLQuVB553AZjJNTNA8QD5dlxEu0ULnXsx/R 46bPSVVs9r0wymE9C+cTVJzkhusfHT7Oly3YtrvA= Date: Mon, 2 Nov 2020 12:49:52 +0100 From: Greg Kroah-Hartman To: Pavel Machek Cc: Guenter Roeck , Salvatore Bonaccorso , linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, shuah@kernel.org, patches@kernelci.org, lkft-triage@lists.linaro.org, stable@vger.kernel.org Subject: Re: [PATCH 4.19 000/264] 4.19.153-rc1 review Message-ID: <20201102114952.GA661633@kroah.com> 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> <20201102113648.GB9840@duo.ucw.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201102113648.GB9840@duo.ucw.cz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 02, 2020 at 12:36:48PM +0100, Pavel Machek wrote: > Hi! > > > >>> perf failures are as usual. powerpc: > > > > > > 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? > > > > > > > The problem is: > > > > In file included from util/evlist.h:15:0, > > from util/evsel.c:30: > > util/evsel.c: In function ‘perf_evsel__exit’: > > util/util.h:25:28: error: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type > > /usr/include/stdlib.h:563:13: note: expected ‘void *’ but argument is of type ‘const char *’ > > extern void free (void *__ptr) __THROW; > > > > This is seen with older versions of gcc (6.5.0 in my case). I have no idea why > > newer versions of gcc/glibc accept this (afaics free() still expects a char *, > > 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 version > > of perf no longer uses the same definition of zfree(). It was changed from > > #define zfree(ptr) ({ free(*ptr); *ptr = 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 acceptable. > > 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. If you can provide the proper patches backported to 4.19, I will gladly take them. I tried to figure it out and couldn't, so good luck! greg k-h