Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp279790imu; Wed, 2 Jan 2019 19:54:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN5O9MphZBdZfLi9OdhK6XzBKpTt4rW2ALm9CuX5M4zd82gHmOy8zonnMzVGU8bc4MgH0tq1 X-Received: by 2002:a63:d846:: with SMTP id k6mr16036467pgj.251.1546487693850; Wed, 02 Jan 2019 19:54:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546487693; cv=none; d=google.com; s=arc-20160816; b=YSTXZFn5YzwZQIFEds1OWG5Ej+9L1tWBfX4aTPdKSws8R5LDrXjT9QEldKJL4Bc0FJ tB+/jxmaUcfKt42ZaDhukN4dJBWfyryXMy67aogCXbvlQ63DhVIZoMoirY3GrkEYEFLI Cy3V019djiHIMOL/v7TJ6PeQxllGA3tFURK0i+kjRLM3XrxHGjz5vWl8RbU/txe082GB Cyw2SPQlVN2Mzshj9E0loY6vOzqxRpS3gWg5BmL7Pt1ncYlYZF+xWbsyFgrE5vUjrTSA d6meg9wn1JYm/YJc3sQIYA8Jks6xKZPLN4dzgs6jocuB5s53z8t0jZHY2gwiyXvEpApG GqBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3WhVCQhZOtORYuh+/dnVCObSLZZhAbXOiiQqWuucFIU=; b=SFS19b+F+GQomu10IAMLZSoQeK9ABvCa89/C++mKY5CXd1jWMYZfnYbuYId2X+7x7I //bE/qWylMMJhkl2O3VabRUjwX+7ARdJ7Lg0EmVForNr43XOcXREfEBk3TGDhp63fFI/ EC+954pj0xCDUq01tDYf3y6z65WJKdSewQuf4Sm2wB4WwDBZBmgjHikz5gsAcXCnawkJ hu1SQ0fV1QWaSdaIkcWQhibw+1j+QVD++luMdGB3z8Ql4xTCJQAtmGfzTKyKyOJ706+u Fx/bdvwwVPVQTcv2QNdZAs5w6YcdOnAOna5QAgEw8f7OQwTO1lS4a90YExP0OGLsy12Q YCFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=YrkLVVSZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t13si5590890pgm.175.2019.01.02.19.54.11; Wed, 02 Jan 2019 19:54:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=YrkLVVSZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729930AbfABWsk (ORCPT + 99 others); Wed, 2 Jan 2019 17:48:40 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:32902 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726875AbfABWsk (ORCPT ); Wed, 2 Jan 2019 17:48:40 -0500 Received: by mail-pf1-f194.google.com with SMTP id c123so15797198pfb.0 for ; Wed, 02 Jan 2019 14:48:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3WhVCQhZOtORYuh+/dnVCObSLZZhAbXOiiQqWuucFIU=; b=YrkLVVSZkUSQWwPRQ9+2McOfiItzA4uSkOYIF8N2SW14nXeftAP6G3HizJDf/in5+P nmu72Dr5tuh3rGvn7YpIByLAVRdrpiKLmfz/ec/tmxVwoJVh1I9CfCgaF/dLkMyyoZPd mYu1tft6s7JJUwhuVaRL+g/vJQRIGzW8PyyqEkjTA1Gp9eJKLih5P21Igj/JksHmLAx5 rmb55EEs1jnO1peoZE9d5F/m1SQhoeZFGTAwpj46iPboxViEIMWbD21i3g2G7IKt6quP vKJ5yg5NU17PuYX0G+RtFYb1WR1BKbmqqMxgGzUFcazTtVUYbagJ1OXGRSqlV8WE43P9 w63w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=3WhVCQhZOtORYuh+/dnVCObSLZZhAbXOiiQqWuucFIU=; b=e1ZryUfGU+Y9HzBTX+XdkkyJKUpVwL99hnbtS+h5BRdvuYcf6VSDtHnZQb0pOp1Xri R5j6ggdwiE9aKe7xJyXkB1LifNVGRPOMXTdKwwT/g81ES48x8/3zaiSTNgNehSY2u7gT XWGujm/H86WUut69Ja4ySE8dgFRXP5Z/DaldIUGxJK07tCMnT2ssEjq6ZkdK1+Zi1yqj TebjVgxTskO/xhCzKD8sYI0mZKrO5SmC3v1q2EOT4HMZ2oVnEpLpyfljoghon+7Fi4st mY3pk2pca0QGP+uXrtWYmiTwXO4RdoT7SyeVQGDm5a339oxomYgICjjggvYg53/G4SKn S6Ow== X-Gm-Message-State: AA+aEWY+nWYa3qixGuMtsX7pB6MtKx+jbENircDpfn+DfWvCrFM4pG29 SiWvF7xbBwfdV5eatkrHPoeQIw== X-Received: by 2002:a62:6408:: with SMTP id y8mr45745510pfb.202.1546469319515; Wed, 02 Jan 2019 14:48:39 -0800 (PST) Received: from ziepe.ca (S010614cc2056d97f.ed.shawcable.net. [174.3.196.123]) by smtp.gmail.com with ESMTPSA id u137sm94810084pfc.140.2019.01.02.14.48.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 Jan 2019 14:48:38 -0800 (PST) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1gepJV-0007Ie-HN; Wed, 02 Jan 2019 15:48:37 -0700 Date: Wed, 2 Jan 2019 15:48:37 -0700 From: Jason Gunthorpe To: Julia Lawall Cc: Doug Ledford , kernel-janitors@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 06/20] IB/ipoib: drop useless LIST_HEAD Message-ID: <20190102224837.GA28029@ziepe.ca> References: <1545555435-24576-1-git-send-email-Julia.Lawall@lip6.fr> <1545555435-24576-7-git-send-email-Julia.Lawall@lip6.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1545555435-24576-7-git-send-email-Julia.Lawall@lip6.fr> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 23, 2018 at 09:57:01AM +0100, Julia Lawall wrote: > Drop LIST_HEAD where the variable it declares is never used. > > Commit 31c02e215700 ("IPoIB: Avoid using stale last_send counter > when reaping AHs") removed the uses, but not the declaration. > > The semantic patch that fixes this problem is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > identifier x; > @@ > - LIST_HEAD(x); > ... when != x > // > > Fixes: 31c02e215700 ("IPoIB: Avoid using stale last_send counter when reaping AHs") > Signed-off-by: Julia Lawall > Reviewed-by: Leon Romanovsky > --- > Successfully 0-day tested on 151 configurations. > > drivers/infiniband/ulp/ipoib/ipoib_ib.c | 1 - > 1 file changed, 1 deletion(-) Applied to rdma for-next thanks Jason