Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp496594pxj; Fri, 14 May 2021 08:28:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3E/c389jUH/Do0bIU9MyLS/3aXQeMsX3ESz+4FUWIYkuN3uifBvXFXuQrkPrzcko357h1 X-Received: by 2002:a05:6602:24cc:: with SMTP id h12mr34049817ioe.111.1621006119442; Fri, 14 May 2021 08:28:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621006119; cv=none; d=google.com; s=arc-20160816; b=yo0W6VZDaN6QfZ7k91tMRPnjHbXKkrstinONJXsXpW2Sat4etE7e6S7USJQh6+/umO zeKRjEr+F087rNSTkyAF3nufAy40XT3fn0SmKt6egZDOAMihxdIjXX6QNG90yPw49nk7 1VlJUXEMkszlmPhIXDBJToQf5laUdLfTRU1wxOy2gJk5d+9Vu+D8E1icDAs9KPq21U6u SUPHOnLuoON0eEvJ6V7l26R8BI364v4vaB6BjFnl5l34WGlS/+t3ksoC3M/vm28GKO3J MGZgCYOM0QvccFi4+K0fTE3UjDOLbzTnj7lux/JCsW93q2HITC9jaQ4+Nv/DY3W1eFIE qlBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hm6jRqClmC4rVRaiD7d7zTb0E35AjExK+thFxiDo1y4=; b=ECLjo3iPSTwF/MPFreTa9QMjRJzrIilsnEYFaRheQCLqNPffKc301vV75mRU3rIy+0 XdEU/trp7Rr3velFxNLJzqFd0CeH8NJc7tcRmM00vTqbj77Vx7TOsmRVl4+ulZtI3Du2 A7IzqFIi0R0/5Yz4S4LhTG32MJvzUhAlXkeCjyajOKuiRgnxEYR/p90MiLSIISfz2+Nb DE3kfAqpr3drL8ULIbnBJMiETgZ5LdtLz6AphH10x1E1OughgnCL7FhQNEsYNTcQ6fxb 5DcxQpn1JevQr6WJQuGt6XApCYGqkXBWnQnD8nzAQjCPp3kBqKO1/2upUpoayiDOh+vs rAEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=c0ii9evU; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a13si7380722ilr.121.2021.05.14.08.28.25; Fri, 14 May 2021 08:28:39 -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=@redhat.com header.s=mimecast20190719 header.b=c0ii9evU; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231296AbhENJE0 (ORCPT + 99 others); Fri, 14 May 2021 05:04:26 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:25461 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229981AbhENJEX (ORCPT ); Fri, 14 May 2021 05:04:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620982992; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hm6jRqClmC4rVRaiD7d7zTb0E35AjExK+thFxiDo1y4=; b=c0ii9evUYliBVsnXIHgSlPWfKyM5yzVGt6xZDPVpkhDcaWvSU/41m+m/7O2Rpgvzk58pJl XoubOt51dHS/PjYSWDPucxSZ/OJVqVkBVpXucMghjISpMEkXszBrmlVD894eMrnT5qokqF /UXqmpnrjp9//dJmF2IGJgt799rr4+0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-407-fhytkV-xOk6Z0ar6IoKp6g-1; Fri, 14 May 2021 05:03:08 -0400 X-MC-Unique: fhytkV-xOk6Z0ar6IoKp6g-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 37BEE801B13; Fri, 14 May 2021 09:03:06 +0000 (UTC) Received: from krava (unknown [10.40.193.71]) by smtp.corp.redhat.com (Postfix) with SMTP id A7DBA5C8AA; Fri, 14 May 2021 09:03:02 +0000 (UTC) Date: Fri, 14 May 2021 11:03:01 +0200 From: Jiri Olsa To: Rob Herring Cc: Arnaldo Carvalho de Melo , linux-kernel@vger.kernel.org, Matt Fleming , Masayoshi Mizuma , John Garry , Will Deacon , Mathieu Poirier , Leo Yan , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Namhyung Kim , linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCH 2/2] perf tests: Drop __maybe_unused on x86 test declarations Message-ID: References: <20210513174614.2242210-1-robh@kernel.org> <20210513174614.2242210-2-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210513174614.2242210-2-robh@kernel.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 13, 2021 at 12:46:14PM -0500, Rob Herring wrote: > Function declarations don't need __maybe_unused annotations, only the > implementations do. Drop them on the perf x86 tests. for both patches: Acked-by: Jiri Olsa thanks, jirka > > Cc: Peter Zijlstra > Cc: Ingo Molnar > Cc: Arnaldo Carvalho de Melo > Cc: Mark Rutland > Cc: Alexander Shishkin > Cc: Jiri Olsa > Cc: Namhyung Kim > Cc: linux-perf-users@vger.kernel.org > Signed-off-by: Rob Herring > --- > tools/perf/arch/x86/include/arch-tests.h | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/tools/perf/arch/x86/include/arch-tests.h b/tools/perf/arch/x86/include/arch-tests.h > index 462546bfc5f7..9599e7a3f1af 100644 > --- a/tools/perf/arch/x86/include/arch-tests.h > +++ b/tools/perf/arch/x86/include/arch-tests.h > @@ -2,12 +2,11 @@ > #ifndef ARCH_TESTS_H > #define ARCH_TESTS_H > > -#include > struct test; > > /* Tests */ > -int test__rdpmc(struct test *test __maybe_unused, int subtest); > -int test__insn_x86(struct test *test __maybe_unused, int subtest); > +int test__rdpmc(struct test *test, int subtest); > +int test__insn_x86(struct test *test, int subtest); > int test__intel_pt_pkt_decoder(struct test *test, int subtest); > int test__bp_modify(struct test *test, int subtest); > int test__x86_sample_parsing(struct test *test, int subtest); > -- > 2.27.0 >