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=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,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 1B289C07E96 for ; Sun, 11 Jul 2021 10:41:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0335761205 for ; Sun, 11 Jul 2021 10:41:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232507AbhGKKoa (ORCPT ); Sun, 11 Jul 2021 06:44:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232525AbhGKKo0 (ORCPT ); Sun, 11 Jul 2021 06:44:26 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7403AC0613E5 for ; Sun, 11 Jul 2021 03:41:40 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id u3so2363997plf.5 for ; Sun, 11 Jul 2021 03:41:40 -0700 (PDT) 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 :mime-version:content-transfer-encoding; bh=tg4kPboEv8a50CVYTi4+9WCNhiUYVPJPPco+6cKmUZQ=; b=HBfB6xTheoC7W0jGr+IND8Dc+xf45Pl4OcIdBANA/8KAHA40loCVDsuKThFnuNVIC7 pA/NI+MDKq0puehth94k8+z1drCCyeoV1PmoRIyjWyWvj9nvm6GXUcW6fDpJighzoIlT 8DNU7dA3WPIM53WaZJ1WKak++KVGOOxwkUAXcmi7TFuFQF3/mbU5iUrYg25rx2h4R4Vr flb/MSUKIaa0ViTcqMILHNZG6Kt3yd3xu7Y7PtF3RfIDN4X4wp9r7TJSmtTz+SS7v5j5 U+FdXE3TVXoaJ7t+b9WQebJgHR1J8YvydRO071Ht0duDxCxp2Kp57hz4UUuvTQcEAA9A Wm+w== 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:mime-version:content-transfer-encoding; bh=tg4kPboEv8a50CVYTi4+9WCNhiUYVPJPPco+6cKmUZQ=; b=ASOl8puAxk07Skr3bDfF9RED4+Mn3TeDUoVBpV6bkSwAGrLbSG2SKyEUAeD3VUOmNd Mbc1hHN2Tyi1yMGVeDZ+CufEO2LtkPFDNG3xEKghiZ4/tL/K/k6LbkYThJzSjd6zAksd w6LslQzUik/mZUbRlT/4s990tTYlZD135y8vZNAtgBajxiY7NxlrXmExM4sctv4Lr50v z38vrZ2DzpbMdOP+zcDSmQ4meiO96GPY+iRCJDWr0V16D6McqQbeP6/5ZVCdfY4HgHmv Z15YtM2Yps8Lfg5PwJrVp3bps39X4n4x7LJ6dCzJmAwdTmU6ROq5h8ysrRDuCuK/284W w+wg== X-Gm-Message-State: AOAM533BqGY10W48TI7SQAfePRIuFIk5MKraubhAue6E3Xdxfi5tCTfe L3cJ/cCbcZPK4EZPAkvmWz3DAA== X-Google-Smtp-Source: ABdhPJyFP2IA4WrbAagQhrSQ1fhtt8nGm2nPWr+r4ifwYH2PuGscAo8Lee8kFXCZKI3R9atYNv+UiA== X-Received: by 2002:a17:902:8d98:b029:129:18e5:8c31 with SMTP id v24-20020a1709028d98b029012918e58c31mr38737450plo.3.1626000100000; Sun, 11 Jul 2021 03:41:40 -0700 (PDT) Received: from localhost ([103.127.241.250]) by smtp.gmail.com with ESMTPSA id c136sm12182066pfc.201.2021.07.11.03.41.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jul 2021 03:41:39 -0700 (PDT) From: Leo Yan To: Arnaldo Carvalho de Melo , Adrian Hunter , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Thomas Gleixner , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Mathieu Poirier , Suzuki K Poulose , Mike Leach , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org Cc: Leo Yan Subject: [PATCH v4 08/11] perf: Cleanup for HAVE_SYNC_COMPARE_AND_SWAP_SUPPORT Date: Sun, 11 Jul 2021 18:41:02 +0800 Message-Id: <20210711104105.505728-9-leo.yan@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210711104105.505728-1-leo.yan@linaro.org> References: <20210711104105.505728-1-leo.yan@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-perf-users@vger.kernel.org Since the __sync functions have been dropped, This patch removes unused build and checking for HAVE_SYNC_COMPARE_AND_SWAP_SUPPORT in perf tool. Signed-off-by: Leo Yan --- tools/perf/Makefile.config | 4 ---- tools/perf/util/auxtrace.c | 5 ----- 2 files changed, 9 deletions(-) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index eb8e487ef90b..4a0d9a6defc7 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -349,10 +349,6 @@ CXXFLAGS += $(INC_FLAGS) LIBPERF_CFLAGS := $(CORE_CFLAGS) $(EXTRA_CFLAGS) -ifeq ($(feature-sync-compare-and-swap), 1) - CFLAGS += -DHAVE_SYNC_COMPARE_AND_SWAP_SUPPORT -endif - ifeq ($(feature-pthread-attr-setaffinity-np), 1) CFLAGS += -DHAVE_PTHREAD_ATTR_SETAFFINITY_NP endif diff --git a/tools/perf/util/auxtrace.c b/tools/perf/util/auxtrace.c index 7958e17229ea..6a63be8b2430 100644 --- a/tools/perf/util/auxtrace.c +++ b/tools/perf/util/auxtrace.c @@ -130,11 +130,6 @@ int auxtrace_mmap__mmap(struct auxtrace_mmap *mm, return 0; } -#if BITS_PER_LONG != 64 && !defined(HAVE_SYNC_COMPARE_AND_SWAP_SUPPORT) - pr_err("Cannot use AUX area tracing mmaps\n"); - return -1; -#endif - pc->aux_offset = mp->offset; pc->aux_size = mp->len; -- 2.25.1