From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751635AbcBYVwV (ORCPT ); Thu, 25 Feb 2016 16:52:21 -0500 Received: from shards.monkeyblade.net ([149.20.54.216]:46549 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751552AbcBYVwU (ORCPT ); Thu, 25 Feb 2016 16:52:20 -0500 Date: Thu, 25 Feb 2016 16:52:18 -0500 (EST) Message-Id: <20160225.165218.2138194136809439003.davem@davemloft.net> To: amitoj1606@gmail.com Cc: klassert@mathematik.tu-chemnitz.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, julia.lawall@lip6.fr Subject: Re: [PATCH 3/3] 3c59x: Use setup_timer() From: David Miller In-Reply-To: <20160224135819.GA14426@amitoj-Inspiron-3542> References: <20160224135819.GA14426@amitoj-Inspiron-3542> 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]); Thu, 25 Feb 2016 13:52:19 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Amitoj Kaur Chawla Date: Wed, 24 Feb 2016 19:28:19 +0530 > Convert a call to init_timer and accompanying intializations of > the timer's data and function fields to a call to setup_timer. > > The Coccinelle semantic patch that fixes this problem is > as follows: > > // > @@ > expression t,f,d; > @@ > > -init_timer(&t); > +setup_timer(&t,f,d); > ... > -t.data = d; > -t.function = f; > // > > Signed-off-by: Amitoj Kaur Chawla Applied.