Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2816879pxb; Tue, 13 Apr 2021 10:50:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrkjTJ0b7tHoYUpX6sUX/W8athO2oUgsxTCxb2pdpIldlv2G9XSlcuSxGcwEFLfRoQKTkL X-Received: by 2002:a17:906:5855:: with SMTP id h21mr33678252ejs.522.1618336208486; Tue, 13 Apr 2021 10:50:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618336208; cv=none; d=google.com; s=arc-20160816; b=mI8AKNTZmIgivvZsXP8yK+Drm9/fTwz9QPRKvMcOK3LR4k9yqDKvbGLYnTjY328PxF M6h2wR2IwfwuLQs0vl0N8rYIByeB3p4JzIRdKWwF4B4kct4hCQhPHecAa55Vq26Hgreg w3ooIdEugDr9A4SexgoOtK5RPnIantNnKeuugIVfwfPzsDGWb1NwSZD3Eq44DLKNAssC 4hKpK/Z58SNYVCz2+sMKpp0P/ROttSuYZjULSH5L0EKGOCOkRSRv09zgYf/XPO0LxPW0 MHp2O8qHxuP/54tWnJpFIOZDEJG58IzRkw1Bq6gXagkt9N/cM2W6Om5D7mp/J+IFGnLS Nhaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=TpxC1qelb9qRujqf8xDlcIHAF8+xB1dypj9reMWQZ4o=; b=DfQnsUx2rOrLPHR6ktn3+77Kbl2SUUxSm6Zj50J97DxDxYRLmTHoKtzjVV1ajBo66+ oRycwt4Lc9VMONx+SbEZKiZOUEpcrXSlvYv3SmSTafI6U7+i3jTFEizqU5stchRNtoSl T7m+a+rVhuMiJ0zfMDAYEopnqd6ePlOdJ9Jf4ylj/ZSe8+BhVlbvVXd4STirjM6JqSE0 aVwtGEVaN9QyWm76XYyfWWoIBnD+v8fOgXnzQ++8HQAnV25jjEhpbKIY5959Xhu8VH0v OAXN6yXT5OtF0fClpC1ZsGZgajiERzQ7pZd9CV7Fw1Jo8LxYPdN4FvV8Ez178vStmI68 arug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QrIoSxI4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i17si10698994edc.436.2021.04.13.10.49.44; Tue, 13 Apr 2021 10:50:08 -0700 (PDT) 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=@linaro.org header.s=google header.b=QrIoSxI4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345438AbhDMMM1 (ORCPT + 99 others); Tue, 13 Apr 2021 08:12:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345437AbhDMMM1 (ORCPT ); Tue, 13 Apr 2021 08:12:27 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88C84C061756 for ; Tue, 13 Apr 2021 05:12:07 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id l4so25491644ejc.10 for ; Tue, 13 Apr 2021 05:12:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=TpxC1qelb9qRujqf8xDlcIHAF8+xB1dypj9reMWQZ4o=; b=QrIoSxI4gJ/KgVGb4hCt1Y4h4rP8zc8j5m9Sz+/eXvN2p7vKPdREwZPBSaUxMsN26x DaeI//cyb3Iu8krLI4pMyrOGe9j3K3i6f+ODoNnCjwl0p6CDJYh/edkLPTVVMAsJcfU9 UM7AigVQlZ5dXC4CfhDgrt/pEnC8nJs3K5fUE0g8ToSinapnaUsPSQAABQPU35yFy7NU j1eTXDA6wiyk+D3MpM/aIhep4KZu9JYftozPtBEvYByP1OATA19sz/+gk/eY+hV6xj8e u9+M3O3BxuEq4lGgSc+XuLGb5OJtE5ylh5dwB2eJDwg+n2JNlQFlZpIDl9RdDcHLNBcQ 6cBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=TpxC1qelb9qRujqf8xDlcIHAF8+xB1dypj9reMWQZ4o=; b=KvgQbFDUA+s52MRe9Z/6Ypco8+LUZ6feQbaRVqzb5yABOHXoPMAHMEigrYyJfW778l 7ECZo00KbAzr7YBVI1sPQoHLOur6Wplv5DMvj515RaALu/7wWeHRJJcz4KGP/wgS2yJ2 uxCDd7opGhzB9fyhleTxPhSwO0S4rCJXbSNMlXXrXJQQMBpREUIfDatF0LogGcz2oRsb vlFVmxeShe+2yUQBbWRw/NqcpDQBQjw80IDik0UbAt/V/3tbG+QhUy7tT664GN+X3JMc DpLsqnPK96gvLjupS/nfMWw50y5s8xyMWASasJPI9nMu0izExD92tijGon3MTWCNdYB4 ntew== X-Gm-Message-State: AOAM532ul42MKjAmvVyfuU0uS2OuPKmpTsx4m8OlKD1RsEoFBIoFTeqJ /RUa/kvaHx2EpX+GGunEsaxCTBFY14IfX7OFK0RDc7N1M8pN58oM X-Received: by 2002:a17:906:aecd:: with SMTP id me13mr1459415ejb.324.1618315926291; Tue, 13 Apr 2021 05:12:06 -0700 (PDT) MIME-Version: 1.0 From: Anders Roxell Date: Tue, 13 Apr 2021 14:11:54 +0200 Message-ID: Subject: backport patches to linux-5.4.y To: linux-stable Cc: Linux Kernel Mailing List , acme@redhat.com, ravi.bangoria@linux.ibm.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Can these patches be backported to linux-5.4.y, I've tried to build perf on arm and it failed without these patches. fc8c0a992233 ("perf tools: Use %define api.pure full instead of %pure-parser") 20befbb10803 ("perf tools: Use %zd for size_t printf formats on 32-bit") 77d02bd00cea ("perf map: Tighten snprintf() string precision to pass gcc check on some 32-bit arches") Commit fc8c0a992233 ("perf tools: Use %define api.pure full instead of %pure-parser") fixes: util/parse-events.y:1.1-12: warning: deprecated directive: '%pure-parser', use '%define api.pure' [-Wdeprecated] 1 | %pure-parser | ^~~~~~~~~~~~ | %define api.pure Commit 20befbb10803 ("perf tools: Use %zd for size_t printf formats on 32-bit") fixes: In file included from util/session.c:17: util/session.c: In function 'perf_session__process_compressed_event': util/session.c:91:11: error: format '%ld' expects argument of type 'long int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Werror=format=] 91 | pr_debug("decomp (B): %ld to %ld\n", src_size, decomp_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ util/debug.h:16:21: note: in definition of macro 'pr_fmt' 16 | #define pr_fmt(fmt) fmt | ^~~ util/session.c:91:2: note: in expansion of macro 'pr_debug' 91 | pr_debug("decomp (B): %ld to %ld\n", src_size, decomp_size); | ^~~~~~~~ Commit 77d02bd00cea ("perf map: Tighten snprintf() string precision to pass gcc check on some 32-bit arches") fixes: util/map.c: In function 'map__new': util/map.c:125:5: error: '%s' directive output may be truncated writing between 1 and 2147483645 bytes into a region of size 4096 [-Werror=format-truncation=] 125 | "%s/platforms/%s/arch-%s/usr/lib/%s", | ^~ In file included from /usr/arm-linux-gnueabihf/include/stdio.h:867, from util/symbol.h:11, from util/map.c:2: /usr/arm-linux-gnueabihf/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 32 or more bytes (assuming 4294967321) into a destination of size 4096 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cheers, Anders