Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp151297pxb; Tue, 10 Nov 2020 23:25:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJyoGf5aUkFbP+yyIxdX/h3RRysVAUimYUfJoVti8BWCCzueFJsyq2oRu6rwLzfLulOvD2Jf X-Received: by 2002:a17:906:f207:: with SMTP id gt7mr24465143ejb.293.1605079523953; Tue, 10 Nov 2020 23:25:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605079523; cv=none; d=google.com; s=arc-20160816; b=lw5dUmFDp74QLHmnuTbwJmv5tUXGmXCR2H+RWaIn9kziZI3WBXgxjH+7fA/JJ9Oqdz 2JP50WfIULIlAiX2AHbUNHihj4A7XrHvLXv9lv3iKxGUOXyjJW3lvYemNqCcOYOmG2+C /b6GJw4YWiWIvohaEgqE+EYCWtMpTtXdD0GWLfJ+u1RHqeK4Q7Z8T1BuJmzifDB+4NbJ qVJ8bYfvAnEmfhTJNCxEoMU3fRFQrDm2HmnnE6eRkVm7is9gP0EcnAdzC5e8UJa+/T3a Acnh/qs2uI4fVqaWmO2gL72tW0jLbJw8xYVBre3eMLCb0a2mR+NRbLCYe54CyYZTiSiS YOIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=apqneqUKXXFA0ko61Am5+wWNWyct8BORdlCdgpMaKE0=; b=YnchHbA6zQu694dxAGB0whs3leOS3IbBLG4Sfd7ynS+Co5Zv28oEh5curh9V5lzDXL khv9oNIf3d3Ak2KgM64jyMq987ZdYEoWJDIuTNJ5mQaXDIRG2mk7Zuchd8jgvNqC4hw/ kiy4QA9+TpghKgmqNKSdOrFzYJqSnbJsMj8R+xkoexmM7TVkRZcZDlm3NOJgZLAgpMzP WYFvI4/RhISU7+UfKdLogXUCcdoY+IU22Ujov0XlZWxFJd+4qNO7z7/p4QGVlHRtpKT8 gpNhyS44e/nQQEo3MPCxJQaQ73ocusap7a+8gLfFoqZYQo6JhXe1FQPBDIlMwrdsHPqP UOuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sXdfpEYq; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n19si1026465edv.187.2020.11.10.23.25.00; Tue, 10 Nov 2020 23:25:23 -0800 (PST) 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=@linaro.org header.s=google header.b=sXdfpEYq; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726629AbgKKHWa (ORCPT + 99 others); Wed, 11 Nov 2020 02:22:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726166AbgKKHMZ (ORCPT ); Wed, 11 Nov 2020 02:12:25 -0500 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3199C0613D4 for ; Tue, 10 Nov 2020 23:12:23 -0800 (PST) Received: by mail-pl1-x641.google.com with SMTP id f21so513072plr.5 for ; Tue, 10 Nov 2020 23:12:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=apqneqUKXXFA0ko61Am5+wWNWyct8BORdlCdgpMaKE0=; b=sXdfpEYqCQ3hU1qWNUD8NBph7n4c/GTNllh7qtX4/lBy3+JqY1czZ2KwX88uzT0uEr Yw29v5OIAQuGvD4ARGkoX7FoQXRENUz8+X9aN8nHKHuzJRHCGie3xmtDY8i6/bKsC3rM 9vCRNmXAKV/iHawOpi71BV9Tdodhn4sQOFWIHxZvNj0kDAcoSJZXdd2ZwxugCmouI7gF bniNbant1qT4OFl83fbNLSpmx0KJ+dPePbFanxXk6tDyP7q/P08LuDdiG3KMnPzCT3KI keoC45N8H0ab2AGLxZBLAkSxOSsUrzfY0/bZ++cvfoNXs7n/B5m7bIZydkkg0VB9nkfg c8PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=apqneqUKXXFA0ko61Am5+wWNWyct8BORdlCdgpMaKE0=; b=saiXB+ZcL5wT99SUPAf6unSu4+HmCPNhC6SnoykfZUZ62h+alItkgcAjtdCksAYcLx RQBVTmyFo1QfstrJRHjwbV/D5GFB6vBtyqr3yqiPZSVqsBghQkAdIxA47k87ubQ6j/6q o4mLBAJD36cPX6FnkoQWK2LEmd1HSIHmK8bf8dpWndrzm1DZgOHRYEYLFclxqU7oALxv AIC3ItWZC6bSMZhCqH2YsEFFXQtpDKuyttF/vj888jGtmo3XCN0hEp0VwOZedp1uo62T ABNMarwFp+Tk+ybl0SDdtH2Kce67WQH87SH7fVZwdLJvNHjsqVEImHIgP5F0NqhoROY4 pUjQ== X-Gm-Message-State: AOAM531XTCyTv8v9XkxLK4XoEGZeZECVfeSkKfeE3CGjc+S+09+V2INx ExLfGrGx+9pSCWEPX8PTXQDsMg== X-Received: by 2002:a17:90a:6487:: with SMTP id h7mr2530637pjj.28.1605078743546; Tue, 10 Nov 2020 23:12:23 -0800 (PST) Received: from localhost ([45.137.216.7]) by smtp.gmail.com with ESMTPSA id d9sm1292141pfn.191.2020.11.10.23.12.22 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Nov 2020 23:12:23 -0800 (PST) From: Leo Yan To: Arnaldo Carvalho de Melo , Andre Przywara , Dave Martin , James Clark , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Al Grant , Wei Li , John Garry , Will Deacon , Mathieu Poirier , linux-kernel@vger.kernel.org Cc: Leo Yan Subject: [PATCH v8 01/22] perf arm-spe: Include bitops.h for BIT() macro Date: Wed, 11 Nov 2020 15:11:28 +0800 Message-Id: <20201111071149.815-2-leo.yan@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201111071149.815-1-leo.yan@linaro.org> References: <20201111071149.815-1-leo.yan@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Include header linux/bitops.h, directly use its BIT() macro and remove the self defined macros. Signed-off-by: Leo Yan Reviewed-by: Andre Przywara --- tools/perf/util/arm-spe-decoder/arm-spe-decoder.c | 5 +---- tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/tools/perf/util/arm-spe-decoder/arm-spe-decoder.c b/tools/perf/util/arm-spe-decoder/arm-spe-decoder.c index 93e063f22be5..cc18a1e8c212 100644 --- a/tools/perf/util/arm-spe-decoder/arm-spe-decoder.c +++ b/tools/perf/util/arm-spe-decoder/arm-spe-decoder.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include @@ -21,10 +22,6 @@ #include "arm-spe-decoder.h" -#ifndef BIT -#define BIT(n) (1UL << (n)) -#endif - static u64 arm_spe_calc_ip(int index, u64 payload) { u8 *addr = (u8 *)&payload; diff --git a/tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c b/tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c index b94001b756c7..46ddb53a6457 100644 --- a/tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c +++ b/tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c @@ -8,11 +8,10 @@ #include #include #include +#include #include "arm-spe-pkt-decoder.h" -#define BIT(n) (1ULL << (n)) - #define NS_FLAG BIT(63) #define EL_FLAG (BIT(62) | BIT(61)) -- 2.17.1