Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp506307pxj; Thu, 17 Jun 2021 07:39:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwamot/IWWmwkHjwQXC6FVhIuggdt1w80ZDJWebxmf5kvwN6Ui2FWpHvbYgZrQsQavHctLN X-Received: by 2002:a17:906:2752:: with SMTP id a18mr5894119ejd.458.1623940746148; Thu, 17 Jun 2021 07:39:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623940746; cv=none; d=google.com; s=arc-20160816; b=LAMKoo5HfluH5lSU68KcCXwcC+Tkjf2K6vaDCT3FmqsM55GMwVir/4UByQ7idUSjE8 KjpzBP4vMBROftErLo/b/k7WgMdnTl2CEck8FUQytmaf7xeaFG9WOy7+SBRdy6z4bcS8 brueh+OkblsdgM9u5B+F9HbhnG3ZKnGz+ei73dSDNn2jY0N+36ReIPo7WYnSJbh5eSaR diKWV2jbhASGJfZSBCn4JLf5cUUQJLHTpAn6Wh5Oar1AJ1O3bpPbYdP/iOj2yj8yz43m Yfwd6PNf2PV1O+KzAAg+VJGpW7r0EQ9gBtd2gdixyk4b/iBLHw/BD37KEgyZ9vXS5wCY fUKg== 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=zoyRS1vW1VjrHQMJJziMBUD5yfq6rLi7VuPAKN9Nh5k=; b=hRVy+3xgS0ugmJYBI+eZttCjtQUgfYgVePxjWIac4VQ4SiU71cbAhCV5TbzlOa203T VCtxh/8bdrjNxR8xi/QlSdhaXkXUH2U+WDEHbk1DV3/CYnXjB3JrhFTpsfAetXDLEPNt Gvu7XRBdzo/JRCVgW+lcjn+f8MzuBibThD3oMmNBxGchD/lj6rmxz7L0lpzL+mXzPGjl 6Fth0cYNkkME6rSJx+FpvkfDxXC+GFBhbcuBD5/XAWudJaRYa6M0F86tPhzKVpRiCzGM DCXFGx2nyE4js0HuU9CWCtpICjLBX8YHhVhzQXnI7u1qer2eytRPd5dgHdtqcFNa8WgX nZnA== 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 i4si5398362edc.17.2021.06.17.07.38.43; Thu, 17 Jun 2021 07:39:06 -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 S232950AbhFQOIp (ORCPT + 99 others); Thu, 17 Jun 2021 10:08:45 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:7359 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231229AbhFQOIo (ORCPT ); Thu, 17 Jun 2021 10:08:44 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4G5NzW6Vvyz6y3v; Thu, 17 Jun 2021 22:02:31 +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; Thu, 17 Jun 2021 22:06:32 +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; Thu, 17 Jun 2021 22:06:31 +0800 From: Guangbin Huang To: , , , , CC: , , , Subject: [PATCH V2 net-next 2/6] net: hdlc_ppp: add blank line after declarations Date: Thu, 17 Jun 2021 22:03:15 +0800 Message-ID: <1623938599-25981-3-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1623938599-25981-1-git-send-email-huangguangbin2@huawei.com> References: <1623938599-25981-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) 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 e25b2f058d8c..32f01d7e12d4 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