From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f172.google.com (mail-io0-f172.google.com [209.85.223.172]) by dpdk.org (Postfix) with ESMTP id 4DDC5691A for ; Fri, 7 Apr 2017 19:45:02 +0200 (CEST) Received: by mail-io0-f172.google.com with SMTP id b140so54245287iof.1 for ; Fri, 07 Apr 2017 10:45:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=2od6+qzP/zs4JzmBd4bxmZTPyU6hlto4osjI6yBsXT0=; b=zFyHa/qMIaRaapKiVGKEK2euiWMfA3Yg2pyUwfDnwV/LP3TMiw9zWlfd1Zq9tVPxLQ MF7krdHjAfYZD0oQ56NBVpoQqau6YvlW4jgKtsgmz3GVnuw31jdLB8IfSpJdjFndd46a qWsO69C/9KfsqLjnkvLx5+EKGn+tfU9tmtK31O7gcVIwPwstzWtHscrbeRc+c6HKOKaF imPZXutcGH/aWQ6QdWmEauAnAqqfurjdjSf3HSVmX3Mb4s6iDhEzOvlM7whLDFX5bJY3 peWTmymX8hu5M3u1nwsJAKjFjOL4WbO4AlIDrlVUXj6PMRpoRpGfohJDSHmdykbrcuf5 6tEA== 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; bh=2od6+qzP/zs4JzmBd4bxmZTPyU6hlto4osjI6yBsXT0=; b=Ygw3WewrKGl8N/HDvVVu7Um1F6pLcxh1F/wb4haC7CfBb/cGdLdMJyldf5AkERlzoc 1KnEmxoHkPUD9bSh7DY9pcJtoNzXtbx3NdR2orvMQ60kBwcBQaCwb6xeDLiVN9643Sy+ T7pvhi1CqtjVt703hc6fsKbzrIHluz14ncjv6+L3c+PaDIDlBSF0qxgHApFOJ/pNJyPP Ijgdel4b6dRjPnDQQcZWIOZ+TrL6OdJ0NjBX1sEggzUknQxe+nWhrSROUSL7WToT/x91 2nLPeu6Q0/FXYSDEmhjk0deT5FXqBKG7TAV/jPr3o+zKnC5qc6kphqYkksr5CqHtVYv6 f15w== X-Gm-Message-State: AFeK/H1avp46JlaK/iZeeXNZaWhAruPKAx6XzH31uOX/YluLIDod1gottRbBKdSluI6QHQ== X-Received: by 10.107.59.149 with SMTP id i143mr42514270ioa.196.1491587101316; Fri, 07 Apr 2017 10:45:01 -0700 (PDT) Received: from plumbers-lap.home.lan ([66.171.166.114]) by smtp.gmail.com with ESMTPSA id s40sm4649675ite.18.2017.04.07.10.45.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Apr 2017 10:45:00 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Fri, 7 Apr 2017 13:44:46 -0400 Message-Id: <20170407174457.4180-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH 00/11] remove unnecessary cast of void pointers X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2017 17:45:02 -0000 This is a set patches inspired by a set of Linux kernel patches by simran singhal The following Coccinelle script was used to detect this: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T*)x)->f | - (T*) e ) Stephen Hemminger (11): table: remove unnecessary void cast kni: remove unnecessary cast of void pointers vhost: remove unnecessary cast of void pointer port: remove unnecessary cast of void pointers crypto: remove unnecessary cast of void pointer acl: remove unnecessary cast of void pointer eal: remove unnecessary cast of void pointer net: remmove unnecessary cast of void pointer ether: remove unnecessary cast of void pointer mempool: remove unnecessary cast of void pointer test: remove unnecessary cast of void pointer lib/librte_acl/acl_bld.c | 8 ++--- lib/librte_cryptodev/rte_cryptodev.c | 4 +-- lib/librte_eal/bsdapp/eal/eal.c | 4 +-- lib/librte_eal/linuxapp/eal/eal.c | 2 +- lib/librte_eal/linuxapp/eal/eal_memory.c | 8 ++--- .../linuxapp/kni/ethtool/igb/igb_ethtool.c | 2 +- lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c | 8 ++--- .../linuxapp/kni/ethtool/ixgbe/ixgbe_ethtool.c | 4 +-- lib/librte_eal/linuxapp/kni/kni_misc.c | 2 +- lib/librte_ether/rte_ethdev.c | 2 +- lib/librte_mempool/rte_mempool.c | 2 +- lib/librte_net/rte_net_crc.c | 2 +- lib/librte_port/rte_port_ethdev.c | 26 +++++++------- lib/librte_port/rte_port_fd.c | 26 +++++++------- lib/librte_port/rte_port_frag.c | 6 ++-- lib/librte_port/rte_port_kni.c | 26 +++++++------- lib/librte_port/rte_port_ras.c | 12 +++---- lib/librte_port/rte_port_ring.c | 40 +++++++++++----------- lib/librte_port/rte_port_sched.c | 10 +++--- lib/librte_port/rte_port_source_sink.c | 20 +++++------ lib/librte_table/rte_table_acl.c | 24 ++++++------- lib/librte_table/rte_table_array.c | 11 +++--- lib/librte_table/rte_table_hash_cuckoo.c | 8 ++--- lib/librte_table/rte_table_hash_ext.c | 10 +++--- lib/librte_table/rte_table_hash_key16.c | 14 ++++---- lib/librte_table/rte_table_hash_key32.c | 16 ++++----- lib/librte_table/rte_table_hash_key8.c | 14 ++++---- lib/librte_table/rte_table_hash_lru.c | 10 +++--- lib/librte_table/rte_table_lpm.c | 14 ++++---- lib/librte_table/rte_table_lpm_ipv6.c | 14 ++++---- lib/librte_table/rte_table_stub.c | 2 +- lib/librte_vhost/virtio_net.c | 6 ++-- test/test-pipeline/pipeline_hash.c | 2 +- test/test/test_efd.c | 2 +- test/test/test_interrupts.c | 4 +-- test/test/test_mbuf.c | 2 +- test/test/test_table.c | 2 +- test/test/test_table_acl.c | 2 +- test/test/test_table_pipeline.c | 2 +- test/test/virtual_pmd.c | 4 +-- 40 files changed, 188 insertions(+), 189 deletions(-) -- 2.11.0