Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp532670lqt; Thu, 6 Jun 2024 10:20:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFfyyFJJARz9csob9oqFk0WKqGX7WysdgdrYPsZ99ObIgmzgsU20q5WMH590QZJmyCt9jPqLRUHtLKrgLG0Lx8EoMrfySrMULWI54plg== X-Google-Smtp-Source: AGHT+IHyG8fZtcfrPpdhZTDKUtOiEuvKdcCg6Xr5z2JS439X8kONFOh8fO5xSvBjsDXz9Xy3qwAY X-Received: by 2002:a05:6602:3fc8:b0:7ea:c4c4:db8d with SMTP id ca18e2360f4ac-7eb571f3687mr41166239f.5.1717694456577; Thu, 06 Jun 2024 10:20:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717694456; cv=pass; d=google.com; s=arc-20160816; b=y+VwP+QKZEMOdmT0wLtXUyy3PfU/SooqieAOw7DmaU0+hgQrfgizhyY+kcAabmNlg0 H5RSWDZG80zOK1IiZqZBZ8HXLQGvomGuzAnHUXSu64bxkUwxXw61wNGUIL0NHW+NeK9r BnkcRqtj5ugORihyG+c42YvR68I4dd+Y/NSa0f0LOUa8AyJubbujaEa64MH+zegMJzik VihD8hx+Gvgl1dIZ4/sigE99HBDF7w+7wkt75xaX30spegpWXuvzrwsaX6tSEi+O8J76 ZEcXtlavdvZPGfs+0RoHppgN6GxHwyfomKGPJLcOzct2rCgr5W2Ho77ND2mP/rR95rpZ NPSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=MyZA75KMV0wEE0wh3wRGvOMA5I9NDRDVkbxoAunt40w=; fh=vsLJLI8ssk0GeHaf/GUB/aoj1KEz0m8SUd/XIC3oEkU=; b=dQO0kazwkynMiJ70YF6C6tymZrvZyyxzOoFnkYfZJZ0a412daXmpfFfPjvGI9vI/nh tq9kXHUXwKyoVm7espYXAuzRS8S5LEaiHP/BYmM5P9M3IfwV7Vvej3vyX8DNqkXAELyQ C2wZHUAf0fTEyEhwe4/lExXO/7S4axbbiJeW6hI00CEV1I20AK4ZxaPDNzNeviivOXNP e3GM46iYWJfhCQKizCQOG5ENPIntB5avnyxiYA0K5gVgvG2WLgbwvySCaZLPneBlGcQG aLay0ChLww3FK/FjwTgKFWrM9DYoFkChJ8IadQ6kUYNgCJzrmr8S+xOK43h+YTFJWkmd gt7A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NW99UE9o; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-204776-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204776-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de275fba01si1236686a12.459.2024.06.06.10.20.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 10:20:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204776-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NW99UE9o; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-204776-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204776-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3BAFE28C772 for ; Thu, 6 Jun 2024 17:13:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F1FC8198E90; Thu, 6 Jun 2024 17:12:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NW99UE9o" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 20F271E495; Thu, 6 Jun 2024 17:12:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717693976; cv=none; b=CSeGYZmn8zD7mS0vex3u7BTAgxZ6MqHVj9XE9zOa38QAFa0mg/Z0Py1uaAOSPclBRXwqRF2YVNwI7VWpHif60OdnxmL54g/Di7yzyj/glI6dSRiu4DZB6WaWNCAj0+0n6cnwUbO/mhss6rpKKrnz55bfxAmcXIY9n0DwKF8r0+U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717693976; c=relaxed/simple; bh=yNzSGMzBPpeJxQaqXhbDJgrlYAct+LNjRn53sZZoCBc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=RJ3wdhj7wmUWOM3ur81hwhTF4qfF+qLuJirZ8DYxqaaIMwugmeYaG7/pRqWZ+b9DxklPhHJ7TO2YxPwTfQiKsICr6mKXHbe8gPmRam0bIV17d4/OTxXx7tuSrm7OGlUQwMh0Xw5zDxkS0P2A+X+V5cpp89Q2DcjHoBlKu/SvZXc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NW99UE9o; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43CA3C2BD10; Thu, 6 Jun 2024 17:12:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717693975; bh=yNzSGMzBPpeJxQaqXhbDJgrlYAct+LNjRn53sZZoCBc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NW99UE9ol72yWu8MgmnC9Dt3kKTxzcj+FrIvKXR4YzpclPRCy/uHN2SVJXrIzkYev qBtSG4wO1IUhq/QkvjFSXanhWQ14Vm3kKDwubQxW1f3sWGmouPl/dasGn1k76DkgKR C5KN8DAfDX9aqEoy3eAtfDTN/SWewyp/fKJyl3fb6v3LwdKOerDrm5BWwnBbQewKlP Ye2BtsBrlShxUR7CpASU3eZMR3cjQZflGtPWXo6k4iHRlIjRHWgcigMVrFhRZlYi3v 7/mEuH0ZCTamuIHNJgr7UD9qXWjqSJgPHQ3LN37+wmTMgADzBgJkrTEZG4oKcFPyfx HmOwQsry8p/ow== From: Namhyung Kim To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , "Liang, Kan" , John Garry , James Clark , =?UTF-8?q?Cl=C3=A9ment=20Le=20Goffic?= Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH] perf: parse-events: Fix compilation error while defining DEBUG_PARSER Date: Thu, 6 Jun 2024 10:12:52 -0700 Message-ID: <171769393997.2340193.15187370089504659355.b4-ty@kernel.org> X-Mailer: git-send-email 2.45.2.505.gda0bf45e8d-goog In-Reply-To: <20240605140453.614862-1-clement.legoffic@foss.st.com> References: <20240605140453.614862-1-clement.legoffic@foss.st.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Wed, 05 Jun 2024 16:04:53 +0200, Clément Le Goffic wrote: > Compiling perf tool with 'DEBUG_PARSER=1' leads to errors: > > $> make -C tools/perf PARSER_DEBUG=1 NO_LIBTRACEEVENT=1 > ... > CC util/expr-flex.o > CC util/expr.o > util/parse-events.c:33:12: error: redundant redeclaration of ‘parse_events_debug’ [-Werror=redundant-decls] > 33 | extern int parse_events_debug; > | ^~~~~~~~~~~~~~~~~~ > In file included from util/parse-events.c:18: > util/parse-events-bison.h:43:12: note: previous declaration of ‘parse_events_debug’ with type ‘int’ > 43 | extern int parse_events_debug; > | ^~~~~~~~~~~~~~~~~~ > util/expr.c:27:12: error: redundant redeclaration of ‘expr_debug’ [-Werror=redundant-decls] > 27 | extern int expr_debug; > | ^~~~~~~~~~ > In file included from util/expr.c:11: > util/expr-bison.h:43:12: note: previous declaration of ‘expr_debug’ with type ‘int’ > 43 | extern int expr_debug; > | ^~~~~~~~~~ > cc-1: all warnings being treated as errors > > [...] Applied to perf-tools-next, thanks! Best regards, Namhyung