From patchwork Thu Feb 15 11:15:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ilpo_J=C3=A4rvinen?= X-Patchwork-Id: 201437 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:b825:b0:106:860b:bbdd with SMTP id da37csp357215dyb; Thu, 15 Feb 2024 04:21:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWCEblj75V2NIUJdcr2i/aVW5DcWMX0uagTjPLJEsj56wQoBJkbdK3JTXmWumUJwBse9oTn91WedL8wy0j618Td8btMwg== X-Google-Smtp-Source: AGHT+IHdWOZmCZSiswUI2LWmMgCvMN6Jr473idRZX3u62MrE0CwFeoq6aROAULdumun9Lq+G1D4z X-Received: by 2002:a05:6a21:3489:b0:19e:3659:c23a with SMTP id yo9-20020a056a21348900b0019e3659c23amr1739672pzb.43.1707999671182; Thu, 15 Feb 2024 04:21:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707999671; cv=pass; d=google.com; s=arc-20160816; b=1LhQ3baQQ5gYR2raIhg3YA1Qao96JdLSABW8mWGfL+sKgRZfMhv7gDn+e9V3IV2tXO 691o8GCppjO3/KFXU3C7XiqoopoIx2Nm1itG6XlGBGpbI0LmLD0QJmd9WCYegPNXySGS +T8Jcj1tE7lAQAUUoWkozlPSUcg7txScpSC1Bsozx9QVZMVpypseKF+3tuOUivvSLSqD ffYaDk10h3lcDokbK8AqeeaUesNc9HsmXtaaUhJ98J2alQj5Km6KsmvRdY1Cct8XKe4k 6IKKNOvKUdH65UTl9ltLs6zQrr6fsaDCcY+ynF32+iyw55GCnsZ79WlIuF/I1iKNN+YE 4lzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=9JXUw9LsYY0Pgcc/+OmqqPxO2RQPyYx25a4fHCFqO7U=; fh=s/lNR7Eg0A2kOzNwIJ6Zp0rhs5S/2sZrFfkQcCxEeL8=; b=Cu7xrIxHjyr+kt3jIBa5K931OBxzjpwTQK57zm6Vxa5wWjGqVon208STp5o0zXihQz t6x+XItcxHsPOwDU9xgMdoz069PliOvwh664fbbDivlqpX3NUdMU/k5oxHk4If7zHNkY k2PBlQ/lJS90drkDegDzFg4jxFRbwthPrnWZ98WD7BvP7XjOTU5Y6G6Crhvj0xOnwI+L dHRi5V9rWqEi9Dj3KGYZqeeeAq/x495HUAG2+4Cl5oKfck99wPSEgQERzTyIS8opoWJ/ dnwzBOWZUaN6ERB54bn38t7fPVR22TIwWh/d4HlLIAFVIUVwGQX3Z/zR/4u6r0btVgKQ UkIA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BafsBNQk; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-66767-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66767-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b17-20020a639311000000b005d6d3897a65si1024357pge.830.2024.02.15.04.21.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 04:21:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66767-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BafsBNQk; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-66767-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66767-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id F3F5EB2DBA2 for ; Thu, 15 Feb 2024 11:19:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 00D7B12BE91; Thu, 15 Feb 2024 11:15:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="BafsBNQk" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0D6E412AAE9; Thu, 15 Feb 2024 11:15:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707995752; cv=none; b=UPtncIOgAfNUE4oac6Oe2+gMfvMC3JTdvkQxMv5t7x994qFpWAlETyM1KxGOg8SRgbWOq+bEP4FFh8PuruJaROBQs3bxp/MYFIhHN2gNCvQC3wVRDnLEt2vT4W8DrvffOeIRNkGpW+7ul4tU/MzZ4o7olK/eYG5wfSU1OCRyIao= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707995752; c=relaxed/simple; bh=9YZKXhWNfbF7aYFsNIbeRXnqZp6wq06HKB3/uvm1xT4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=hv8GYkmo+6Wrsosch9xH6U5d0Vy+JOK+CwOzXjCa9We2PwWazaWGuVP3QGev5Qnlw897P7/L0yZe3VTY7J7BwvIyXjZE2QzbQAxtrpqtqRZFatwqdyZx1HxDwQsRve9LYCaasCj3MVKvoqXV2EhmjwPpw0MV/1DnFhLoBsIal70= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=BafsBNQk; arc=none smtp.client-ip=198.175.65.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707995750; x=1739531750; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=9YZKXhWNfbF7aYFsNIbeRXnqZp6wq06HKB3/uvm1xT4=; b=BafsBNQkVEI5YxQE29N3vKSwPYVJxgz99TcU3/x/EdoVomtFtr2hiOD3 L/YE0+5KlWGpVkz7Q/IZaLmomefNKZ41c6b/PBilZlxtx/QNJ9TnPGrvy RDEx7Yxx2blnseQO2ChX91OKXSCe7qUsNmLcsLa4A973cmfa776XHMGbt DnnoXKDh4wH9rcPzpBPucJ4AdCeajjJcanP3pk1a0Si/2eLtx7Y1AzTm4 mQBWJOgHENCpLu5L0EtsjUzDV37Cm7ON/elaTB+0Kjjc59S1llys6eiJL rFsx6JreAexbnK87Ucd0bLAnM+xEKTxfjWqMpuU4iqBAmQCOR+uUyHln1 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10984"; a="2191468" X-IronPort-AV: E=Sophos;i="6.06,161,1705392000"; d="scan'208";a="2191468" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2024 03:15:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,161,1705392000"; d="scan'208";a="3572590" Received: from ijarvine-desk1.ger.corp.intel.com (HELO localhost) ([10.246.32.150]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2024 03:15:46 -0800 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: Greg Kroah-Hartman , Jiri Slaby , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH v2 1/1] tty: Don't include tty_buffer.h in tty.h Date: Thu, 15 Feb 2024 13:15:38 +0200 Message-Id: <20240215111538.1920-1-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790967462803016795 X-GMAIL-MSGID: 1790967462803016795 There's no need to include linux/tty_buffer.h in linux/tty.h. Move the include into tty_buffer.c that is actually using it. Signed-off-by: Ilpo Järvinen --- v2: - Fixed shortlog to make sense drivers/tty/tty_buffer.c | 1 + include/linux/tty.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/tty_buffer.c b/drivers/tty/tty_buffer.c index f8883afbeeba..79f0ff94ce00 100644 --- a/drivers/tty/tty_buffer.c +++ b/drivers/tty/tty_buffer.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include diff --git a/include/linux/tty.h b/include/linux/tty.h index 8c76fd97d4ad..2b2e6f0a54d6 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h @@ -6,7 +6,6 @@ #include #include #include -#include #include #include #include