Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4301339pxj; Wed, 12 May 2021 02:31:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUX6GWvKAvl5jwYNyuvgROpQFK81L08xUe5gubT+hyHxrH6rtIsxEkQGcUn69MYkyvDMTE X-Received: by 2002:aa7:d306:: with SMTP id p6mr41714994edq.168.1620811901367; Wed, 12 May 2021 02:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620811901; cv=none; d=google.com; s=arc-20160816; b=WfAqltzZOnkIE0RYfrSqtfy6Y/DEYQ6s2x4I5EOLXETPRnQlnSzbevPD0/7ZTDEngO qhalZfQO7Ng8AXFyRUYTyJN7hEpeDmMUDobv0L7Of4chaduBE/7KqMI9+68QXeNIypjs P+xgcoLuGJPiIlYLmUhDMBMgXiDRE9BRDLMtIsnhYlId68FfP8c2kZXIoj0ZyaepGYrq EdN8zBIju9DEqgHAgo5sw1ctYEVpDP+40IURdg8kSu2dP1lvQEPlQrzIWWjiA6uxkwqD z7ZqmiBL1bvQT4jHmaDxn8zWdJ1EKMh3vhTJ11Cj0UUpnCZXRqG1YPencDLLxvc/o2yT Gucw== 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=183cQ7Nr6SFBJvDZFlXf3i6l/VFgU8uPyGZhzgYn6iI=; b=sNr73yowtkk3eJn4FVghmZZaYZCheEo9fusZGwsgIuQY5yYbycYVNEHM6eYXdber/h k7FcKHTRRQDYCjgeOHDnR2bWIUgl+4iig8NrC1PHJ266ITNUwHlM11WVCCAH2+wBz9KV bql71/PqB8lPXDUfwJGpRQxFwh/cO/kLnPMMf9aMIY8G+ELR6bnKz6VPJoqkEjg0Rvu7 z3rSWHJn5hPkw7jWa88C0YCCkv+C9QFoeXsxL0FYwVFzCmvq8zSof4Z34z0HlHwTD3Ch Q/DLvGqY0QoL0VSUkD1tNsmOj9DOK9N0OaIJvQrwYtuA/1pD189nLmfbZKzwNEvyVlfi mIoA== 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 k9si19588559eje.142.2021.05.12.02.31.18; Wed, 12 May 2021 02:31:41 -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 S230411AbhELJbH (ORCPT + 99 others); Wed, 12 May 2021 05:31:07 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:2641 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230178AbhELJao (ORCPT ); Wed, 12 May 2021 05:30:44 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4Fg8Zh5tbMzldX7; Wed, 12 May 2021 17:27:24 +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:27 +0800 From: Xiaofei Tan To: , CC: , , Xiaofei Tan Subject: [PATCH 13/17] tty: tty_io: Delete a blank line before EXPORT_SYMBOL(foo) Date: Wed, 12 May 2021 17:26:21 +0800 Message-ID: <1620811585-18582-14-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 Delete a blank line before EXPORT_SYMBOL(foo) so that EXPORT_SYMBOL(foo) immediately follow its function/variable, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_io.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c index 6e65726..ce07aca 100644 --- a/drivers/tty/tty_io.c +++ b/drivers/tty/tty_io.c @@ -131,7 +131,6 @@ struct ktermios tty_std_termios = { /* for the benefit of tty drivers */ .c_ospeed = 38400, /* .c_line = N_TTY, */ }; - EXPORT_SYMBOL(tty_std_termios); /* This list gets poked at by procfs and various bits of boot up code. This @@ -249,7 +248,6 @@ const char *tty_name(const struct tty_struct *tty) return "NULL tty"; return tty->name; } - EXPORT_SYMBOL(tty_name); const char *tty_driver_name(const struct tty_struct *tty) @@ -539,7 +537,6 @@ void tty_wakeup(struct tty_struct *tty) } wake_up_interruptible_poll(&tty->write_wait, EPOLLOUT); } - EXPORT_SYMBOL_GPL(tty_wakeup); /** @@ -697,7 +694,6 @@ void tty_hangup(struct tty_struct *tty) tty_debug_hangup(tty, "hangup\n"); schedule_work(&tty->hangup_work); } - EXPORT_SYMBOL(tty_hangup); /** @@ -714,7 +710,6 @@ void tty_vhangup(struct tty_struct *tty) tty_debug_hangup(tty, "vhangup\n"); __tty_hangup(tty, 0); } - EXPORT_SYMBOL(tty_vhangup); @@ -764,7 +759,6 @@ int tty_hung_up_p(struct file *filp) { return (filp && filp->f_op == &hung_up_tty_fops); } - EXPORT_SYMBOL(tty_hung_up_p); /** @@ -3110,7 +3104,6 @@ void do_SAK(struct tty_struct *tty) return; schedule_work(&tty->SAK_work); } - EXPORT_SYMBOL(do_SAK); /* Must put_device() after it's unused! */ -- 2.8.1