From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6682DCA0FF6 for ; Fri, 1 Sep 2023 23:40:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351094AbjIAXkF (ORCPT ); Fri, 1 Sep 2023 19:40:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349714AbjIAXkD (ORCPT ); Fri, 1 Sep 2023 19:40:03 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C04D0E65 for ; Fri, 1 Sep 2023 16:40:00 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-d7493fcd829so2172270276.3 for ; Fri, 01 Sep 2023 16:40:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1693611600; x=1694216400; darn=vger.kernel.org; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=qPYkQ8Xw70h9DqHSSmMkj0hho7Qvwic0o4hOL1SmVO8=; b=VTP5HWYJ6lT0EWTf4vSFsDAr8J3aCbLE042P84hYsONrrq6C/HlA2UPPJcHDL8eJap zjtrvn78rFeQyEl5wLu9izsy7Vp/Y5fBCGfOps5V+iCMpg/Bpo5rXqKuUHYCnhxeQ48k WnZIjR0ECBPQjWlaU3pr2y1nREkM8sBzNP1OvZUQg6OljlgqlrAlKmdehVsKh4ioJW4k mb1kRPoCr2476T+IUMq96D8/ItN4+QUfx7hCZthWVBkScfg8McR45VBDYobb/yFzCa6c MbuxAeoeMv6GZB+B4Obsf6IJy2z6mM2GqcnsyOFQ6B74lXHj21ueID8HDGMrWWqCkrQO DDkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693611600; x=1694216400; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qPYkQ8Xw70h9DqHSSmMkj0hho7Qvwic0o4hOL1SmVO8=; b=Dtz4zd5SK5ii47hH4qsNfEwEjQO9F0gUDkeTpvsjpmCZFf2RR+hp2YffWBBoRcIBSr zG0CHaF4KKJZFagIRxO7EBcFXYeqwgcbP5O+6FyK6ZkGiY8T++mZsOGLrqve8PWpoaxj 7WDz0bYf09gdf+HCWO+SOHjN/U+YX+TAgrz68sVF11wy7a6fnzN5XFBiIIvRTDA1BWjh DoN7X+D/JY5E8eh/ELcfYsfIc6BRkJ6NTPCDDM0dtC/HOFs84kJHEL0hbuXpCtKowXt7 bSwi5O5MU+oTXONSGu/Uw95iujAU3mAW/wnSdl3GmFRKTjF2uST/nW86fFuUewfGWC/c U3kw== X-Gm-Message-State: AOJu0Yyi9aF0JgBLY6xssR6tuya3bYkkAUJFRprbC3q82cCl+dNO0Bo3 XL53Evm1t8lcSObqS8gLq4FtHmtvXyXD X-Google-Smtp-Source: AGHT+IGxloGRu70SiEhB2mwb4HGbhgX1oJ+wp7rpTws/IEeT5tolfsEc540yl+Geu2DFv9zeeUq8m3CZtyhn X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:51bc:d985:dbbd:10b]) (user=irogers job=sendgmr) by 2002:a25:a56a:0:b0:d77:f7c3:37db with SMTP id h97-20020a25a56a000000b00d77f7c337dbmr113992ybi.8.1693611600107; Fri, 01 Sep 2023 16:40:00 -0700 (PDT) Date: Fri, 1 Sep 2023 16:39:45 -0700 In-Reply-To: <20230901233949.2930562-1-irogers@google.com> Message-Id: <20230901233949.2930562-2-irogers@google.com> Mime-Version: 1.0 References: <20230901233949.2930562-1-irogers@google.com> X-Mailer: git-send-email 2.42.0.283.g2d96d420d3-goog Subject: [PATCH v1 2/6] perf parse-events: Remove unnecessary __maybe_unused From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , James Clark , Kan Liang , Rob Herring , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The parameter head_terms is always used in get_config_terms. Signed-off-by: Ian Rogers --- tools/perf/util/parse-events.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 65608a3cba81..e9e3623f3fed 100644 --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/parse-events.c @@ -34,8 +34,7 @@ #ifdef PARSER_DEBUG extern int parse_events_debug; #endif -static int get_config_terms(struct list_head *head_config, - struct list_head *head_terms __maybe_unused); +static int get_config_terms(struct list_head *head_config, struct list_head *head_terms); struct event_symbol event_symbols_hw[PERF_COUNT_HW_MAX] = { [PERF_COUNT_HW_CPU_CYCLES] = { @@ -1079,8 +1078,7 @@ static int config_attr(struct perf_event_attr *attr, return 0; } -static int get_config_terms(struct list_head *head_config, - struct list_head *head_terms __maybe_unused) +static int get_config_terms(struct list_head *head_config, struct list_head *head_terms) { #define ADD_CONFIG_TERM(__type, __weak) \ struct evsel_config_term *__t; \ -- 2.42.0.283.g2d96d420d3-goog