From patchwork Wed Aug 16 02:31:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Kent X-Patchwork-Id: 9902827 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 C3224603B5 for ; Wed, 16 Aug 2017 02:31:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B4A7E2876E for ; Wed, 16 Aug 2017 02:31:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A9838287A1; Wed, 16 Aug 2017 02:31:55 +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=-6.9 required=2.0 tests=BAYES_00,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 8CFDB2876E for ; Wed, 16 Aug 2017 02:31:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752799AbdHPCbT (ORCPT ); Tue, 15 Aug 2017 22:31:19 -0400 Received: from icp-osb-irony-out4.external.iinet.net.au ([203.59.1.220]:7064 "EHLO icp-osb-irony-out4.external.iinet.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752612AbdHPCbS (ORCPT ); Tue, 15 Aug 2017 22:31:18 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2BaAgBDrZNZ/0Tj/dxeHAEBBAEBCgEBgy0tgXmOEpAROAEBAQEBAQaBCDORK4RcDoIEHIUrhDg/GAECAQEBAQEBAWsohUJWKAEHBQIYDgJJFhOKIgyscoImIgKLd4ELgh2CAoEFgmCHTIJuDDGCYQWSHo4flECLXYZ8SJVQHziBClMvCoUQAQuCVDM2igIBAQE X-IPAS-Result: A2BaAgBDrZNZ/0Tj/dxeHAEBBAEBCgEBgy0tgXmOEpAROAEBAQEBAQaBCDORK4RcDoIEHIUrhDg/GAECAQEBAQEBAWsohUJWKAEHBQIYDgJJFhOKIgyscoImIgKLd4ELgh2CAoEFgmCHTIJuDDGCYQWSHo4flECLXYZ8SJVQHziBClMvCoUQAQuCVDM2igIBAQE X-IronPort-AV: E=Sophos;i="5.41,380,1498492800"; d="scan'208";a="285016017" Received: from unknown (HELO pluto.themaw.net) ([220.253.227.68]) by icp-osb-irony-out4.iinet.net.au with ESMTP; 16 Aug 2017 10:31:14 +0800 Subject: [PATCH 1/5] autofs: remove unused AUTOFS_IOC_EXPIRE_DIRECT/INDIRECT From: Ian Kent To: Andrew Morton Cc: linux-fsdevel , Tomohiro Kusumi , autofs mailing list , Kernel Mailing List Date: Wed, 16 Aug 2017 10:31:13 +0800 Message-ID: <150285067347.4670.11494624644273072003.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 From: Tomohiro Kusumi These are not used by either kernel or userspace, although AUTOFS_IOC_EXPIRE_DIRECT once seems to have been used by userspace in around 2006-2008, which was technically just an alias of the existing ioctl AUTOFS_IOC_EXPIRE_MULTI. ioctls for autofs are already complicated enough that they could be removed unless these are staying here to be able to compile userspace code of certain period of time from a decade ago. Edit: imk Yes, this is indeed very old and anything that still uses must be updated becuase it will be using broken functionality. End edit: imk Signed-off-by: Tomohiro Kusumi Signed-off-by: Ian Kent --- include/uapi/linux/auto_fs4.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/uapi/linux/auto_fs4.h b/include/uapi/linux/auto_fs4.h index 7c6da423d54e..9453e9a07c9d 100644 --- a/include/uapi/linux/auto_fs4.h +++ b/include/uapi/linux/auto_fs4.h @@ -155,8 +155,6 @@ enum { }; #define AUTOFS_IOC_EXPIRE_MULTI _IOW(AUTOFS_IOCTL, AUTOFS_IOC_EXPIRE_MULTI_CMD, int) -#define AUTOFS_IOC_EXPIRE_INDIRECT AUTOFS_IOC_EXPIRE_MULTI -#define AUTOFS_IOC_EXPIRE_DIRECT AUTOFS_IOC_EXPIRE_MULTI #define AUTOFS_IOC_PROTOSUBVER _IOR(AUTOFS_IOCTL, AUTOFS_IOC_PROTOSUBVER_CMD, int) #define AUTOFS_IOC_ASKUMOUNT _IOR(AUTOFS_IOCTL, AUTOFS_IOC_ASKUMOUNT_CMD, int)