From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 743EFC433B4 for ; Thu, 8 Apr 2021 18:01:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 41990610C8 for ; Thu, 8 Apr 2021 18:01:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232787AbhDHSB0 (ORCPT ); Thu, 8 Apr 2021 14:01:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:33018 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232771AbhDHSBW (ORCPT ); Thu, 8 Apr 2021 14:01:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EDDF3610C8; Thu, 8 Apr 2021 18:01:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617904871; bh=+eaGpVC7iGbDCkxhs5YszeBxO/5SQpqKc8nZVWHLW+M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NS+ORlc71xvRJWrdZgr5W+1yFBVz0qppZNJgZa13261WJmnGl1YZNlmORPH1H7zPC EgHgK39G02ztwrZFcrKu1+z5R8/7TrpPpOiyhVfu+bf4+3G5wnDQB6/ajUzBCMZuUf SexeZbhm2W+RopYxcORoPUOS1ImPDv8xBgkLOFPY= Date: Thu, 8 Apr 2021 20:01:08 +0200 From: Greg Kroah-Hartman To: Johan Hovold Cc: linux-kernel@vger.kernel.org, Tetsuo Handa , Jiri Slaby Subject: Re: [PATCH 00/13] tty.h cleanups Message-ID: References: <20210408125134.3016837-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 08, 2021 at 04:25:22PM +0200, Johan Hovold wrote: > On Thu, Apr 08, 2021 at 02:51:21PM +0200, Greg Kroah-Hartman wrote: > > Turns out there is a lot of tty-internal stuff in include/linux/tty.h > > that do not belong there. Create a internal-to-the-tty-layer .h file > > for these types of things and move function prototypes to it instead of > > being in the system-wide header file. > > > > Along the way clean up the use of some old tty-only debugging macros and > > use the in-kernel dev_*() calls instead. > > I'm afraid that's not a good idea since not all ttys have a > corresponding class device. Notable exception include pseudo terminals > and serdev. > > While dev_printk() can handle a NULL device argument without crashing, > we'll actually lose log information by removing the tty printk helpers. I think the same info will be printed here as before, just some NULL information at the beginning, right? And the benifits overall (for real tty devices), should outweigh the few devices that do not have this information. But let me run some tests, on those devices to see just how this looks... thanks, greg k-h