Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2131302pxv; Sun, 11 Jul 2021 03:43:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZ1aDgMk/iUKXiOU4j3fNduLR9UEGLVD2wQvEXmXws91A2gBusXySjcpBeV9femh+py2fU X-Received: by 2002:a05:6402:204:: with SMTP id t4mr58557957edv.34.1626000224637; Sun, 11 Jul 2021 03:43:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626000224; cv=none; d=google.com; s=arc-20160816; b=P+GJrpCFjAqWIAH1pSxnBHW91PQdeKRpzx8vuMBTmtx+enertfoLRX7mQiXzykDvK/ shMmp6cOdVUvaIOu9tSZY2ZOmDShXU4mA6GVhbD8AtjiIMKFNqhmSx8b0bFPURUrnf3v JTghPgKkX0Kft6EMTuz+JrwoW8rXIZaXvqImke1euiYqvvlWG8wJULMyEy6n5yPgucYZ yZC4EyhUTcdUhJl+DFP7GGEwbH4ITy7YwVwka6oKRTRgP9+YI+I8WgTJPTBamJI5QKoa sbML0ETa920mW5Ri9GqR/qB+FRdvJ+qw548ZECysSFnhbctttP0KJylQT8U0aIH9WrfU X1MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tg4kPboEv8a50CVYTi4+9WCNhiUYVPJPPco+6cKmUZQ=; b=ABKguVZzvyQWYM+kYbe3eMyP5eOaWSpa4BTqYwYXKfQPxP8Pudkzgw2JPKHnKET0pe s9a0K5LbsukbR6LA0N5sNxw3yz+1aaAfmKs6aoyYDhRcY0bVnXS3ThrUjsVRjSG9V1pN htH5OrcfZKfo1d7NiuIrVg3nxkuyLuyIIALWLlr1TpSjTyblW0SzSNXTM1K/N3ltLi/n fKld51hQ5oLkWKc+GvT7P5ZGOg3RgB1uryO8e8OPzTE/7C4cA/v0TF9w7b87iPer0/V9 zjLSK1MiMCChPUm41drhBdERlGHJDXGr1oSV5N6PkXxGdzW759ScMkeA6f+q8GsGexv1 uifw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HBfB6xTh; 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 zp23si13914079ejb.360.2021.07.11.03.43.22; Sun, 11 Jul 2021 03:43:44 -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=@linaro.org header.s=google header.b=HBfB6xTh; 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 S232638AbhGKKob (ORCPT + 99 others); Sun, 11 Jul 2021 06:44:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232544AbhGKKo0 (ORCPT ); Sun, 11 Jul 2021 06:44:26 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C422C0613E8 for ; Sun, 11 Jul 2021 03:41:40 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id a14so7491632pls.4 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=fv4NmPaEVoFv0oAE0mwGJh+d2ci55UHseTg6vmI1s/FT+nGjzRUD8cZRq76u2tJ57d 6q4Oj8cVaHBXT7P1x7T0lM5vktKipBmabjRbKciSqjwDQlf2HXMc5XC8K9a5daWCZYwi 86ERXJMsst7l/1NSrx8Smb8Y187MgCDfmS9SJVF1NGg9RiprGkRU7eJHrs2IV24KNVFR 3hX3DcjzxCh7iSsB43MdSMypB9XwRiXB7Wykb+NIdVh47qychz2dcdEFfjv6U8hlh8al YH3JKygiqPRoYC6C9q+gcRAXrIsm09chKR2rcDmUT1tyIREO4M2rQCWl9XfZxRFfHe/k DUnw== X-Gm-Message-State: AOAM531zac91z42moB4p0B7rVKW6ENXroHkpZ7jDA4JmoymvdvYxU8wd CgVqcsrkpWoSij9WtxHKTk8TjQ== 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-kernel@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