From patchwork Thu May 18 08:05:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jiapeng Chong X-Patchwork-Id: 13246275 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 942AEC77B7A for ; Thu, 18 May 2023 08:05:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9202A900004; Thu, 18 May 2023 04:05:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8D1BC900003; Thu, 18 May 2023 04:05:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7C064900004; Thu, 18 May 2023 04:05:30 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 6A327900003 for ; Thu, 18 May 2023 04:05:30 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 15D661207DA for ; Thu, 18 May 2023 08:05:30 +0000 (UTC) X-FDA: 80802641220.24.A121254 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by imf20.hostedemail.com (Postfix) with ESMTP id CF11D1C000F for ; Thu, 18 May 2023 08:05:26 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=none; spf=pass (imf20.hostedemail.com: domain of jiapeng.chong@linux.alibaba.com designates 115.124.30.133 as permitted sender) smtp.mailfrom=jiapeng.chong@linux.alibaba.com; dmarc=pass (policy=none) header.from=alibaba.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1684397128; 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-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=16gO/loGu0INN658ZtRJCaWGdIbpt34XjgZmDIgC/Po=; b=aEOdl41Okfs0/TBKB/EKqYUOoXw2qIC8GLTAVcZZNQ4ijPaGx01zeUK/FqphSd1Uoiukuw t0hzZbrfHGyagsbvmTqaCGf6YUF8cxIDrSahls//tb8WfxzikpFNwuVm3303gtNwNqXCos 1jvBscsP+sW7eFgKnCjp2J/sQi5ybJs= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1684397128; a=rsa-sha256; cv=none; b=0sFhGRq3wzmI0I0WlmnboXBIY9EJRJ80QyAxYPM+MUZyRzOwMS9ADAWf6xZJO7gNKoaf5F snIzsjWCWcJ33J3LVpbzz95KxOfLezFEbME+W4hftYQc5uvuNuzHyxS5CsoysUI5xUoM0r 3FyjBHABcNI016vW6s+BfN12FYA0Mug= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=none; spf=pass (imf20.hostedemail.com: domain of jiapeng.chong@linux.alibaba.com designates 115.124.30.133 as permitted sender) smtp.mailfrom=jiapeng.chong@linux.alibaba.com; dmarc=pass (policy=none) header.from=alibaba.com X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0VivzZ6G_1684397108; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VivzZ6G_1684397108) by smtp.aliyun-inc.com; Thu, 18 May 2023 16:05:22 +0800 From: Jiapeng Chong To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] mm: page_owner: make some functions static Date: Thu, 18 May 2023 16:05:07 +0800 Message-Id: <20230518080507.97556-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 X-Stat-Signature: 6p5p4n7mh7ehrgcay3rk3qspwjgg8ism X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: CF11D1C000F X-HE-Tag: 1684397126-829965 X-HE-Meta: U2FsdGVkX19+6bZfwMDd0HmHJR0dVyrjr0N+6F5fb0m+s3N0IIa+Mkf8DzT3Zj35JlznLAaTbvEYxPa3UvEjfXAzUwHAVNK521xpVrf9lSu00dRXwVGpOMgBp/mROF8ruZCQb1hZJOTYI9RwSBBgt8AMZVmwk0+6bn/C4paUbngxVWqKhVYEnZ1dTIdYw/FncYqtJhjOhlWLU5Dxzla7DTNe9a0/ydsN/o1xVFzJLFThOBpVMvXPv5irGKCm9gCGNs+iNMiQqQwp15FIToL2vYB1Lq2t8FTo78uDMC7VykA6y0nAkSYU7+39TUTYacatqyrBDTE7a93u50tTEHaxh2K/hCkJS9gV0aLe44a2pAC+0yHpBsWef871W8bTtINUpMzNXY4tKe0HmRuh7BDNBytqdNOf0+/iHTfW6voX5tFfv6cx0sMtfCYsD5MzSRQeCmlvS0ibyuuyRep00Menp+fsQbTQvD19R2Dws4npX+fJz2Q6pJ0fxziz2M/+fvCSNZRadPfkVlZo05wVCeuPXxjPRXwdVp9tPRmFHHlDGgy3oF5aIwcszp7uGCEQH/eDX1cQ/FK4tcMtvhwE7FzsrCYW5X8btDtinGcoCxKph8YZJYOeIxdWvp0Gffq3jWpcPgMY5dhFR71u//Kuxalx9b6W73g9FAKrw1QYBqsxY0HTzMfgVYkJ6+H8y/7zy6iixddlo57ay5fGsSJuheoKp9oMsdV0HMkhCbPSpBlhTk/jczX/gFMR9k5thAzZMkdbzj28T9puG7Y/+0DiGEK9x64BVKcF4I1Mz1oBT7/xEbLFxWoUbGLQlnNMHfGCQATjLuaoshr1UqLxjNkCY/gwh8IVHCoNWm7dpR7s0ah5xsHeYL1sTHTSNbJjGiLbbIHg/DYPs112QDdnSo1ph5Vd1A6a8J0GfxeJTAb6xsW7EN53Kmc5VQOyUt6qPkaqzmaYDrQ6krc76UY98U03M5X BGnWUt1Q dHWvugZNq3kEF8c2jEhKhZjkdH1qud7FkmlxwTduuGrXQdFPZ+cOo7m28WRU9+x0Md/J6uzklcj2k+UoWrZ6E+n3surTGk2HhJCntLFNNovaxpj2zli2xA9vkl4lbE34aciHb+8EuWVwldejAJFnFg7v03VdM5vrZwNeGlgU6CIjQ+U0M+QuouYHpKrUaxQgH/zAl14G2L7ILq/o= 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: These functions are not used outside the file page_owner.c, so the modification is defined as static. mm/page_owner.c:748:5: warning: no previous prototype for ‘page_owner_threshold_get’. mm/page_owner.c:754:5: warning: no previous prototype for ‘page_owner_threshold_set’. Reported-by: Abaci Robot Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=5235 Signed-off-by: Jiapeng Chong --- mm/page_owner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/page_owner.c b/mm/page_owner.c index 28c519fc9372..bbec66cd1b72 100644 --- a/mm/page_owner.c +++ b/mm/page_owner.c @@ -745,13 +745,13 @@ const struct file_operations page_owner_stack_operations = { unsigned long page_owner_stack_threshold; -int page_owner_threshold_get(void *data, u64 *val) +static int page_owner_threshold_get(void *data, u64 *val) { *val = page_owner_stack_threshold; return 0; } -int page_owner_threshold_set(void *data, u64 val) +static int page_owner_threshold_set(void *data, u64 val) { page_owner_stack_threshold = val; return 0;