From nobody Mon Sep 15 18:06:31 2025 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 83D80C46467 for ; Wed, 11 Jan 2023 03:06:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229660AbjAKDGM (ORCPT ); Tue, 10 Jan 2023 22:06:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229652AbjAKDGK (ORCPT ); Tue, 10 Jan 2023 22:06:10 -0500 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 428B1BE0E for ; Tue, 10 Jan 2023 19:06:07 -0800 (PST) Received: by mail-pl1-x635.google.com with SMTP id jn22so15320106plb.13 for ; Tue, 10 Jan 2023 19:06:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+fX12uPNSC2t5ZlVOlJS/ChkuU5wtG5D7Pig3IIsUBQ=; b=ygi1g1WYEQaTmT7xMhGfxlp+5XLSPLxZzEtO5ngxyGYb6hcoG98Oxx4NpmydvyRoDU x4MeEt9hoyhTZUOiycjG8g++IhOXV0FT/QQrjDZwYpdxRpEjedZULVHed9IZGPNEKB4r 9m7LqmLecO1p6d0ul4TWDXX6ozxLSfp8tBu/Ic+NOQ/+jeato8iMW6+RdPCWCmFfed4n 41ythUHE/n0mHsht2e+qFnWo8eSHdNjmFilU8wDDHcizNu8tc+iIqNQMIU/T+UsgJGWr qsx9VGHRKq1pRkGfNgpm3kNsKFO/UtS+F4PEeuP1EXTmjnpGinp0cLsDH4E9lfm37car A6PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+fX12uPNSC2t5ZlVOlJS/ChkuU5wtG5D7Pig3IIsUBQ=; b=Xz0pBvtBclcMpXKDMh4hbSxxLFXvymbRtfCTZORLmXrtP1MgB3kzqQcaobTY2W2P9k BnzWyAokxi0HfIYrKushTGpJ0rZqN2NWZchUwuADWqMabIq2H8sSV+OSG+NCa80rU7bZ EAEM2US8iGOKHQZ9MD0VDyBemZJgDi4kg4QjVZVD/pHbWnpXZYnsC5S3GDM26mZydxf2 hyl2mnEInPBt1DTo8MrozR1RYShOJ71XjydQ46ri+yg0cefd/lYpoffvf+lqLDRP/PRP b5/grO+2rEP5IgVmYd6X+ur+nknyXRhdVhX1hFZTHS7gtqAKHl3Lcp91vErr0zIeokqv ziwg== X-Gm-Message-State: AFqh2kqGkmEN13ruFDE9UiqTKLlLjik7s5ZT9IzH77BmZGHjg00v0Y3r 4i2AObd3cWW1Qb7Yx2MoatFEGA== X-Google-Smtp-Source: AMrXdXsKx2IEX6ycSALLj1c0cORzoJOsd9Iep1RC5onJEdW6WA3YvZ0q43P2jacj1Q2aVDBQWVjMQQ== X-Received: by 2002:a05:6a20:b285:b0:af:ec0f:f6b5 with SMTP id ei5-20020a056a20b28500b000afec0ff6b5mr72959936pzb.11.1673406366585; Tue, 10 Jan 2023 19:06:06 -0800 (PST) Received: from C02CV1DAMD6P.bytedance.net ([139.177.225.242]) by smtp.gmail.com with ESMTPSA id 14-20020a630c4e000000b00478f87eaa44sm7290821pgm.35.2023.01.10.19.06.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 19:06:06 -0800 (PST) From: Chengming Zhou To: viro@zeniv.linux.org.uk Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Chengming Zhou Subject: [PATCH] fs/pipe: Delete unused do_pipe_flags() Date: Wed, 11 Jan 2023 11:05:47 +0800 Message-Id: <20230111030547.7730-1-zhouchengming@bytedance.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" It looks like do_pipe_flags() is not used anywhere and not exported too, so delete it. No any functional changes. Signed-off-by: Chengming Zhou --- fs/pipe.c | 11 ----------- include/linux/fs.h | 1 - 2 files changed, 12 deletions(-) diff --git a/fs/pipe.c b/fs/pipe.c index 42c7ff41c2db..9b6d7b6658f1 100644 --- a/fs/pipe.c +++ b/fs/pipe.c @@ -986,17 +986,6 @@ static int __do_pipe_flags(int *fd, struct file **file= s, int flags) return error; } =20 -int do_pipe_flags(int *fd, int flags) -{ - struct file *files[2]; - int error =3D __do_pipe_flags(fd, files, flags); - if (!error) { - fd_install(fd[0], files[0]); - fd_install(fd[1], files[1]); - } - return error; -} - /* * sys_pipe() is the normal C calling standard for creating * a pipe. It's not the way Unix traditionally does this, though. diff --git a/include/linux/fs.h b/include/linux/fs.h index 452700c5fa1d..0b8fe4243f48 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -3014,7 +3014,6 @@ static inline void i_readcount_inc(struct inode *inod= e) return; } #endif -extern int do_pipe_flags(int *, int); =20 extern ssize_t kernel_read(struct file *, void *, size_t, loff_t *); ssize_t __kernel_read(struct file *file, void *buf, size_t count, loff_t *= pos); --=20 2.37.2