Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758666AbbFAFpe (ORCPT ); Mon, 1 Jun 2015 01:45:34 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:45718 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751158AbbFAFp0 (ORCPT ); Mon, 1 Jun 2015 01:45:26 -0400 Date: Sun, 31 May 2015 22:26:32 -0700 (PDT) Message-Id: <20150531.222632.735641093507183502.davem@davemloft.net> To: vthakkar1994@gmail.com Cc: konrad.wilk@oracle.com, boris.ostrovsky@oracle.com, david.vrabel@citrix.com, xen-devel@lists.xenproject.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, julia.lawall@lip6.fr Subject: Re: [PATCH] xen-netfront: Use setup_timer From: David Miller In-Reply-To: <20150601045837.GA6448@vaishali-Ideapad-Z570> References: <20150601045837.GA6448@vaishali-Ideapad-Z570> X-Mailer: Mew version 6.6 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sun, 31 May 2015 22:45:26 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 763 Lines: 26 From: Vaishali Thakkar Date: Mon, 1 Jun 2015 10:28:37 +0530 > Use the timer API function setup_timer instead of structure field > assignments to initialize a timer. > > A simplified version of the Coccinelle semantic patch that performs > this transformation is as follows: > > @change@ > expression e, func, da; > @@ > > -init_timer (&e); > +setup_timer (&e, func, da); > -e.data = da; > -e.function = func; > > Signed-off-by: Vaishali Thakkar Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/