Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2828165imu; Sun, 23 Dec 2018 08:41:49 -0800 (PST) X-Google-Smtp-Source: ALg8bN7m7P6o9FCq53Shhp1vth4uXZdJ2Xb11M6m1rRTFpf+OsMvK76Cq7etafYYtnxrkHkh5oGo X-Received: by 2002:a17:902:82c2:: with SMTP id u2mr10161308plz.110.1545583309480; Sun, 23 Dec 2018 08:41:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545583309; cv=none; d=google.com; s=arc-20160816; b=sfyujj6UXBI9+fwy+MG5UGF3nkM729d4AgXixbJDtR5YgTEI7lPpKCQmUZi3abrz5S ulkz+O2EyhCGLNe9Q8ea0Kt8I3Fxr0w0dD6y1tyIfme6a//QyxVwqZvRtUT8n+eTrARC WPBVCCc+9tFxv2ufM2lvQscZnmoJEA6d4qBY63JnU2aj4oGawWSVslJD5oujXfRVD2xa wGJDMQP86x4kxfmbuJJhc5LWGssWN5VK6ZDp1lybgXPD1sB3ykpMPK4pyOD+/U3LtFNO lxkDrF4QB87VImqYJhcJT1mFcTxgLb7aMZObIf202QlHYEDKbVJMSLjsiZuJct+WuHVo DllA== 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=Vg4tvqmaZz1RbTRWV/ZAlcHJvJ70Nhc67apEIw0/53c=; b=ZCAHHa/CgGoXDzQze1C6d+0aMgq5AfBcky2gyJwOcPzNODdVpYFxXzBKxXtIbLoAnm Beqtm0OIzr9wMv4neH+zrnnvGJdHf9RdhqV8xQ6O5f4LBHX3RlK9igBWHNUDI/SXOQW+ Xc/DZrGD+yZ/xTgZ+q9YFU5/SC4LYRwZHl9TtPnprG55tRv17BR7SzQDT0LXEOkfs/DC aveThxFagDovdXd84M9ntQbyWtaVGdTqjCz/+Kg61VRv96o7rKQXK7y+57IDBdVdQ0GW TkNVj6L9636kYfCl06uRzD2X/6kYd9Nxx6Eave1HFwRCaZMQXh3w7LpL/NI9Wns8Lx5l faNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RBD+2BBE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 32si8243779plg.29.2018.12.23.08.41.34; Sun, 23 Dec 2018 08:41:49 -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=@kernel.org header.s=default header.b=RBD+2BBE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727774AbeLWJlV (ORCPT + 99 others); Sun, 23 Dec 2018 04:41:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:33686 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726757AbeLWJlV (ORCPT ); Sun, 23 Dec 2018 04:41:21 -0500 Received: from localhost (unknown [193.47.165.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B0787218FD; Sun, 23 Dec 2018 09:41:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545558080; bh=gXFE0VqoS42SeGgZnWvW/b7G26oOyeM6vd6SqERabyM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RBD+2BBElhe4DHzKE78BK18iCTWFE1hE2Wa/I/pp0VPYdQEEoLyzCBxUiylj7Ur2t d8cAVeXrs6vSMokb7Yw/3GNMHh2xCSbDOREEMbdlSUcXyz7BCuKL3w0nBtWEXuisC7 6uk9ug54+NVON3VDMJr6jwcfC2n5sP346ybKhvVM= Date: Sun, 23 Dec 2018 11:41:17 +0200 From: Leon Romanovsky To: Julia Lawall Cc: Doug Ledford , kernel-janitors@vger.kernel.org, Jason Gunthorpe , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 06/20] IB/ipoib: drop useless LIST_HEAD Message-ID: <20181223094117.GQ3940@mtr-leonro.mtl.com> 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: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6eUvXotnMb6+obQB" Content-Disposition: inline In-Reply-To: <1545555435-24576-7-git-send-email-Julia.Lawall@lip6.fr> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --6eUvXotnMb6+obQB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 > Thanks, Reviewed-by: Leon Romanovsky --6eUvXotnMb6+obQB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBAgAGBQJcH1g9AAoJEORje4g2clinbiAP/09GK5uVeUsgTo9XjVHeaW++ hsT8BlZjsZp1bLcOXWGNQHqPNtUDdxDiOp5vdnsTN9cayNUmqbWV1+Fd+NIkiXO6 CL308qmZc7Rh+lc9Kzx89P06KQ8naRa98MkC+OK2FwDRCi0iM7kfhhU76SHu5m4a 9Xfrsqq5V5tUdIVIZnaKcKF9cOH9yKQ84GLxhR5KJkTipDvp4rttTTSBDJwr2rGR vZxME3gSRLN67jpugpYavRNeklUcZ/pVIdlV1PnRhHN1CHAc4oDFj7hCBCJ8eR0D 0kzeTSKOPZn+MpkFZWbM67d3IT8gc2GFML1cdNDCeD8zL0MWW8plkrpojgWlC+re LAxETG6EdnIV0JFU7X88tK1tcBOHtTixkD1AMONuABATglQoYMAHhZvuhDiVZU4e 3QrkmMjPeWoJW0ZoiGDUcprWJl3qkflHTg3M06q+FuCMOzvvSvJUYEBFd4/Gut+L S8HUOhcDw/CDHhjorLAwWEkifoSSYEFJvWQEXmn6OjvCd3SLUdjttsZ5ZLVnJlYf ANM09Uh966ymj3uno+m4qcsFzkX9yYfLFTnhnmPf8ZJoinKdC6ztLd7eo7Aubk1Q IgkAPX+a0NI0A9urHY1s91AXIcJs9CKQVh5xvemhTTEm4B6yQjJh1jcNRwnZod/x jSGxgzvyFRWO/kb0vvRa =hj/d -----END PGP SIGNATURE----- --6eUvXotnMb6+obQB--