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: 13313417 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD531C0015E for ; Fri, 14 Jul 2023 09:36:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 24E566B0071; Fri, 14 Jul 2023 05:36:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1FE316B0072; Fri, 14 Jul 2023 05:36:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0ECF96B0074; Fri, 14 Jul 2023 05:36:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id F13D76B0071 for ; Fri, 14 Jul 2023 05:36:55 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id BA682A01B1 for ; Fri, 14 Jul 2023 09:36:55 +0000 (UTC) X-FDA: 81009713190.18.B15BEA8 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) by imf15.hostedemail.com (Postfix) with ESMTP id 7A095A0007 for ; Fri, 14 Jul 2023 09:36:52 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=alibaba.com; spf=pass (imf15.hostedemail.com: domain of yang.lee@linux.alibaba.com designates 115.124.30.130 as permitted sender) smtp.mailfrom=yang.lee@linux.alibaba.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1689327414; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=DqZLD9LCAp9A4nP5rEsPBjqpdBaxyp2kKsQfOL0aua8=; b=qw8AwOY9QGCFPGxQAQqeA72uIoIu3Tnsddjjda9E/oQrn8YOSFgWfipZbXTxOzp3MchV9P 5z7LbsmVKajDDU4glouC7dxPsPph/AKtX5jpqZjELyAvJT1pnUvM/h/mwTw8SvjnIFVFFk Ds8PNvLC3WGYHakFHGKXzV8gkl8iA7s= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=alibaba.com; spf=pass (imf15.hostedemail.com: domain of yang.lee@linux.alibaba.com designates 115.124.30.130 as permitted sender) smtp.mailfrom=yang.lee@linux.alibaba.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689327414; a=rsa-sha256; cv=none; b=5KLgSWtyClzzjV1g/3v86YNu6qVR9oJmweRDsJ7wMuwHhXh9z5jPbAoD10sFvl6Jiwh8H9 yhhGb03F5IHgKnLvqOIlIJcx6nr3fyUlLOuWJAMCJxDqXxYqrHR0G0nV19pGxnVur84RgD cplRne6Yn51WH9tVQYipbZZPLugjPD0= 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-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 7A095A0007 X-Stat-Signature: 713iuphk491i1axgn1rikeencrj3q9ip X-Rspam-User: X-HE-Tag: 1689327412-614958 X-HE-Meta: U2FsdGVkX1+QMZN+qDSWKjY+M+DRaRE16p6hFG6TNj4MwGqngjAFD7TzFLMhRJTdiZCUDb6PR116+s1h1wTmPuNJ3H2UX0ZooEhBSmQKcnKunxytc/MccOoNQ7xOVtaAOdPdvru5l5Ny/bFq1mjzLxR1BNkljZZNbBjAVy8cFATXqrjep9BTjmz6AmVzomYR1oiBj+uMHRrb6GyxqQE3ETxA8F+6yxK7ESRYJ2j2sZyWdT+87PHyhDZit9e6ixRxq/BS82Gw5+SBtycGWuDfTpG6q2gyOo343roGtF204jTcoJg0WXn4Aig0z5ZTIKy8ayqliwwTrNgsfE2qE/69VRAxpN5bd71Lppw19ulKoP/jxm+8wLiNyqu7djrHFFuefvC7OJOHsbfFA5x3wWq3b3edHo0qahEl3c4Rt1+wqIlMOoIGyrEBWixIEJ0q3YmyFXGxi993xqqKfbjRqpI52w5jmbB3b4bAipDJQNfM0yaP6tR/97MxRj2y2NqpBZ7/k39/YXmJfdET51GE844YllDQKF1817nBjPhsKUlDbSrAzaObu3E/n8S2Nr+FkFe5r+zM/6fiuZs+Y9y1K0vGUyBndr1Aegik53l5BZVL0lwHtQG2zAQAQPXudTD5Jj9TJ8ndvmITEs7kEivVVFSIyzvOwxJPN4EmwnU3vYcxcufS0PgqFeQvtMcjbPw0KZ5ieyr5an15uKjjfQ+Wb46eWmxqv4JmULeYac9J685ABNM7b3szb6qbphXQf5z04naqNkG4cPqO0VP54duRqkjudW9AhDC5r3voxkK9M6SvENAHN60BRXw5hvNj7S96bL1i9BuLyhZlNcBwBt0Ii8bEzntJgl5Rn8JAOKSAH5/dVQcQk60ZO2dR9VIxOA8DibizVqpy0SD4Yb+jLpJ7Rl3ftpvDTLLSS9nXnmR37O5XoCd/Qc6p7f+D+nZgxqXsrCVLqx4eg3y8gdMNzUfHmCg l6TtCrae sqhOWOKHsb2FiVPn1MUg4IFZ+k1x2BlndaP4xjOVg2vF0z3cbfEM9t7v2ZbxBt+F0mjAC020UN21uEB9KaCi9A8T4yumwl/umBuj2yqCArYTO6/KsDC7hYpm4a7WtMaxMty8/h0Y82IPwwxo+TXRoCgeIgrXBU0iZur+ZmKEbi1rkibTPVgWm1+g2gfSrfZnnAv2B7HiUq14Z1eLHpHUdRG1V54I4QP9Hqdj/rRJxpY5av1xLD6V8GCSfcA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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; }