Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1979223ybh; Tue, 14 Jul 2020 12:10:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPTZC6Gw6q9Qw9hxGzOKsr1TFbjjwhBPMWhPh3H6Q480ZJ50AcIAWHmuDduJUkb96/CLc3 X-Received: by 2002:aa7:d845:: with SMTP id f5mr5964002eds.162.1594753807309; Tue, 14 Jul 2020 12:10:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594753807; cv=none; d=google.com; s=arc-20160816; b=xktm0GJaPYj2pUIjFE6HoXocTSS64HgxpwV+IeVeyrLsGL/cahYlEZIyghjZ5f64Us DblyiU89/8H0N3cUQoE2Wp7SAe9huVsvMmg0rguSbSGWPOYMr7sB/+slSFiYg56DRFTR nrEr+Jph1H7fOUkjXuMMxs2zCjrZMIkzQZoJIrpgl/K/BLLv9Z8rdBYzf5kPIeCbfm94 9TsAGqMYys2n5KEvLKxEBCUp4h1HPSBlkAF2XLbHD3aATvLQ0490dfnHC6aX1ZxGwR1r yJ16XmcRhX7Lk+GV9HBQo+VdNENVqHXCSSiwqagT9q7JKS/Rklztylj3IkUeft+bYHeL JLqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OlVLWFib6FtnZCFxbnvi/3T2WDZ4jfVYULPs6vsSQuo=; b=ljQ2ASRMYMuh8Rpby3rM1XI7xQ+l49GWiSIxTQR6Es6KOaiF9FYteytZ9QJn/Xz6ut +TgUxGm2vatxjUs5/gVsVL3dq3DOPxIqDre4d1Q/FA7OXV7pQJ/fejOVlqvCW3+1uQMv 3z6t7gSE7+knxh0cAGeRPDKsDB2P/VL7bTfbAHpvcovdcrUJCIn5NWN1kEoxdgwTBKm5 7x1Xer0jnSdp1doHQ1g6Vw34OX2DfCciP/EuA3loCQlJwEG30FV761T/O5a0yq4OdfPp kdDU4cDqVJIcts7P80yryzbir7TmO3/esrLrbvbXz4GXFD5IGlHQiWl9LzW/GjL4jYrl ZDGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=crhQAYps; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bf2si11304091edb.288.2020.07.14.12.09.44; Tue, 14 Jul 2020 12:10:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=crhQAYps; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731438AbgGNTJj (ORCPT + 99 others); Tue, 14 Jul 2020 15:09:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731402AbgGNTJW (ORCPT ); Tue, 14 Jul 2020 15:09:22 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49E35C08C5DE; Tue, 14 Jul 2020 12:09:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=OlVLWFib6FtnZCFxbnvi/3T2WDZ4jfVYULPs6vsSQuo=; b=crhQAYpsKdjX291gbV28QcA/Nx sJx9XT4L9omZ3HkZpZ7FtuxJZahDQv+cFISe8Nx6Zgy5qThex3aUMCjRfLw9+xw9jMcJr/kpwJpLn p6dhGvF1kO0hesjGm+Ke3tHJf+7ySRKJdyFkcUsIQjD5LJdNRxjOf4fAJKaBy+/BeONWT3VBmOk4Q +oTJpFpVPFZgAf0UKKOIOUPULCP6GEDCpx8HJVgwtzkh1P04embpPMfhGLqp0EQ5q3VOziIcPTiC3 serKq1W7fn52fpZxZL4fYWr8nevFDvQceR5UDI3RF8/R16UBGH0wQ8VoYNyM4MgYOvJFya1P452Bu 12M905uA==; Received: from [2001:4bb8:188:5f50:f037:8cfe:627e:7028] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jvQIq-0005ui-6o; Tue, 14 Jul 2020 19:09:20 +0000 From: Christoph Hellwig To: linux-kernel@vger.kernel.org Cc: "H. Peter Anvin" , Song Liu , Al Viro , Linus Torvalds , linux-raid@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [PATCH 22/23] fs: remove ksys_fchmod Date: Tue, 14 Jul 2020 21:04:26 +0200 Message-Id: <20200714190427.4332-23-hch@lst.de> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200714190427.4332-1-hch@lst.de> References: <20200714190427.4332-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fold it into the only remaining caller. Signed-off-by: Christoph Hellwig --- fs/open.c | 7 +------ include/linux/syscalls.h | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/fs/open.c b/fs/open.c index ab3671af8a9705..b316dd6a86a8b9 100644 --- a/fs/open.c +++ b/fs/open.c @@ -608,7 +608,7 @@ int vfs_fchmod(struct file *file, umode_t mode) return chmod_common(&file->f_path, mode); } -int ksys_fchmod(unsigned int fd, umode_t mode) +SYSCALL_DEFINE2(fchmod, unsigned int, fd, umode_t, mode) { struct fd f = fdget(fd); int err = -EBADF; @@ -620,11 +620,6 @@ int ksys_fchmod(unsigned int fd, umode_t mode) return err; } -SYSCALL_DEFINE2(fchmod, unsigned int, fd, umode_t, mode) -{ - return ksys_fchmod(fd, mode); -} - int do_fchmodat(int dfd, const char __user *filename, umode_t mode) { struct path path; diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index b6d90057476260..39ff738997a172 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h @@ -1240,7 +1240,6 @@ int ksys_umount(char __user *name, int flags); int ksys_chroot(const char __user *filename); ssize_t ksys_write(unsigned int fd, const char __user *buf, size_t count); int ksys_chdir(const char __user *filename); -int ksys_fchmod(unsigned int fd, umode_t mode); int ksys_fchown(unsigned int fd, uid_t user, gid_t group); int ksys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg); ssize_t ksys_read(unsigned int fd, char __user *buf, size_t count); -- 2.27.0