Skip to content

remove unnecessary cast of void pointers

Stephen Hemminger dpdk-dev 1 version Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/11table: remove unnecessary void castlib/librte_table/rte_table_acl.c lib/librte_table/rte_table_array.c lib/librte_table/rte_table_hash_cuckoo.c +8 more+68 -690 replies
2/11kni: remove unnecessary cast of void pointerslib/librte_eal/linuxapp/kni/ethtool/igb/igb_ethtool.c lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_ethtool.c +1 more+8 -81 reply
3/11vhost: remove unnecessary cast of void pointerlib/librte_vhost/virtio_net.c+3 -30 replies
4/11port: remove unnecessary cast of void pointerslib/librte_port/rte_port_ethdev.c lib/librte_port/rte_port_fd.c lib/librte_port/rte_port_frag.c +5 more+83 -830 replies
5/11crypto: remove unnecessary cast of void pointerlib/librte_cryptodev/rte_cryptodev.c+2 -20 replies
6/11acl: remove unnecessary cast of void pointerlib/librte_acl/acl_bld.c+4 -40 replies
7/11eal: remove unnecessary cast of void pointerlib/librte_eal/bsdapp/eal/eal.c lib/librte_eal/linuxapp/eal/eal.c lib/librte_eal/linuxapp/eal/eal_memory.c+7 -70 replies
8/11net: remmove unnecessary cast of void pointerlib/librte_net/rte_net_crc.c+1 -10 replies
9/11ether: remove unnecessary cast of void pointerlib/librte_ether/rte_ethdev.c+1 -10 replies
10/11mempool: remove unnecessary cast of void pointerlib/librte_mempool/rte_mempool.c+1 -10 replies
11/11test: remove unnecessary cast of void pointertest/test-pipeline/pipeline_hash.c test/test/test_efd.c test/test/test_interrupts.c +5 more+10 -100 replies

Reviews trailers per patch

1 of 11 patches has a Reviewed-by or Acked-by.

PatchFerruh Yigit
1/11
2/11A-b
3/11
4/11
5/11
6/11
7/11
8/11
9/11
10/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/11] remove unnecessary cast of void pointers

This is a set patches inspired by a set of Linux kernel patches by simran singhal <[email protected]>

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(-)
Signature · 1 line
2.11.0