Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp707879pxf; Thu, 8 Apr 2021 11:05:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxclofEx3OSpsRSesE/Z2zMwVUs4C0LR+uwjH03vGVMBdoM+cbdOuVDSf4SXdiDQfsCAOdk X-Received: by 2002:a5d:4c89:: with SMTP id z9mr12944767wrs.415.1617905108957; Thu, 08 Apr 2021 11:05:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617905108; cv=none; d=google.com; s=arc-20160816; b=KkGIjAhAZkyA/tyjWfsCpej/ZRzaI9Iq4SEmmVQcc/BEKIn0jh0RdATAkniqv6Mds2 50/rQsK69AfXF5PreoTd9wz6v44xab4YYCc79b2LiKARRekKtdC1WMAing8spNDzRcPS Ei3J3wzNXdGJTRi4ggGGPWXFtnsbaWeOiLhXLIQsFUKHmH6yn+/YorLsaFxCm2YY7zT1 IWdrO1GFCMuKMrJlgW0Ytf1JwUIZnmusEiAiRchFOwEydwf14/3YBIwBcNfmhjZfYFp7 x0PN1cbYWIJ9CbQ5I8vF54ienkkPx8W1GIUP3vOIoeM/TWGKcFcZnJKjAtCgt3+gO8Oz 5XPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DA3H3y2QdswTCI0IeKzIbonznTyTOHUOdb/pzFyFPxw=; b=Cvauo8b6cA2sYgEIYGETd9N362DPWbNoNiLsLT1SAkrGtY1RxQVaop5vRnqNOiGYxc evLMYqhLPMGJTofoEfLyVwbRw/Unpi1x1/Z8Ac33t1WNz4mQuVm0JpWzX0Fht4rdWTQw +D6TNVTpydoBYsEAgxsi2Hinsk7WuviRSlCghd+S5TqY4x+twnVIbrbcNiNfI4h0WPJY bTN3IEjunBpVarH8jSwvCHgPUWyQ2sYwcq6vdgGaF9HEngng18xqbS+ngqWBDxpwErcm JV5vcbVBwxixKa300iKcI1+St1sf4PX5wVJhWkukK1mDYWXOuCp5wJX6uo2Ed9Tfzern DqKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NS+ORlc7; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g3si155966edu.276.2021.04.08.11.04.44; Thu, 08 Apr 2021 11:05:08 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NS+ORlc7; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232779AbhDHSBZ (ORCPT + 99 others); Thu, 8 Apr 2021 14:01:25 -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