From patchwork Sat Jun 20 07:16:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 11615817 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2E4C714E3 for ; Sat, 20 Jun 2020 07:17:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 166802395C for ; Sat, 20 Jun 2020 07:17:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="BG9cLxkr" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727066AbgFTHRB (ORCPT ); Sat, 20 Jun 2020 03:17:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727030AbgFTHRA (ORCPT ); Sat, 20 Jun 2020 03:17:00 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9984DC06174E; Sat, 20 Jun 2020 00:17:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=Hmdq74RZRFXfpfO9/RDPzhQUUxVgGOMLesCz3fORA5E=; b=BG9cLxkrEehmE2mHnPkXBWfH5Q pwPWhbSjz+QbTzfhQNXvUwRtKKuo1BrmKKETe9J4JdBv7TOmAPWbqIkQazQlWVEC0DGbHNLiQYP8o 5/hk/SvZfyl02t/YpW9t1ZBuJTPhUYIEmtXH3sXQv+FEEFNw0SCrpyTUQEUKNkbejTFaL/7iV3Jms ELzo5LXE1jzLKBC/MXzKH3hUh5sxSsOqdCZ3DjJZ/Q30iWIktScCmBbYuHglHR5n6ZSZdEPM8ZvWx WX0QAy08qNNuq0sKdyWmbvfkXyEqh0Gu95rZVOZk0BC7Wqms83OL3Zctb79ODMimkpIEbp6TT7uw0 oeKjD67w==; Received: from 195-192-102-148.dyn.cablelink.at ([195.192.102.148] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jmXkI-0003rm-CS; Sat, 20 Jun 2020 07:16:58 +0000 From: Christoph Hellwig To: Jens Axboe Cc: Al Viro , Greg Kroah-Hartman , Jiri Slaby , linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 04/10] fs: remove the HAVE_UNLOCKED_IOCTL and HAVE_COMPAT_IOCTL defines Date: Sat, 20 Jun 2020 09:16:38 +0200 Message-Id: <20200620071644.463185-5-hch@lst.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200620071644.463185-1-hch@lst.de> References: <20200620071644.463185-1-hch@lst.de> MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org These are not defined anywhere, and contrary to the comments we really do not care about out of tree code at all. Signed-off-by: Christoph Hellwig Reviewed-by: Bart Van Assche Reviewed-by: Johannes Thumshirn --- include/linux/fs.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/linux/fs.h b/include/linux/fs.h index 0d282c853691a3..224edcc5b56e62 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1774,12 +1774,6 @@ struct dir_context { loff_t pos; }; -/* These macros are for out of kernel modules to test that - * the kernel supports the unlocked_ioctl and compat_ioctl - * fields in struct file_operations. */ -#define HAVE_COMPAT_IOCTL 1 -#define HAVE_UNLOCKED_IOCTL 1 - /* * These flags let !MMU mmap() govern direct device mapping vs immediate * copying more easily for MAP_PRIVATE, especially for ROM filesystems.