Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp760883lqo; Wed, 8 May 2024 14:11:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVMU8sOr8mxU2KFi/xQGs4QPekiVUPJL4Yqp0bfFrNIYixQ/oXiD/4fZZkCbwR4SSCwsPH5Jly44ty1bnj3RB3k7Jsdh0LIS7YhMqeYTw== X-Google-Smtp-Source: AGHT+IGKwcjGXhL+Q5i21DS5hkNizCSheLnYgSQppcmK9GdFFQEH5DJB/iAji8PTZaWuPzIfg6Md X-Received: by 2002:a17:906:b156:b0:a59:ac10:9be5 with SMTP id a640c23a62f3a-a5a1177fe41mr56853166b.27.1715202666059; Wed, 08 May 2024 14:11:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715202666; cv=pass; d=google.com; s=arc-20160816; b=qNH1duzE4x9P3bVGhAEmVbje2orMiAE3ax/FqSMKBRKKk3H1UnTID9uAW7XPGQHel6 WDz8NP3BJiZIzgutCy0QK0xpHECAu+qFW0KEGZt3oeHUuAJ9reSrw7D6Js9aFiUHTbov qde9LWjPP4zO2v7eex2Tmp2MwXZf0v+PLIgsp2WthTLd8Uv1sUbTVocp2W+HlZ5i2J3/ Q/NKFV+Letv1qLWDxa6dAWwGrgRlD3Mn7Gf77Ay/0Szbab8FJgBrs7pqUmAhFnaTJLEP nzS/wmMCzSGwZ8+9uf4yftQfxyGc0qMCQL4Zqc1zH0N+/dGavLx7pTCx9huab+s/2m+8 6kwA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=6imyIJTMo4xA0dmfwzlWT+Xdp+rxpa+6dL8UE1tHP98=; fh=6iHAJUIEZ16zv3Ht+almkAYpL9/iDU3ZhysCIXb8oD0=; b=LSHP70kIkeb31BVO8cItzLje5Iw2cUTpdUC7bFBo4nsVIr93u+j7/zHJIN0D0FUG9t ERHJoRpsFnfCQEoENsFDbWuicTTRT5lBptBWoWXpjtcNrO36eDeYWfGoBggMWEwt46FU GvAT7ErS8456Kv9p79aacZ6Zf8SEJ8u/njOnDW0/7ZidHFLArIvH2x1hqZKHGqoyucyy zMMP1nj5BigFNTwhgMHjTHywGozoEgTpwN4e8WNfku+ICs/Y3l8hJUDLwMarbZJB2ijx m0ZAwPlTaOnoGlZ+fZj/sS4XTz8qeyZsG9bl3vKxg6ZACxFqtVz6FNWihsxu2IvAUsLu kwkA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-173829-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173829-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17ba4ff7si1537766b.582.2024.05.08.14.11.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 14:11:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173829-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-173829-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173829-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C5D031F22F0E for ; Wed, 8 May 2024 21:11:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 066C3131BB3; Wed, 8 May 2024 21:10:59 +0000 (UTC) Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 430E721373; Wed, 8 May 2024 21:10:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715202658; cv=none; b=BmGIf5a0GzRNX8Bgt8TQUmEyJWTEXNUWnNQ26CS5nc2T8jZgehVj4p0uhGK/KMmppD31y0V8UOv/cdqTQ5Df6bOiwx2wOuRKpFbK6DhSbha3cxpYAphywhHeFAYl1A41TpHldXfG4oatPxJVOziMF8RwDshQu+Y1+M7V5ezbJ/c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715202658; c=relaxed/simple; bh=Rq0sgbSVKAF9f0zp2XsnYI13Zjl1Mao2IwDg3Lw3aSc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=uwhfpGgBYGaOTORAXpRQlC6CDlF+Vmzgpe4V4P3avYRsaknWoJoCMayU+oPl5jN/YMj7zpdrUzCqW4+aEqFbceYnC8SoBd+OkQOiQt2fOH9TkNZXLGvihou3NWKMr1f8hYGTTdmNRF5dsWXWPfFw2s/2kUHAl9amYdTmj2LZXfU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.216.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-2b3c711dfd3so194030a91.2; Wed, 08 May 2024 14:10:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715202656; x=1715807456; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6imyIJTMo4xA0dmfwzlWT+Xdp+rxpa+6dL8UE1tHP98=; b=ZmnzVEMS1Z+6Gi8jLXkoFgo3KoLr+5/FeKYOCxi40oxEPfDgaG3CB3qHZnJruXsmOL AVCRAVThpEWOAVyE22OtAkblspt0ITGEDRrESC0IXNDN+WDHAB2PgbmEmA9TwrBRaDzV UluzzZgHK/jfDDvxaOdBtKuHBEDsfZNUlHP6oFfMtrpWiK7Tx5XqELoeMdZyizkjw58h 81RZYHgsnhFDbvov+d5bOHeuHkrWZNnax6WbXTs5wMc8N4qMeu/KKA/HKwNZCASzqvVZ EI22m5dTEmzGDOhY+mPX7Tvxl4ZsdJcwarfnFnhZpFyzyJxmpZ8qFmu6MyTKH/AlwOZT lhsg== X-Forwarded-Encrypted: i=1; AJvYcCXuMq8tOpm7HnHuWekhW1iaWoET0O0C92N8BGSGZdufK7csXWSEDP7Yzs7DbZK4oYooOLNbb1ESdQOwPwjVozu82nHTKSgA4MIbvErnuUF+9asZhJSnXpzEX1Q0aHADAMeKDn3HOpICvSECphSYNg== X-Gm-Message-State: AOJu0YyGWRVNMjHjVHAj3ztgiTmyaHHrLlQ0/2Cw9iJ+d+8gsOy9taBl PBkxX0hxNQ/l9W4uEmZ0d6mQO/Y95J/FgcPsRwrKPSawNLWIqopqiepP/G6wBDAy0UOkiH98VJJ Zptxu8IydaXsbzM6oqmnR4H+6sYQ= X-Received: by 2002:a17:90b:914:b0:2b2:c85f:aa0b with SMTP id 98e67ed59e1d1-2b616be62f6mr3738098a91.42.1715202656458; Wed, 08 May 2024 14:10:56 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240508141458.439017-1-james.clark@arm.com> In-Reply-To: From: Namhyung Kim Date: Wed, 8 May 2024 14:10:44 -0700 Message-ID: Subject: Re: [PATCH] perf dwarf-aux: Fix build with HAVE_DWARF_CFI_SUPPORT To: Ian Rogers Cc: James Clark , linux-perf-users@vger.kernel.org, leo.yan@linux.dev, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , "Liang, Kan" , Masami Hiramatsu , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 8, 2024 at 2:05=E2=80=AFPM Ian Rogers wrot= e: > > On Wed, May 8, 2024 at 7:15=E2=80=AFAM James Clark = wrote: > > > > check_allowed_ops() is used from both HAVE_DWARF_GETLOCATIONS_SUPPORT > > and HAVE_DWARF_CFI_SUPPORT sections, so move it into the right place so > > that it's available when either are defined. This shows up when doing > > a static cross compile for arm64: > > > > $ make ARCH=3Darm64 CROSS_COMPILE=3Daarch64-linux-gnu- LDFLAGS=3D"-st= atic" \ > > EXTRA_PERFLIBS=3D"-lexpat" > > > > util/dwarf-aux.c:1723:6: error: implicit declaration of function 'che= ck_allowed_ops' > > > > Fixes: 55442cc2f22d ("perf dwarf-aux: Check allowed DWARF Ops") > > Signed-off-by: James Clark > > Reviewed-by: Ian Rogers > (eye-balled to see the #if problem exists and this is the correct fix) Acked-by: Namhyung Kim Thanks, Namhyung