Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp921805pxp; Wed, 16 Mar 2022 21:23:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9naZbPDNgRXNOYI8ZG0FeMuKMUpmyBpLWK5afYgg1EL7q7cYnKJAvENSTaGUqnjrbRxt6 X-Received: by 2002:a63:b51:0:b0:381:6a51:9481 with SMTP id a17-20020a630b51000000b003816a519481mr2206358pgl.582.1647491038237; Wed, 16 Mar 2022 21:23:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647491038; cv=none; d=google.com; s=arc-20160816; b=q/4M3aIahX3XtapgKbo9txSn8/5dTlI/1Z6oDlTI8wZBvYzwWS2ahjg6/DiBPPmpuv qpyzOuOyo2w4es3RClUm0zOfuoydqlQCKq6uiKBclg0xGoUEZGSWV0H+PQquwTuqgMrB ntfJ+pL8NofVI6R98M+TMDtUnoQj16fWgkJ0JBmjsLaCtZLwr42EudrbZMmpkY7RPwf9 9nPp0O0yCU5hGrAx39FQqLAZ8hKIwLT1rX/NfH6WcXKXFtWB/OgVjkUZ4JLKERyUup8p X+ChnvRkPyKfPQPv9NS8F7nG02hoLkSYDac534f1sNdVR9i+dKadadngi1zqEy6K3LgW Ae3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=dhShZJpIi5rA4q64G/3XfKyLvtWNuoN7L/NR19uLtz8=; b=dU/q4KoeHpkIOJvQedTZB8Rg5sv8q/0f3OIku/SgMVzyBDqmxboA04NQuarzfPDN2M a4F+ND4pkX9rjhhiglbs7rTix6ZmLRhci82H2Mrpk4ltGKkwGOoa6izSlT46MOwchB9g pWLMSq3B78XDOGwY0S0OVqCUQVOuhDvk7/LKeF+5uzqYbMqTYq/ASVnCtzKKqKYhh+gG t664nx66k2VrjBQ9eeMmUTPoQybEVPU/hyCaIWRxMBAk7V4XuuCH+xfVP1aqhDe4ofvy 6T7NZHC3MSx84vrlJZII9/mCIqTNHdPt9J+c2Okt3kzUXXAn+vebw4DGD52N+3fZUNMN NVbg== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b186-20020a6367c3000000b003816043ee7fsi966644pgc.116.2022.03.16.21.23.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 21:23:58 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 258ADE5408; Wed, 16 Mar 2022 20:56:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358333AbiCQBuX (ORCPT + 99 others); Wed, 16 Mar 2022 21:50:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239498AbiCQBuV (ORCPT ); Wed, 16 Mar 2022 21:50:21 -0400 Received: from out30-56.freemail.mail.aliyun.com (out30-56.freemail.mail.aliyun.com [115.124.30.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82FA3140F2; Wed, 16 Mar 2022 18:49:06 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R391e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04357;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0V7OidcP_1647481740; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0V7OidcP_1647481740) by smtp.aliyun-inc.com(127.0.0.1); Thu, 17 Mar 2022 09:49:04 +0800 From: Jiapeng Chong To: viro@zeniv.linux.org.uk Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] namei: make filename_parentat static Date: Thu, 17 Mar 2022 09:48:59 +0800 Message-Id: <20220317014859.4292-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no 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 This symbol is not used outside of namei.c, so marks it static. Fix the following w1 warning: fs/namei.c:2587:5: warning: no previous prototype for ‘filename_parentat’ [-Wmissing-prototypes]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- fs/namei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/namei.c b/fs/namei.c index 44c366f3152f..fe3525807361 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -2584,7 +2584,7 @@ static int __filename_parentat(int dfd, struct filename *name, return retval; } -int filename_parentat(int dfd, struct filename *name, unsigned int flags, +static int filename_parentat(int dfd, struct filename *name, unsigned int flags, struct path *parent, struct qstr *last, int *type) { return __filename_parentat(dfd, name, flags, parent, last, type, NULL); -- 2.20.1.7.g153144c