From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id F289745BD2; Fri, 25 Oct 2024 09:04:34 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D56C64028C; Fri, 25 Oct 2024 09:04:34 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id B97424026B for ; Fri, 25 Oct 2024 09:04:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1729839873; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wfeCMUpo6NLqV3pDbi46SkZo7Qk+XCptAS2CyJIMoUY=; b=c6P9sa3PJvL8ygZGDlMJuC4vNNPs6y3CYeXOGIVvq2APy1BA0IYGlSIp4tHQzNBzPMFgPw FdqHFob/E7aYmT0XpagxGquGyTYdxzoYb5m/iTjGaDP8MZJmhEFrNtLt/GYrDgAPioKDfm HZeZmzPpPKJzykSi/oK0tNHLbgHA7zk= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-517-_WiOt-61Mcau7qLxfCXM6g-1; Fri, 25 Oct 2024 03:04:30 -0400 X-MC-Unique: _WiOt-61Mcau7qLxfCXM6g-1 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 647791956088; Fri, 25 Oct 2024 07:04:28 +0000 (UTC) Received: from dmarchan.redhat.com (unknown [10.45.224.57]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 405021956088; Fri, 25 Oct 2024 07:04:25 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: thomas@monjalon.net, ferruh.yigit@amd.com, stephen@networkplumber.org, mattias.ronnblom@ericsson.com Subject: [PATCH v2 0/6] Clean up many __builtin_* in drivers. Date: Fri, 25 Oct 2024 09:04:17 +0200 Message-ID: <20241025070424.3916007-1-david.marchand@redhat.com> In-Reply-To: <20241024120535.2722316-1-david.marchand@redhat.com> References: <20241024120535.2722316-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Here is a series cleaning up most of uses of __builtin_* helpers in drivers when they have a direct replacement in EAL. checkpatch is extended to forbid new additions. -- David Marchand Changes since v1: - more fixes in crypto/openssl, David Marchand (6): devtools: handle multiple pattern for skipping files devtools: forbid use of builtin helpers common/dpaax: use prefetch macros crypto/openssl: fix 3DES-CTR with big endian CPUs drivers: use branch prediction macros drivers: use bitops API instead of compiler builtins devtools/check-forbidden-tokens.awk | 21 +++++++++++++----- devtools/checkpatches.sh | 7 +++--- drivers/bus/fslmc/qbman/include/compat.h | 6 ++--- drivers/common/dpaax/compat.h | 6 +++-- drivers/common/nfp/nfp_platform.h | 4 +++- drivers/crypto/openssl/rte_openssl_pmd.c | 28 ++++++++---------------- drivers/dma/hisilicon/hisi_dmadev.h | 3 ++- drivers/ml/cnxk/cn10k_ml_ocm.c | 7 +++--- drivers/net/bnxt/bnxt_rxtx_vec_neon.c | 4 ++-- drivers/net/bnxt/tf_ulp/ulp_flow_db.c | 6 +++-- drivers/net/bnxt/tf_ulp/ulp_gen_hash.c | 4 +++- drivers/net/bonding/rte_eth_bond_pmd.c | 3 ++- drivers/net/cpfl/cpfl_flow_engine_fxp.c | 5 ++++- drivers/net/enetfec/enet_ethdev.c | 5 +++-- drivers/net/enetfec/enet_ethdev.h | 6 ----- drivers/net/hns3/hns3_rxtx_vec_neon.h | 4 +++- drivers/net/i40e/i40e_rxtx_vec_neon.c | 4 +++- drivers/net/iavf/iavf_rxtx_vec_neon.c | 4 +++- drivers/net/mlx5/hws/mlx5dr_definer.c | 8 ++++--- drivers/net/mlx5/mlx5_flow_dv.c | 3 ++- drivers/net/mlx5/mlx5_rxtx_vec_neon.h | 12 +++++----- drivers/net/mlx5/mlx5_tx.c | 2 +- drivers/net/qede/base/bcm_osal.h | 4 +++- drivers/net/vmxnet3/base/vmxnet3_osdep.h | 4 +++- 24 files changed, 90 insertions(+), 70 deletions(-) -- 2.46.2