Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp297783pxj; Wed, 16 Jun 2021 02:38:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0W4yOJclAVhoCsHyTUKkKIm3uB7laknzy0Xy9uWpxymFkYNrLHAPOiGQhKDBPyjSQwSS7 X-Received: by 2002:a05:6e02:54e:: with SMTP id i14mr3130566ils.129.1623836292719; Wed, 16 Jun 2021 02:38:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623836292; cv=none; d=google.com; s=arc-20160816; b=0o70O78NYndiG0w2gPqBmHm/8guy80/lSvvfbEeA+11sYslPb4/UsCMWs/0T0TNu+v qgf1pHEVZES7n+pmQMGug/+13NZLlYqkxmg9iLNuKZh16016Q0Azrb4zgS/2M8uY5vTt prQXFPLuIKcdZNx3bkZ1jA9jMRyEQTpZZwUeSXrsNXmV8T4bk1JV9Z3PJmycHLU0Irxd C9V9sNekpylIWQ6J8uyDNYvptx46ggYmWSNNwQbQD26MomwGprMGCUKwCeYiH924vbKd 0cGN2l5GyjV4ZTDipsKWoNIwRPGjXxrMecUHJiKwpF87HAPWBadB0srMfZ82kFchSoAH 2ZcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=JT/tCVuWARpZRXOCLIo5cI9MUzPTh23LIn/1RowEmPA=; b=yk+V7dPpIKdjGrQxS/toG6EPrK5M1Q0ddeZj1e0t2Z3b0TfeezZN7+YW3bZCoo3fAL hBooGHn5aoLwzjB3duAKnH+UhQ91Rsu/AXkPPNUDnHpV8ZnKoJ/qIfLICtzM4ZMXs7vU OVPDJKoCAWtKnfVSrALukiIrSx9gxDYBV59ovcbxP2/kg1Y2150k/cU02cmnj5B6DyzN 4BSEsxZVThnDwkp0U/bE1hIdIk/CTm7nO69/yO2yqz5kIQcRYZ5Vj5ksvbl6yUENMSOc LogntbdIPim901VW4BqIJ/wIh+mJ+rhceqaJsAH4ub+25B4wiOJieH2p4eN9w3h+TfWE ohhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v3si1967505jao.58.2021.06.16.02.38.01; Wed, 16 Jun 2021 02:38:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232382AbhFPJjU (ORCPT + 99 others); Wed, 16 Jun 2021 05:39:20 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:10099 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232260AbhFPJjQ (ORCPT ); Wed, 16 Jun 2021 05:39:16 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4G4g4Q3dYczZdPC; Wed, 16 Jun 2021 17:34:14 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Wed, 16 Jun 2021 17:37:09 +0800 Received: from localhost.localdomain (10.67.165.24) by dggemi759-chm.china.huawei.com (10.1.198.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 16 Jun 2021 17:37:09 +0800 From: Guangbin Huang To: , , , , CC: , , , Subject: [PATCH net-next 2/8] net: hdlc_ppp: add blank line after declarations Date: Wed, 16 Jun 2021 17:33:51 +0800 Message-ID: <1623836037-26812-3-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1623836037-26812-1-git-send-email-huangguangbin2@huawei.com> References: <1623836037-26812-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggemi759-chm.china.huawei.com (10.1.198.145) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Li This patch fixes the checkpatch error about missing a blank line after declarations. Signed-off-by: Peng Li Signed-off-by: Guangbin Huang --- drivers/net/wan/hdlc_ppp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wan/hdlc_ppp.c b/drivers/net/wan/hdlc_ppp.c index e25b2f0..32f01d7 100644 --- a/drivers/net/wan/hdlc_ppp.c +++ b/drivers/net/wan/hdlc_ppp.c @@ -41,6 +41,7 @@ static const char *const code_names[CP_CODES] = { "0", "ConfReq", "ConfAck", "ConfNak", "ConfRej", "TermReq", "TermAck", "CodeRej", "ProtoRej", "EchoReq", "EchoReply", "Discard" }; + static char debug_buffer[64 + 3 * DEBUG_CP]; #endif @@ -90,6 +91,7 @@ static const char *const state_names[STATES] = { "Closed", "Stopped", "Stopping", "ReqSent", "AckRecv", "AckSent", "Opened" }; + static const char *const event_names[EVENTS] = { "Start", "Stop", "TO+", "TO-", "RCR+", "RCR-", "RCA", "RCN", "RTR", "RTA", "RUC", "RXJ+", "RXJ-" @@ -194,6 +196,7 @@ static int ppp_hard_header(struct sk_buff *skb, struct net_device *dev, static void ppp_tx_flush(void) { struct sk_buff *skb; + while ((skb = skb_dequeue(&tx_queue)) != NULL) dev_queue_xmit(skb); } @@ -616,6 +619,7 @@ static void ppp_start(struct net_device *dev) for (i = 0; i < IDX_COUNT; i++) { struct proto *proto = &ppp->protos[i]; + proto->dev = dev; timer_setup(&proto->timer, ppp_timer, 0); proto->state = CLOSED; -- 2.8.1