From patchwork Fri Jul 14 09:36:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 120389 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp2388462vqm; Fri, 14 Jul 2023 02:56:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlG14B3w4aBh4UTQzUH2rjEKYv44xr0R9bup+Oo4/TNPyECyehRar+i9MGZyci99ij3IjC6j X-Received: by 2002:a05:6870:3411:b0:1b7:609f:e0d4 with SMTP id g17-20020a056870341100b001b7609fe0d4mr6169066oah.15.1689328588553; Fri, 14 Jul 2023 02:56:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689328588; cv=none; d=google.com; s=arc-20160816; b=Gnb1MzA34GC4p0DTWBA2wY111ooAwEODvZTdF5Ud5MSzAEPQKrAc/EpS3Or0p72Xab EnrXGxJzjgXqdFciYgsfXIGD92NJPW89cyfyBgEanIq8GF5TLuzAewSNEmw+Qxy5UReN jNHbS426MxOAV8KpPd5ATJoAnqdYhvKgBjfwzt9Bev1Cd4dTLKo9UM8oEVCPwbBBINqj VcW6k7oNWtVTrNE/CLRJ+G+b1IvVZs2f8mI6CTH+hQb2jSQmBd8p90Cmm4dSY6pd4/11 x848S7v4Mapggox2AMaIYP9XnmUFz/MFZnlrEzJUkfnGoI4aVVO+4dObjorctN0PWoJs Ot3A== 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=DqZLD9LCAp9A4nP5rEsPBjqpdBaxyp2kKsQfOL0aua8=; fh=sr3xqc1wqlwNK+QWnm51xa98XCwLN0120wa/JW8qOi8=; b=PFQipRzmIyP9XAHSe869QDGfD+eRRQEvE/L3OBkZjyMiA5mUsXwv0kVkWVCsEq9RmW LxLTd7gL4eJpTp1NIQBylTDzaEhlzPOy6N5iBY60viOkNQoZRtwKTwsb9jjH/iuC85yC mYC7NoTKd6nW8XXl8krOocpxF7xoOk4/8nE7moOUiAQxlFKHUArNlyllL88FfzB9/8o7 ikDZE+Z9l0kdw3HIPVLoV4NBskff+HErcpSYcflySGINbC0S6iiSRrmLZ9DpRn/+wcP6 aBMu6R5fU+7IT72bWeQRwXCCVg77CsQtc1a3AznqwtlLac147FKqBNs4RlThIoAaXzX5 lNJg== 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=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 32-20020a631360000000b0051b9ce24708si6733473pgt.103.2023.07.14.02.56.15; Fri, 14 Jul 2023 02:56:28 -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=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235586AbjGNJhQ (ORCPT + 99 others); Fri, 14 Jul 2023 05:37:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235713AbjGNJhA (ORCPT ); Fri, 14 Jul 2023 05:37:00 -0400 Received: from out30-111.freemail.mail.aliyun.com (out30-111.freemail.mail.aliyun.com [115.124.30.111]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DD9E3A81 for ; Fri, 14 Jul 2023 02:36:50 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046056;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0VnM.6BU_1689327407; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VnM.6BU_1689327407) by smtp.aliyun-inc.com; Fri, 14 Jul 2023 17:36:48 +0800 From: Yang Li To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] shmem: make inner function static Date: Fri, 14 Jul 2023 17:36:46 +0800 Message-Id: <20230714093646.106703-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,URIBL_BLOCKED, USER_IN_DEF_SPF_WL 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: 1771389414210443854 X-GMAIL-MSGID: 1771389414210443854 shmem_mark_dquot_dirty() and shmem_dquot_write_info() are not used outside of shmem_quota.c, so make them static. silence the warnings: mm/shmem_quota.c:318:5: warning: no previous prototype for function 'shmem_mark_dquot_dirty' mm/shmem_quota.c:323:5: warning: no previous prototype for function 'shmem_dquot_write_info' Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5884 Signed-off-by: Yang Li --- mm/shmem_quota.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/shmem_quota.c b/mm/shmem_quota.c index e349c0901bce..062d1c1097ae 100644 --- a/mm/shmem_quota.c +++ b/mm/shmem_quota.c @@ -315,12 +315,12 @@ static int shmem_release_dquot(struct dquot *dquot) return 0; } -int shmem_mark_dquot_dirty(struct dquot *dquot) +static int shmem_mark_dquot_dirty(struct dquot *dquot) { return 0; } -int shmem_dquot_write_info(struct super_block *sb, int type) +static int shmem_dquot_write_info(struct super_block *sb, int type) { return 0; }