From patchwork Tue May 15 02:20:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Kent X-Patchwork-Id: 10399779 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 20865601C8 for ; Tue, 15 May 2018 02:21:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 95F56285B9 for ; Tue, 15 May 2018 02:21:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8AC9F2866D; Tue, 15 May 2018 02:21:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37594285B9 for ; Tue, 15 May 2018 02:21:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752061AbeEOCVP (ORCPT ); Mon, 14 May 2018 22:21:15 -0400 Received: from icp-osb-irony-out9.external.iinet.net.au ([203.59.1.226]:43399 "EHLO icp-osb-irony-out9.external.iinet.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752013AbeEOCVO (ORCPT ); Mon, 14 May 2018 22:21:14 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2CwBgC2Q/pa/+U/0XZcHgEGDINDgVwog?= =?us-ascii?q?3SUdkYBAQEBAQaBBzR8kzKBeB4YAYRAgxMhNBgBAgEBAQEBAQJsKIVSVigBDAI?= =?us-ascii?q?YDgJJFhOFFwysAYIcGgKIMIIngQmHHIEMgQeBPopPglQChziFQos8CY5Rh2uFA?= =?us-ascii?q?wGSCBw4gVJNLgo7gkOQWzIwegEBj3sBAQ?= X-IPAS-Result: =?us-ascii?q?A2CwBgC2Q/pa/+U/0XZcHgEGDINDgVwog3SUdkYBAQEBAQa?= =?us-ascii?q?BBzR8kzKBeB4YAYRAgxMhNBgBAgEBAQEBAQJsKIVSVigBDAIYDgJJFhOFFwysA?= =?us-ascii?q?YIcGgKIMIIngQmHHIEMgQeBPopPglQChziFQos8CY5Rh2uFAwGSCBw4gVJNLgo?= =?us-ascii?q?7gkOQWzIwegEBj3sBAQ?= X-IronPort-AV: E=Sophos;i="5.49,402,1520870400"; d="scan'208";a="75207484" Received: from unknown (HELO pluto.themaw.net) ([118.209.63.229]) by icp-osb-irony-out9.iinet.net.au with ESMTP; 15 May 2018 10:20:53 +0800 Subject: [PATCH] autofs - clean up includes From: Ian Kent To: Andrew Morton Cc: linux-fsdevel , autofs mailing list , Kernel Mailing List Date: Tue, 15 May 2018 10:20:52 +0800 Message-ID: <152635085258.5968.9743527195522188148.stgit@pluto.themaw.net> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove includes that aren't needed from autofs (and fs/compat_ioctl.c). Signed-off-by: Ian Kent --- fs/autofs/autofs_i.h | 2 +- fs/autofs/dev-ioctl.c | 13 ------------- fs/autofs/inode.c | 6 +----- fs/autofs/root.c | 6 ------ fs/autofs/waitq.c | 4 ---- fs/compat_ioctl.c | 1 - 6 files changed, 2 insertions(+), 30 deletions(-) diff --git a/fs/autofs/autofs_i.h b/fs/autofs/autofs_i.h index 9110b66c7ef1..9400a9f6318a 100644 --- a/fs/autofs/autofs_i.h +++ b/fs/autofs/autofs_i.h @@ -25,7 +25,7 @@ #include #include #include -#include +#include /* This is the range of ioctl() numbers we claim as ours */ #define AUTOFS_IOC_FIRST AUTOFS_IOC_READY diff --git a/fs/autofs/dev-ioctl.c b/fs/autofs/dev-ioctl.c index a2281ab2b957..ea4ca1445ab7 100644 --- a/fs/autofs/dev-ioctl.c +++ b/fs/autofs/dev-ioctl.c @@ -7,23 +7,10 @@ * option, any later version, incorporated herein by reference. */ -#include -#include #include -#include -#include -#include -#include -#include -#include -#include -#include #include #include #include -#include -#include -#include #include "autofs_i.h" diff --git a/fs/autofs/inode.c b/fs/autofs/inode.c index 6262819ede45..b51980fc274e 100644 --- a/fs/autofs/inode.c +++ b/fs/autofs/inode.c @@ -7,16 +7,12 @@ * option, any later version, incorporated herein by reference. */ -#include -#include -#include #include #include #include -#include #include + #include "autofs_i.h" -#include struct autofs_info *autofs_new_ino(struct autofs_sb_info *sbi) { diff --git a/fs/autofs/root.c b/fs/autofs/root.c index a4b36e44f73c..a3d414150578 100644 --- a/fs/autofs/root.c +++ b/fs/autofs/root.c @@ -9,13 +9,7 @@ */ #include -#include -#include -#include -#include -#include #include -#include #include "autofs_i.h" diff --git a/fs/autofs/waitq.c b/fs/autofs/waitq.c index 8a566fa66afe..8c858126c751 100644 --- a/fs/autofs/waitq.c +++ b/fs/autofs/waitq.c @@ -7,11 +7,7 @@ * option, any later version, incorporated herein by reference. */ -#include -#include -#include #include -#include #include "autofs_i.h" /* We make this a static variable rather than a part of the superblock; it diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index b3e1768b636e..9907475b4226 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c @@ -38,7 +38,6 @@ #include #include #include -#include #include #include #include