Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4300856pxj; Wed, 12 May 2021 02:30:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxp1Df10OzIwul58/5Or8+QpotvZ+ZIsF37qm7co9oP4mZSknErg6j+sn9UQTJpXSBMaJoZ X-Received: by 2002:a17:906:6a93:: with SMTP id p19mr37153005ejr.319.1620811857459; Wed, 12 May 2021 02:30:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620811857; cv=none; d=google.com; s=arc-20160816; b=izkmRFiYubW7V/mA2KZ+ofAqVBG4hIcAkkifGzlZvURCgY/rHii7slXGDcRYForq9m a4+WwkX0uGxCyLXambOwzqF5MAocVvJdL4ZbgJLSahrRvlinuAQmkbXB2Domhpevrd4d ke6rOmBsTA2FfVIr+XrT7DwQnbk+JG7FGRRm72TjsriBs8yDG8Q3qL2ebQfeui70Dfw0 p6Abisq5+n4l0qByRpMZNX2+PnBsc7kctr6GLHWDEfwI37MMcSPzOm9Q3U1WeOdjXe0+ 99ygbsrpU4ifXjuJQxyM/sI+TF9DynD61WPM0wmozzowGF4/pjm33s1T57mvAyZe+pjx 2xlQ== 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=/TiFkhZ6gQf/+8ZUgMObBKdLgsga2uWFUs6KhV+gmXo=; b=BxEEvl24RVJAYsszNnxDBTlEQvxF7uWlcLCNE2k7g5XBvn9rr3g3rkImlOyMLXOyUU flk7DMtvGzt2/aMydiag50TYjxmtrR+/4j+fJE7gNrTiERiKPxjwhtUElgfkx3z8z6Ji R17RPcyubPzdvq6WWLksPHBssQIpM+OExwgSepQrQjfWYc9qJ+Eh6VIZv0TSpNK3mhWe 2IdP7L5jACKvd4sQGrvYxAjnjDP1Xzq7tym6XIUfuew4tv3ydOtuCe9Ssk954dN4lRGY UEMOqwJdrlqn2OfdGy/FjdGpcrR/1wtkvxzb/Z3RP6Cp6SvMYieLfcLH2iQFC4poS5GF zZug== 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 i19si18698497edr.172.2021.05.12.02.30.34; Wed, 12 May 2021 02:30:57 -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 S230230AbhELJar (ORCPT + 99 others); Wed, 12 May 2021 05:30:47 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:2456 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230096AbhELJam (ORCPT ); Wed, 12 May 2021 05:30:42 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4Fg8Z22mjpzBtTY; Wed, 12 May 2021 17:26:50 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.498.0; Wed, 12 May 2021 17:29:24 +0800 From: Xiaofei Tan To: , CC: , , Xiaofei Tan Subject: [PATCH 05/17] tty: tty_buffer: Fix coding style issues of block comments Date: Wed, 12 May 2021 17:26:13 +0800 Message-ID: <1620811585-18582-6-git-send-email-tanxiaofei@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1620811585-18582-1-git-send-email-tanxiaofei@huawei.com> References: <1620811585-18582-1-git-send-email-tanxiaofei@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix coding style issues of block comments, reported by checkpatch.pl. Besides, add a period at the end of the sentenses. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_buffer.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/tty/tty_buffer.c b/drivers/tty/tty_buffer.c index 721491df..e9ff5dd 100644 --- a/drivers/tty/tty_buffer.c +++ b/drivers/tty/tty_buffer.c @@ -170,7 +170,8 @@ static struct tty_buffer *tty_buffer_alloc(struct tty_port *port, size_t size) } /* Should possibly check if this fails for the largest buffer we - have queued and recycle that ? */ + * have queued and recycle that ? + */ if (atomic_read(&port->buf.mem_used) > port->buf.mem_limit) return NULL; p = kmalloc(sizeof(struct tty_buffer) + 2 * size, GFP_ATOMIC); @@ -329,7 +330,8 @@ int tty_insert_flip_string_fixed_flag(struct tty_port *port, copied += space; chars += space; /* There is a small chance that we need to split the data over - several buffers. If this is the case we must loop */ + * several buffers. If this is the case we must loop. + */ } while (unlikely(size > copied)); return copied; } @@ -366,7 +368,8 @@ int tty_insert_flip_string_flags(struct tty_port *port, chars += space; flags += space; /* There is a small chance that we need to split the data over - several buffers. If this is the case we must loop */ + * several buffers. If this is the case we must loop. + */ } while (unlikely(size > copied)); return copied; } -- 2.8.1