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 X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 72348C4742C for ; Fri, 6 Nov 2020 01:42:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F042C206FB for ; Fri, 6 Nov 2020 01:42:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="c79b9oN/" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732865AbgKFBmG (ORCPT ); Thu, 5 Nov 2020 20:42:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732746AbgKFBmF (ORCPT ); Thu, 5 Nov 2020 20:42:05 -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 E255CC0613CF for ; Thu, 5 Nov 2020 17:42:03 -0800 (PST) Received: by mail-pl1-x641.google.com with SMTP id k7so1680805plk.3 for ; Thu, 05 Nov 2020 17:42:03 -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=c79b9oN/WNGezaFCQs252hXWKLOCETdkPFR641WPu6PUCPRegRZ9rVd4rhAVakzaKx GFG/htKYcWs4B7UgXLlijBYtlGtvn2rKkrfYiiVn+0X9nhu59e6lI8NCXWUevXwnnQyj z4Lj17JkI0NTuPCMugfPzQNXigegqX6AkGxcT4B/57OqYIa1m+uZI4sSzvcHX6LkYtdV blszRRrSy48hpYZACa713dfOn/pv+qzT+ZYMuoHGCbl1E4UWHGJFOoXJDpb9AqzNndUs nMGp5+qyHRZAkCTzgGi34ciSywV6McMfGSOYBTsUXSR1MwfDcVvEbR9dnI38kAdPq59f 3GfQ== 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=CO/BxYnB8boWSzTFx95D+JYjdaPV2YIUsV3Qsn7uwMDV3F+yN35hCuh+WsrCZ3QStm 2MOvV+7JCEx624lcoTjyRaaw9t+hZDiLT6AhCJJFMhmp+kxEggtCXKyL34N8SwH9RCf9 WbCIP4ZTMewWe40Ud8FwbTFaoIv0dAsywXMiWbYw/RjnZrvjWQwo7HoN5P9pDt16YUs3 oPQaPyhrue8way2Je85ZoaBAaL/cM+9bP9adRqAcGIoTAB8Fqyg0ormELraNaPj+g73e VW9b/DLkLCJmmzeGWnjEzY/Xkul6oRT2as+YISLJtgRID/Av6mmuCzNHCxIuAn14sjx6 C9lA== X-Gm-Message-State: AOAM531+6aV9oV54JmikmsUIMtP8r83Bhh32unXOmO6jswd54YK9vEm8 /FrNEqo2p8sOdpywfVaHJIZmUA== X-Google-Smtp-Source: ABdhPJzlIpHGRY4zgQAcPC7xI0ChupFmpt5idkI520AlOKgn+a9/4dQibttH1gThaxAC1byd87qvLw== X-Received: by 2002:a17:902:8e8b:b029:d2:4276:1df0 with SMTP id bg11-20020a1709028e8bb02900d242761df0mr4715339plb.62.1604626923479; Thu, 05 Nov 2020 17:42:03 -0800 (PST) Received: from localhost ([2400:8904::f03c:91ff:fe8a:adf7]) by smtp.gmail.com with ESMTPSA id z11sm4190094pfk.52.2020.11.05.17.42.02 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Nov 2020 17:42:02 -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 , linux-kernel@vger.kernel.org Cc: Leo Yan Subject: [PATCH v7 01/22] perf arm-spe: Include bitops.h for BIT() macro Date: Fri, 6 Nov 2020 09:41:15 +0800 Message-Id: <20201106014136.14103-2-leo.yan@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201106014136.14103-1-leo.yan@linaro.org> References: <20201106014136.14103-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