From patchwork Wed Aug 2 13:26:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 129845 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp471572vqx; Wed, 2 Aug 2023 06:52:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlFYFcCKVaOpPVVdDaPOrBG1AlhsxB4VmV8pOjeF9D838pkrNXkSVheHFtQShqzXBy1y6CoS X-Received: by 2002:a17:903:264e:b0:1b8:76fc:5bf6 with SMTP id je14-20020a170903264e00b001b876fc5bf6mr15622530plb.43.1690984347445; Wed, 02 Aug 2023 06:52:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690984347; cv=none; d=google.com; s=arc-20160816; b=nk3GX/htB7vOHI7KTbB8GIk+YLYMfjdIXBfDS7AI8UisrECL1qsnjCoKjbaa9txqGB hnwEGCIi9er3hXBoT//0cw3v2RaHqxwwTyL28GQtF7e9VNIJ6fT3nDKZ9CPsIRRD/+s9 V0SRRaAHxm1l4TKHV8/yHEC/08fJN4WRggumQmdMpOukTnzKuh9pgi4ElgefJhRjtJ/8 gQc2KYQghWaXEK1vUV50xF12ps6wpCC74xtwfDlDy3kyAZdd6MS34nGnpbfYtBaf4SYg +8Mf8HiT2+Qjud/jtBAumqMzbzEYbU7pSmANXM9lVN0SJpxxmKdNj1/2tUvqsM0VKkrg B2IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=gZIbkvKmEUaBDZ5mKmGiB14klHFY98w/i0nb/gzHsDA=; fh=P40w/AFCMe3+gRxZHIaa4AQyt11Y9Tz9n/Zv5RtojwQ=; b=GglV2LrEF2VMTGne2ti7c/kUxRh8V0x3s6QR+XDWgA0K1mEngHUfGF64fy/eoFeFuH 3QsA7pW6ecLLqaTmCZ735caBaMbfBLgKh7R0mKf9U/06rl1Vz1IIKYoUc4/wbjiAwn6z ZMTE7/pUDSuOkf9uoX7vQwslL4DGWNx2eEfARovYrpgHa3hh73EmKMYyrBltlKiEyrgW PLCl1nFM/nL0Wbm2fAHSK3RMHTULzR02ara2esQkqUStBL3YFQf+kWsbMlrwWYLWsWu+ PiIXMgwwiPOKU4+1YxJM3hTqirppweqADNAw1Rwpt9wevrCGby79hwAP3WWy5+h7xFZ2 1zYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e15-20020a17090301cf00b001ac6d4e1d72si11022656plh.149.2023.08.02.06.52.12; Wed, 02 Aug 2023 06:52:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234176AbjHBN1B (ORCPT + 99 others); Wed, 2 Aug 2023 09:27:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234119AbjHBN07 (ORCPT ); Wed, 2 Aug 2023 09:26:59 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F76626B5; Wed, 2 Aug 2023 06:26:53 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4RGCP2665kzLnxQ; Wed, 2 Aug 2023 21:24:06 +0800 (CST) Received: from localhost (10.174.179.215) by canpemm500007.china.huawei.com (7.192.104.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 2 Aug 2023 21:26:49 +0800 From: Yue Haibing To: , CC: , , Subject: [PATCH -next] dcache: Remove unused extern declaration d_instantiate_unique() Date: Wed, 2 Aug 2023 21:26:32 +0800 Message-ID: <20230802132632.22668-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To canpemm500007.china.huawei.com (7.192.104.62) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773125603237266545 X-GMAIL-MSGID: 1773125603237266545 From: YueHaibing Since commit 668d0cd56ef7 ("replace d_add_unique() with saner primitive") this is not used anymore. Signed-off-by: YueHaibing --- include/linux/dcache.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/dcache.h b/include/linux/dcache.h index 6b351e009f59..612fb55623a0 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h @@ -220,7 +220,6 @@ extern seqlock_t rename_lock; */ extern void d_instantiate(struct dentry *, struct inode *); extern void d_instantiate_new(struct dentry *, struct inode *); -extern struct dentry * d_instantiate_unique(struct dentry *, struct inode *); extern struct dentry * d_instantiate_anon(struct dentry *, struct inode *); extern void __d_drop(struct dentry *dentry); extern void d_drop(struct dentry *dentry);