Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3280481pxj; Mon, 14 Jun 2021 19:50:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+dpzpJQ5E6wi6p3fnOJ8isx0iVNHUp9xtUH0w5a08kuPBRUPTl+ac5GPSW6rbl4YfqQq0 X-Received: by 2002:a50:8fc3:: with SMTP id y61mr19838718edy.107.1623725409575; Mon, 14 Jun 2021 19:50:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623725409; cv=none; d=google.com; s=arc-20160816; b=lQjht3GzDJUy0z14SNcv+JjbY1ox0BphPZfKgI3Pe6a7GLJpuk9nSkDlc1NX4XU/YF VaWcQWvRRJwoWDa9Cs76dfnLvudojFt7Exg3Lc2UJQjHe3/PSXLJ3seZ9ENzE6m+Vq3K TTEzyqb0AZCJxc8+K/dOw98gHg0zky/IcnUi+RY6R99UXEwrGnyn8E/5wQnwKZNKPG4C dvgi0jgFDjcSBsfNmfYpF2LWt65h4Vtque9O/F34rQ4zX/S7gTFfG0Ecq7BvFLragrQt nJ02D9nokcaX2eGfqUazR+4U0PoBzQbzzaFwtKsKQBe82ManptGOFuoChoZu/28ZJ+LT 9Upw== 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=9x65ozSl95slEz7wBJnEVMhGbXuUzunMLKHFU/dMzkw=; b=RbqlDIyQRzuwojIsd0/U2Rg89EFqObHFNV14fIgR6WdTtnDw53KiwtlPaEiwFDl2bj JePOOJKq1FQj8MUbKlNBa5PC8vjPD4o2fWTDIndup68/IZdT+nBKloZZw1GkEltWZxuX H2WIQArgzlsMPoo2xNMQrO8BfQr5v1SA7UVoTG7UBWQxmZGkG10f+TQQgwyuPj3tKnuY LUrV9r14Y+Dvt3VJw+tO/wRqzfKKkNfT064bsC6Ki/t+lZbq75u1OCWlRSExcylB8bMJ s4ZXpjDGkzt8bhMnb7VZD5V0Q9TBwGJl/lIEAhwHTAsmBbq2h7BwqUcIAvWgBv4irxhJ UdTQ== 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 q24si12805523ejn.752.2021.06.14.19.49.47; Mon, 14 Jun 2021 19:50:09 -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 S231143AbhFOCtQ (ORCPT + 99 others); Mon, 14 Jun 2021 22:49:16 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:10061 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230331AbhFOCtC (ORCPT ); Mon, 14 Jun 2021 22:49:02 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4G3t1b1GGKzZf0c; Tue, 15 Jun 2021 10:44:03 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Tue, 15 Jun 2021 10:46:57 +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; Tue, 15 Jun 2021 10:46:57 +0800 From: Guangbin Huang To: , , , , CC: , , , Subject: [PATCH V2 net-next 02/10] net: z85230: add blank line after declarations Date: Tue, 15 Jun 2021 10:43:37 +0800 Message-ID: <1623725025-50976-3-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1623725025-50976-1-git-send-email-huangguangbin2@huawei.com> References: <1623725025-50976-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) 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/z85230.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/wan/z85230.c b/drivers/net/wan/z85230.c index f074cb1..3036d58 100644 --- a/drivers/net/wan/z85230.c +++ b/drivers/net/wan/z85230.c @@ -74,6 +74,7 @@ static inline int z8530_read_port(unsigned long p) { u8 r=inb(Z8530_PORT_OF(p)); + if(p&Z8530_PORT_SLEEP) /* gcc should figure this out efficiently ! */ udelay(5); return r; @@ -133,6 +134,7 @@ static inline u8 read_zsreg(struct z8530_channel *c, u8 reg) static inline u8 read_zsdata(struct z8530_channel *c) { u8 r; + r=z8530_read_port(c->dataio); return r; } @@ -653,6 +655,7 @@ static void z8530_tx_clear(struct z8530_channel *c) static void z8530_status_clear(struct z8530_channel *chan) { u8 status=read_zsreg(chan, R0); + if(status&TxEOM) write_zsctrl(chan, ERR_RES); write_zsctrl(chan, RES_EXT_INT); @@ -1360,6 +1363,7 @@ int z8530_channel_load(struct z8530_channel *c, u8 *rtable) while(*rtable!=255) { int reg=*rtable++; + if(reg>0x0F) write_zsreg(c, R15, c->regs[15]|1); write_zsreg(c, reg&0x0F, *rtable); @@ -1401,6 +1405,7 @@ EXPORT_SYMBOL(z8530_channel_load); static void z8530_tx_begin(struct z8530_channel *c) { unsigned long flags; + if(c->tx_skb) return; @@ -1672,6 +1677,7 @@ static void z8530_rx_done(struct z8530_channel *c) static inline int spans_boundary(struct sk_buff *skb) { unsigned long a=(unsigned long)skb->data; + a^=(a+skb->len); if(a&0x00010000) /* If the 64K bit is different.. */ return 1; -- 2.8.1