Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp275355pxf; Thu, 1 Apr 2021 00:23:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHRnYeHapquxpByrroMKN1TzRWtx/1syNleh+s4E/piQClsUNzh6uZ7YYrIzUsMFUTctXa X-Received: by 2002:a50:cdd1:: with SMTP id h17mr8237728edj.178.1617261825069; Thu, 01 Apr 2021 00:23:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617261825; cv=none; d=google.com; s=arc-20160816; b=nw04SU+ObK54aS6HvjdikUJKUDhZguoh8TW5fA47jPKXXJ5GhLqXmfXcyB6JwMYy2H vL3ZeiDXOmnrjifm5Fsj7XwKrhrraklcvfMxWUUh/seJ4vKki6orFJAxjDdC5IpxxZe7 WhnJiGlhLa972ALBXRWVjI+hePFriXDRr1qVr2PYjTxbbzqi1XUy25GP/aKU0e4/ubaR JomwHxWr+SsS33nkxb4ML/2pqrAhl8Z6E52OZes0McPsNH5pLXsp6HMRrnZGJgMN1pi8 QYdJF0Z1SY3LHPLQ+BjyIMVyyJNRB8eAID5o6W5t28rfbUB8rMncGNKxD3kkyDzQMkwB X2Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=RG0cIOeeDttNPxGbdwFSZXm9dJ/yfyeiln/lD1h5lxE=; b=Blaff3aCzfTmAJDh3etXVCTVqSwCuWiOnGans3MNAi6kt+rKoYJiGaO6OGuvYyyzOk CZY5v/7FOwxgOxuc0U3qbOjjsQadc88CPWO2R96TugGARt2E+oBhvOlt5TK1w5Gye1Zh DDyup46UKilZzTacLn1Fpah9A8FlZWPZlKABUG06qmiEZ/2BIOpAHOkefCXS1zLOjHcI j2riRQKtnBst3We1lnx+6IbxGgKFthZjHr4GrngyuC8KtjA+MTT5GyDyfyGDffLgkpgK UAV3fYNxVv4ezZIPcEmQ8MZ3o5IC6TLaAZhsFtHi/xzh3/PMCrV9IzTTjwgYx8eZE3zN TxVQ== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m23si3215674ejx.737.2021.04.01.00.23.22; Thu, 01 Apr 2021 00:23:45 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233518AbhDAHT4 (ORCPT + 99 others); Thu, 1 Apr 2021 03:19:56 -0400 Received: from mail-lf1-f46.google.com ([209.85.167.46]:44845 "EHLO mail-lf1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233179AbhDAHTu (ORCPT ); Thu, 1 Apr 2021 03:19:50 -0400 Received: by mail-lf1-f46.google.com with SMTP id d12so1316038lfv.11 for ; Thu, 01 Apr 2021 00:19:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RG0cIOeeDttNPxGbdwFSZXm9dJ/yfyeiln/lD1h5lxE=; b=r0OmChyRFo4jxEv+PNyZ49FZLxDeLvcffOLcE5d/GeVOloUVkHdsGJuy7qjuyPccY5 hXfOBOyPzTdSXpS9LwUwin9TXFddGBo7AEhfPzH7Lu+8+DSv2qwFdF7MYQ1cexYMTTLw XIakzQGhfdIJl8I8IA968hUyiyxkX7+Hv0VXFdHkFIXOFnvBPAa9mKyMvZ6qahLto/sp 8hhwr3bE+kxu0JqOYGX9pTACfKqfOdc82q6tfwK7o3T7sEeY9mVglorc06nW5OK0DZ9Y 7UnCZ9SxHmG2TrWIFj1qXxzKSZxuvQlNminbNd4bMT0RTvDlhBbfpUKmLmSZrBU/wrl8 XXEw== X-Gm-Message-State: AOAM532DIsNOKfU50UdkcRZOSg1EZG3OjJHuuUrZlLkVQ8vexsu0XhOP /YAMR9VznTzGHARGIm8CwiPfnk++o/Tf58CHKww= X-Received: by 2002:a05:6512:b26:: with SMTP id w38mr4529142lfu.152.1617261589487; Thu, 01 Apr 2021 00:19:49 -0700 (PDT) MIME-Version: 1.0 References: <20210401062424.991737-1-wanjiabing@vivo.com> In-Reply-To: <20210401062424.991737-1-wanjiabing@vivo.com> From: Namhyung Kim Date: Thu, 1 Apr 2021 16:19:38 +0900 Message-ID: Subject: Re: [PATCH] tools: perf: util: Remove duplicate struct declaration To: Wan Jiabing Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , linux-kernel , kael_w@yeah.net Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Thu, Apr 1, 2021 at 3:25 PM Wan Jiabing wrote: > > struct target is declared twice. One has been declared > at 21st line. Remove the duplicate. > > Signed-off-by: Wan Jiabing Acked-by: Namhyung Kim I think we can move all the forward declarations to the top (and sort them) as well. Thanks, Namhyung > --- > tools/perf/util/evsel.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h > index 6026487353dd..998e5b806696 100644 > --- a/tools/perf/util/evsel.h > +++ b/tools/perf/util/evsel.h > @@ -157,7 +157,6 @@ struct perf_missing_features { > extern struct perf_missing_features perf_missing_features; > > struct perf_cpu_map; > -struct target; > struct thread_map; > struct record_opts; > > -- > 2.25.1 >