From patchwork Thu Dec 7 05:30:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiwei Bie X-Patchwork-Id: 31968 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 47BD87D4E; Thu, 7 Dec 2017 06:32:23 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 6CB927CFA for ; Thu, 7 Dec 2017 06:32:21 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Dec 2017 21:32:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,371,1508828400"; d="scan'208";a="10284980" Received: from deepin-15.sh.intel.com (HELO debian-xvivbkq.sh.intel.com) ([10.67.104.165]) by orsmga003.jf.intel.com with ESMTP; 06 Dec 2017 21:32:19 -0800 From: Tiwei Bie To: yliu@fridaylinux.org, maxime.coquelin@redhat.com, dev@dpdk.org Date: Thu, 7 Dec 2017 13:30:59 +0800 Message-Id: <20171207053059.19487-6-tiwei.bie@intel.com> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20171207053059.19487-1-tiwei.bie@intel.com> References: <20171207053059.19487-1-tiwei.bie@intel.com> Subject: [dpdk-dev] [PATCH 5/5] net/virtio: squeeze repeated blank lines X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Squeeze repeated blank lines with below scripts: for i in $(find . -name "*.[ch]"); do \ cat -s $i > /tmp/x && mv /tmp/x $i; done Signed-off-by: Tiwei Bie --- drivers/net/virtio/virtio_ethdev.c | 1 - drivers/net/virtio/virtio_logs.h | 1 - drivers/net/virtio/virtio_pci.c | 1 - drivers/net/virtio/virtio_pci.h | 2 -- drivers/net/virtio/virtio_rxtx.c | 2 -- 5 files changed, 7 deletions(-) diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 9caa133c9..aa6d494ca 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/virtio_ethdev.c @@ -1801,7 +1801,6 @@ virtio_dev_configure(struct rte_eth_dev *dev) return 0; } - static int virtio_dev_start(struct rte_eth_dev *dev) { diff --git a/drivers/net/virtio/virtio_logs.h b/drivers/net/virtio/virtio_logs.h index 90a79eaa5..6ce3149d5 100644 --- a/drivers/net/virtio/virtio_logs.h +++ b/drivers/net/virtio/virtio_logs.h @@ -59,7 +59,6 @@ #define PMD_TX_LOG(level, fmt, args...) do { } while(0) #endif - #ifdef RTE_LIBRTE_VIRTIO_DEBUG_DRIVER #define PMD_DRV_LOG(level, fmt, args...) \ RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) diff --git a/drivers/net/virtio/virtio_pci.c b/drivers/net/virtio/virtio_pci.c index 9574498fb..684ef560c 100644 --- a/drivers/net/virtio/virtio_pci.c +++ b/drivers/net/virtio/virtio_pci.c @@ -481,7 +481,6 @@ const struct virtio_pci_ops modern_ops = { .notify_queue = modern_notify_queue, }; - void vtpci_read_dev_config(struct virtio_hw *hw, size_t offset, void *dst, int length) diff --git a/drivers/net/virtio/virtio_pci.h b/drivers/net/virtio/virtio_pci.h index 3c5ce66ce..e42962a99 100644 --- a/drivers/net/virtio/virtio_pci.h +++ b/drivers/net/virtio/virtio_pci.h @@ -274,7 +274,6 @@ struct virtio_hw { struct virtqueue **vqs; }; - /* * While virtio_hw is stored in shared memory, this structure stores * some infos that may vary in the multiple process model locally. @@ -290,7 +289,6 @@ struct virtio_hw_internal { extern struct virtio_hw_internal virtio_hw_internal[RTE_MAX_ETHPORTS]; - /* * This structure is just a reference to read * net device specific config space; it just a chodu structure diff --git a/drivers/net/virtio/virtio_rxtx.c b/drivers/net/virtio/virtio_rxtx.c index 390c137c8..7ccd1da34 100644 --- a/drivers/net/virtio/virtio_rxtx.c +++ b/drivers/net/virtio/virtio_rxtx.c @@ -66,7 +66,6 @@ #define VIRTIO_DUMP_PACKET(m, len) do { } while (0) #endif - #define VIRTIO_SIMPLE_FLAGS ((uint32_t)ETH_TXQ_FLAGS_NOMULTSEGS | \ ETH_TXQ_FLAGS_NOOFFLOADS) @@ -175,7 +174,6 @@ virtio_xmit_cleanup(struct virtqueue *vq, uint16_t num) } } - static inline int virtqueue_enqueue_recv_refill(struct virtqueue *vq, struct rte_mbuf *cookie) {