{"id":817114,"url":"http://patchwork.ozlabs.org/api/patches/817114/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/patch/1506013525-29291-27-git-send-email-allen.lkml@gmail.com/","project":{"id":7,"url":"http://patchwork.ozlabs.org/api/projects/7/?format=json","name":"Linux network development","link_name":"netdev","list_id":"netdev.vger.kernel.org","list_email":"netdev@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1506013525-29291-27-git-send-email-allen.lkml@gmail.com>","list_archive_url":null,"date":"2017-09-21T17:04:47","name":"[26/64] drivers: net: xen-netback: use setup_timer() helper.","commit_ref":null,"pull_url":null,"state":"accepted","archived":true,"hash":"b48095867f7065324645f6e96daa34fdc69efdc0","submitter":{"id":72354,"url":"http://patchwork.ozlabs.org/api/people/72354/?format=json","name":"Allen Pais","email":"allen.lkml@gmail.com"},"delegate":{"id":34,"url":"http://patchwork.ozlabs.org/api/users/34/?format=json","username":"davem","first_name":"David","last_name":"Miller","email":"davem@davemloft.net"},"mbox":"http://patchwork.ozlabs.org/project/netdev/patch/1506013525-29291-27-git-send-email-allen.lkml@gmail.com/mbox/","series":[{"id":4448,"url":"http://patchwork.ozlabs.org/api/series/4448/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/list/?series=4448","date":"2017-09-21T17:04:27","name":"use setup_timer() helper function.","version":1,"mbox":"http://patchwork.ozlabs.org/series/4448/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/817114/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/817114/checks/","tags":{},"related":[],"headers":{"Return-Path":"<netdev-owner@vger.kernel.org>","X-Original-To":"patchwork-incoming@ozlabs.org","Delivered-To":"patchwork-incoming@ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"JUFX8pRN\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xykFB4QD2z9s3T\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 22 Sep 2017 03:31:58 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752485AbdIURIa (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tThu, 21 Sep 2017 13:08:30 -0400","from mail-pf0-f195.google.com ([209.85.192.195]:36372 \"EHLO\n\tmail-pf0-f195.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752429AbdIURI1 (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Thu, 21 Sep 2017 13:08:27 -0400","by mail-pf0-f195.google.com with SMTP id f84so2719072pfj.3;\n\tThu, 21 Sep 2017 10:08:26 -0700 (PDT)","from localhost.localdomain ([103.42.74.194])\n\tby smtp.gmail.com with ESMTPSA id\n\tp12sm3174090pgn.90.2017.09.21.10.08.20\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 21 Sep 2017 10:08:25 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=ZVd3sSuKqT0ycLGy0yizBDm8oH1tojcrN+fxovrPWiM=;\n\tb=JUFX8pRNkrvMMCBpV6R24+fAHYAYu3YZZzUulWs8pC3pKcHz30Le8irTXcvEqdKsvr\n\tfUuK5CQlYSFp6vG+0wzotQGyaB3sY7DELjp8XagAeB7FxzZ4vCz5aBnJcwwkbn674A1i\n\t44T9qd2LxU9ahAgP8hKjY/RiXHn7xBEyNQzNJBTaPe9nvcYI/6G70WhmJNTuKxVPXv31\n\trmUrB/iCxrI/ZRlQ83r0yu71JjiwlmU3wpCELEKPfJOP2Qcw1fbiw77Rak1kuAIZUMPu\n\tRKi7o6uKWHknvZPl8W3cs3brAE4SBCPOZ9QD7VdadGT2zxkvnxQYIhG2JvYWa54IdZ+i\n\tjeFw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=ZVd3sSuKqT0ycLGy0yizBDm8oH1tojcrN+fxovrPWiM=;\n\tb=YQRvxI19bEwebWRnej5JWz+c8oMFLl1Hq9a5crR/BG+G+rwqLWEysOR147qtej580E\n\t5i+UF3jVEMumzwBrzze87ofHmD2YvfmbE6T9UfNqF/bWT7jcIAmh3RJcPv5qXzYJi4gc\n\tEjGRyVyy0UZlpiIzF9wLWtJvoZ+N8nXj2dqGpPlvNXX9jCDD+3v+Tsz+voB7wbfyctgt\n\tMPKJRqvPXjbp3gr82HtcpQRITbfxbF78GykB75IApdlm7A+IUTpQTXwkc/NQCVtIKyvE\n\tg2G+8tUNgxuluyQ4nbwcrVGq2LhiymsZjbOfmK0xSxGe03fg7SzeHTyx4DlfQNty0/6D\n\tJ+XQ==","X-Gm-Message-State":"AHPjjUh6d2/nwnXisvdVrh3+IzFH6bN3W52/8M8v2NZR8ptPrgAIOYYK\n\tJJx2K5VZcY8Qzuw004bfboYmpjpJ","X-Google-Smtp-Source":"AOwi7QBJITa1F929atnGXXIlIQcM/sbw9DnTurh7Kj6fVo9tm2qzSjZUUjJx2S76F/Mhlu8QVO0M5A==","X-Received":"by 10.101.92.196 with SMTP id b4mr2999595pgt.85.1506013706287;\n\tThu, 21 Sep 2017 10:08:26 -0700 (PDT)","From":"Allen Pais <allen.lkml@gmail.com>","To":"netdev@vger.kernel.org","Cc":"linux-kernel@vger.kernel.org, m.grzeschik@pengutronix.de,\n\tdmitry.tarnyagin@lockless.no, wg@grandegger.com,\n\tmkl@pengutronix.de, mark.einon@gmail.com, linux@armlinux.org.uk,\n\tpcnet32@frontier.com, f.fainelli@gmail.com,\n\tbcm-kernel-feedback-list@broadcom.com, venza@brownhat.org,\n\tajk@comnets.uni-bremen.de, jes@trained-monkey.org,\n\tromieu@fr.zoreil.com, khc@pm.waw.pl, simon@thekelleys.org.uk,\n\tdavem@davemloft.net, linux-can@vger.kernel.org,\n\tadi-buildroot-devel@lists.sourceforge.net,\n\tAllen Pais <allen.lkml@gmail.com>","Subject":"[PATCH 26/64] drivers: net: xen-netback: use setup_timer() helper.","Date":"Thu, 21 Sep 2017 22:34:47 +0530","Message-Id":"<1506013525-29291-27-git-send-email-allen.lkml@gmail.com>","X-Mailer":"git-send-email 2.7.4","In-Reply-To":"<1506013525-29291-1-git-send-email-allen.lkml@gmail.com>","References":"<1506013525-29291-1-git-send-email-allen.lkml@gmail.com>","Sender":"netdev-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<netdev.vger.kernel.org>","X-Mailing-List":"netdev@vger.kernel.org"},"content":"Use setup_timer function instead of initializing timer with the\n    function and data fields.\n\nSigned-off-by: Allen Pais <allen.lkml@gmail.com>\n---\n drivers/net/xen-netback/interface.c | 3 +--\n 1 file changed, 1 insertion(+), 2 deletions(-)","diff":"diff --git a/drivers/net/xen-netback/interface.c b/drivers/net/xen-netback/interface.c\nindex ee8ed9da..dcfcb15 100644\n--- a/drivers/net/xen-netback/interface.c\n+++ b/drivers/net/xen-netback/interface.c\n@@ -520,8 +520,7 @@ int xenvif_init_queue(struct xenvif_queue *queue)\n \n \tqueue->credit_bytes = queue->remaining_credit = ~0UL;\n \tqueue->credit_usec  = 0UL;\n-\tinit_timer(&queue->credit_timeout);\n-\tqueue->credit_timeout.function = xenvif_tx_credit_callback;\n+\tsetup_timer(&queue->credit_timeout, xenvif_tx_credit_callback, 0UL);\n \tqueue->credit_window_start = get_jiffies_64();\n \n \tqueue->rx_queue_max = XENVIF_RX_QUEUE_BYTES;\n","prefixes":["26/64"]}