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: 95695 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp325867vqo; Thu, 18 May 2023 01:22:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ47/Q5w1crKoHFz6NbVt5Fkllb/bFJj6w9HnIc69kKRHOiYgbFsRTvqvhGECC2mL+ZvfJ0Z X-Received: by 2002:a05:6a00:179e:b0:63b:854c:e0f6 with SMTP id s30-20020a056a00179e00b0063b854ce0f6mr4125224pfg.21.1684398143118; Thu, 18 May 2023 01:22:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684398143; cv=none; d=google.com; s=arc-20160816; b=y9s69sRZe9KnSFpGjvN1zz5G9EKvxNfZ97WMXg1lI/tDdPkQYrU7OGQuRKpq4QMVMv 937UQ/lWQ8Jds4rkcpErFZBLkTpMkMylcysiy0LEQu6WUnDai9dRWuIKTHD/eR+t5u8C B4SXRn0pBDG/pkzTv25lYiY48WpZTt2GWDDN+e0bAxVm+qGQWH0FLdEUDVNQzeUCEVVh ceIwoqRYOSPwfjYLstv1Q+WGqzk9KOjz65GhMqeRUxU5Rv73b0pao0hwGYbszBRl3OhW Lc1AwaLFpGyEfx9IZ8naLngYqCHpcLmEOCl40lZfyHrHPD1Eqi4bKNemKrjPbRgudnra TG1Q== 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=16gO/loGu0INN658ZtRJCaWGdIbpt34XjgZmDIgC/Po=; b=TWyfddOfb7DNNpH75GloBCWR6QzY5bAcbMw2LMUaGMdydU/aJNCGazMIXmzd5+B7+3 HxYbgO1FmCxV2k/9X4Ql6/fu3G7sQ8KRKOMo/QhMrdvec0XH2Ig6biOwxzSiwHM9/ZcS Lk0heo+JAF3nkEoq1KZgdLpy4MlOPHD2ckpJ+SaOSJ4Dm4Wr5LRFd7NfrMPOTmmuVw2Q qcj8wlvE1UK8h+YWjpMJyrB1Uv83F5gY+9ifGMCJoRscDSM+U/Lz/SWlXZeagwbpE36o 0Ryr3ZvxjfFU0k/pT8KbR6k/Az18W5FLnsjvqMVuqkerAipQfhr3W7NECyeg+Up453mI GT/Q== 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 w186-20020a6382c3000000b00520ad015da5si900005pgd.462.2023.05.18.01.22.10; Thu, 18 May 2023 01:22:23 -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 S229779AbjERIF1 (ORCPT + 99 others); Thu, 18 May 2023 04:05:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229669AbjERIF0 (ORCPT ); Thu, 18 May 2023 04:05:26 -0400 Received: from out30-97.freemail.mail.aliyun.com (out30-97.freemail.mail.aliyun.com [115.124.30.97]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 063842100 for ; Thu, 18 May 2023 01:05:24 -0700 (PDT) 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-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766219467326859552?= X-GMAIL-MSGID: =?utf-8?q?1766219467326859552?= 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;