From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 00/11] remove unnecessary cast of void pointers Date: Sat, 08 Apr 2017 21:42:11 +0200 Message-ID: <9945602.81JtpDgpo8@xps13> References: <20170407174457.4180-1-stephen@networkplumber.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Stephen Hemminger Return-path: Received: from mail-wr0-f179.google.com (mail-wr0-f179.google.com [209.85.128.179]) by dpdk.org (Postfix) with ESMTP id 1C2702BB0 for ; Sat, 8 Apr 2017 21:42:12 +0200 (CEST) Received: by mail-wr0-f179.google.com with SMTP id c55so53299051wrc.3 for ; Sat, 08 Apr 2017 12:42:12 -0700 (PDT) In-Reply-To: <20170407174457.4180-1-stephen@networkplumber.org> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2017-04-07 13:44, Stephen Hemminger: > 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 > ) Please, could you add this script in devtools/cocci/?