From nobody Tue Feb 10 00:00:08 2026 Received: from mail-oa1-f43.google.com (mail-oa1-f43.google.com [209.85.160.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 C3FD51C463E for ; Tue, 6 Aug 2024 11:48:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722944910; cv=none; b=ZhUl6R/7Kni8RClUyWmJB/lRoScroyLPz8NShXyXXag05YLeDykdtF/vsSVNUFQ4ljacgXUgIK+Rct+D4XIxByLFnnogWBW8+Q5z/pewy4DLDxZ4ENVPPQjnU4iYIwD62r7/TYxFDAOlEuJQJE23FwLHbVy+YtbDE98n1nr3M/U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722944910; c=relaxed/simple; bh=w5HQUkEOQZ9OiMAzw+TwotIyqt5lF9ZFZ6Io5hL+Vpg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qu7aGwRcYduwU30Ak0uLdH9S90HVaiStqBBNjuGy048vs2YNOc1nrN3vNtnpBYMERyliQsYcZ7WkgrIUja9WavzyDFTCEbTMEwxhaIWRbT6xevXf23CxH76pNpAstc38wZl2/kFqVqF5Glu/YW4r5qyza/diErfs2VgSr4YlvfE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com; spf=pass smtp.mailfrom=bytedance.com; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b=krL8wpTU; arc=none smtp.client-ip=209.85.160.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bytedance.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="krL8wpTU" Received: by mail-oa1-f43.google.com with SMTP id 586e51a60fabf-261112c303bso345298fac.1 for ; Tue, 06 Aug 2024 04:48:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1722944908; x=1723549708; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HHmg1SR6T64IROlakovGV4e3PjU8whLQ8HGL2eHtGe0=; b=krL8wpTUfKRG8ru4VZdVkWyeL3x0Jrgy+829XPRjtT2oM284hrTYcjy1BcBVaFpsp4 SbfYfQdKYLr/mlYOZx4kNdebdJ8CZlqDZT0LAI1GU5JASyAy+u6JCdGv5uS1S2lXNzjC aKBpP/uohepaxqwjZH8MoIv1PKmC0xE4uzBTmhT4ABherGj8Ye9inaRY4a8PcKXdagC4 PsIvjol1uab8Z9h1192CK6Y0TMEzoMif4bn/ezvyU49QWrhgYyZ0PJZs5jaqsA/gUd81 gBhPNqKacI1pCJHDuvAetrik4W3UgEvxEQ0BV1W33cHpXuus3RXc2cASHFX3cdE7GjFk rPMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722944908; x=1723549708; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HHmg1SR6T64IROlakovGV4e3PjU8whLQ8HGL2eHtGe0=; b=QbkApJZ8hoTWRtGuf7p4qRP+bztCsVSFJPiz9YpuMij3eMqych/hBQHu2eh6vMYDKS ZV9zMCqv3ZTqURw+HS5rXyvpHNOxr6z6QE1aZ0BbVmmY3VGFCmyONO0NLbxnjXeu7P/j Y2/62CU5Xfdwgrys2gOfrePBIo0FLdVL2YxkWACpLnMJneuZ+UQOA7CFv3uVNE/iBK0e cqF924jmUXTYTVbSrWDfYQxk1nX97OvIykyw835AwRbSUyciDYdFOg9/BwbjY1rVml7e QV8242Pz7bNDTJpZHHO8N/sm7aP/Tw81ZXmSACJxc3johfgEkQsOMDwAXaTEAAhViePf tpsA== X-Forwarded-Encrypted: i=1; AJvYcCW7dercuMGbUaeAlhX+v7QGOLcn5Z7/DOidOQTFQcOU3v/r35lrC13dFTCA4qS3dKOfH/YtJvRelHxXz8AaaMx2Ch9oVqrCNEjePdmC X-Gm-Message-State: AOJu0Yx3wG/fiVY+sreWVKYgMyObwwjqDoRBkYUu7uAQerfMohNPIWUc x5icUg+JRcwXoV9VIFTOZUUpyzAkQO9PIQk5VVQf54/ANj1qpmAee5mQYceyObo= X-Google-Smtp-Source: AGHT+IGdkJ8/XmVLszO0PEPUN3TJ0RbZR+khjrBSEWmw3Rmb098Lzmz2r3RamSHWf5aQzQ8x+42NYA== X-Received: by 2002:a05:6870:96a2:b0:254:a917:cb38 with SMTP id 586e51a60fabf-26891d4058bmr20651507fac.27.1722944907835; Tue, 06 Aug 2024 04:48:27 -0700 (PDT) Received: from ubuntu20.04 ([203.208.189.5]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7106ec43944sm6831705b3a.75.2024.08.06.04.48.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Aug 2024 04:48:27 -0700 (PDT) From: Yang Jihong To: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, namhyung@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, irogers@google.com, adrian.hunter@intel.com, kan.liang@linux.intel.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Cc: yangjihong@bytedance.com Subject: [PATCH v2 3/3] perf dwarf-aux: Fix build fail when HAVE_DWARF_GETLOCATIONS_SUPPORT undefined Date: Tue, 6 Aug 2024 19:48:01 +0800 Message-Id: <20240806114801.1652417-4-yangjihong@bytedance.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240806114801.1652417-1-yangjihong@bytedance.com> References: <20240806114801.1652417-1-yangjihong@bytedance.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" commit 3796eba7c137 move #else block of #ifdef HAVE_DWARF_GETLOCATIONS_SUPP= ORT code from dwarf-aux.c to dwarf-aux.h, in which die_get_var_range() used ENO= TSUP macro, but dwarf-aux.h was not self-contained and did not include file errn= o.h. As a result, the build failed when HAVE_DWARF_GETLOCATIONS_SUPPORT macro wa= s not defined, and the error log is as follows: In file included from util/disasm.h:8, from util/annotate.h:16, from builtin-top.c:23: util/dwarf-aux.h: In function 'die_get_var_range': util/dwarf-aux.h:184:10: error: 'ENOTSUP' undeclared (first use in this f= unction) 184 | return -ENOTSUP; | ^~~~~~~ util/dwarf-aux.h:184:10: note: each undeclared identifier is reported onl= y once for each function it appears Fixes: 3796eba7c137 ("perf dwarf-aux: Move #else block of #ifdef HAVE_DWARF= _GETLOCATIONS_SUPPORT code to the header file") Signed-off-by: Yang Jihong Reviewed-by: Leo Yan --- tools/perf/util/dwarf-aux.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/util/dwarf-aux.h b/tools/perf/util/dwarf-aux.h index 24446412b869..d2903894538e 100644 --- a/tools/perf/util/dwarf-aux.h +++ b/tools/perf/util/dwarf-aux.h @@ -5,6 +5,7 @@ * dwarf-aux.h : libdw auxiliary interfaces */ =20 +#include #include #include #include --=20 2.25.1