Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp622386rwd; Thu, 18 May 2023 01:19:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ53tPFhnHpymOKOKGTnWbsLiuEK15WfmIFBLsTWEiAOwyGqTPGyM5V2MQahi5Dl1IWEE/fR X-Received: by 2002:a17:902:e745:b0:1ae:f37:c1ab with SMTP id p5-20020a170902e74500b001ae0f37c1abmr1988906plf.25.1684397994413; Thu, 18 May 2023 01:19:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684397994; cv=none; d=google.com; s=arc-20160816; b=vVQnEDxiN4Ka/lw6okVd9ZqZMKLpuF6kLChcCJW6bJWH6Ez4yKj0xjMuWGbzkuIYpU SQS8qGFl2TrAOiuOi71PfzOeF91YHwrMhoJnRYA5nD/Cr5Qj4/zVn3d/neOZhvBEbo3e wYa9XSfZSgM0bKcEVSwOhx6qU6YEyrPuxXl2xPHwpMlZAhaOOSRJioLJ22AJZ2z8tQwE lKPLte4CzIlGMUtHtohCkXE+vzhPB9hDK//Jn35VwnP/2YhWSZHugwyt4UkRbTkAcwG9 YUXOxoghhE6tvraHy3JBvvzewtUuBJ/yxKqSKLQ8W7Gi1Vy34tI4yAl0XY3OOcjA+2kr P+0A== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u16-20020a17090341d000b001add3e9cc4bsi745304ple.535.2023.05.18.01.19.42; Thu, 18 May 2023 01:19:54 -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 S229704AbjERIF1 (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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 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; -- 2.20.1.7.g153144c