From patchwork Thu Mar 9 08:20:33 2023 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: 662043 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97D9BC6FD19 for ; Thu, 9 Mar 2023 08:23:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230173AbjCIIX3 (ORCPT ); Thu, 9 Mar 2023 03:23:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230096AbjCIIWr (ORCPT ); Thu, 9 Mar 2023 03:22:47 -0500 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71B991EFC7; Thu, 9 Mar 2023 00:21:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678350104; x=1709886104; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=LugKJEKmoFir+JyJxq1ICb/Yr9xuZ+hFG2k0xUqfkNU=; b=JavNjAz9DxTpoHbBRBTfeaQ5KnbVSbF+oeRVvcOv81pe48f3BM30Eu9W L0MuPEH2MFycL7JKyWK4xK5V+0oU0gHdz3Bnu8A863ptgD3zdheAogJMC mghV0Fi2z1l+Owb919l0iuZC4C+vvTTXQfM0DAk0TUyAfPyw4mQdTvNqw NRrtDuynaY160M7E1Di1h5XiqfoXMNk8nUplZuHyup3p8Y6dbO3ItXbwH whwq2odl6bDGlfRTAdl87MwMqJv9xSZ3kDmLBW4eCzOyWs3i61geBWEJK PMLuRXm4k65fNDWAFrO2DgyqGzXqDjXUNkdE9yQ/Ois0pYhenT1+JJerK A==; X-IronPort-AV: E=McAfee;i="6500,9779,10643"; a="364025901" X-IronPort-AV: E=Sophos;i="5.98,245,1673942400"; d="scan'208";a="364025901" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2023 00:21:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10643"; a="787473886" X-IronPort-AV: E=Sophos;i="5.98,245,1673942400"; d="scan'208";a="787473886" Received: from unknown (HELO ijarvine-MOBL2.mshome.net) ([10.237.66.35]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2023 00:21:10 -0800 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: linux-serial@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby , linux-kernel@vger.kernel.org Cc: =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH 6/8] n_tty: Cleanup includes Date: Thu, 9 Mar 2023 10:20:33 +0200 Message-Id: <20230309082035.14880-7-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230309082035.14880-1-ilpo.jarvinen@linux.intel.com> References: <20230309082035.14880-1-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org n_tty uses: - bitmap_zero() from linux/bitmap.h - EXPORT_SYMBOL_GPL() from linux/export.h - jiffies, time_after() from linux/jiffies.h Add includes. n_tty uses nothing from: - linux/audit.h - linux/interrupt.h - linux/major.h - linux/mm.h - linux/module.h - linux/timer.h Remove those includes. Signed-off-by: Ilpo Järvinen --- drivers/tty/n_tty.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c index 6d754fc35dce..0481e57077f1 100644 --- a/drivers/tty/n_tty.c +++ b/drivers/tty/n_tty.c @@ -28,24 +28,21 @@ * EAGAIN */ -#include +#include #include #include #include +#include #include #include -#include -#include +#include #include -#include -#include #include #include #include #include #include #include -#include #include #include #include