Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp44227pxu; Tue, 24 Nov 2020 18:04:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJydv/sZ59L6C2nu+40b7w/erk9M/1NRSscJKV+4Y2plzeOU7H164mc7NqdzZBWdYJnsfdn5 X-Received: by 2002:a17:906:5910:: with SMTP id h16mr1258397ejq.60.1606269896520; Tue, 24 Nov 2020 18:04:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606269896; cv=none; d=google.com; s=arc-20160816; b=KBoT20mrc3syxWOj3lkF/oZ9oZwxGOnyiUUk9urBHOtF1m02oJxifHC+C5P9U7BP5H Ll7v78Ryh1YzsfMFi5uu8IHaddWs2bcFRKIzYQt30dnmToQ7tK/469JEGsEK7H2nzusT mEJDLtoCM7JVy+kMGL7AOmKoox/n2m33XJ+ZhnJ+FOtNBVARtJ2IXeUmk0yoK09/HXSw qzmycXb1p/wkO/70iaIbMFSx6H3EgXb0Rc5Y6NtOTkl6ljqz63K3vey6n3shyAHFeOIH FUv8C2fdj/LOtXbObqeCJ4+XHTBtgAwIgm1OH6d5or4QZUx9bfsW8OqYoNf4mMbq8LHO HTeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=+0x2AhJIx3s1gKKZoIsdcOg5AE7UddshTFxdI1HQA24=; b=Jc7uAXHt88zMIkkRWtDypzDWAuuHTlD8EmVr297mJtzyGEeh1Tgg/i4BCmFK/mcLOL J40x6FohUjUz4AFqO/CTyiJ0KZqwvx91Wm8h+qNC2vuk+WGIen4UGP2n5uaBn3SwUfLW jJv0xsIAffi5JWbC2B+6cCoMYS+9pH+mXSQg/gDURrKAJarOmjUmCJMq2gQArglotBA5 U4DKMVR121M5/EjEXcX+D+Z5UhjbARuXv+nmdPa2dVrway7O4b8FyJUaFcwIhJPB9zBV UfLaPu9k6/wn/KsYi7B8j91H8OFcETBvEb2CkE+Zo5zteCt9UJcWQJ2cRietlZbkG+gP yLoQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi25si309972edb.487.2020.11.24.18.04.32; Tue, 24 Nov 2020 18:04:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732681AbgKXLfi (ORCPT + 99 others); Tue, 24 Nov 2020 06:35:38 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:8024 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730158AbgKXLfh (ORCPT ); Tue, 24 Nov 2020 06:35:37 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CgMQ80k0Tzhfl9; Tue, 24 Nov 2020 19:35:12 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Tue, 24 Nov 2020 19:35:23 +0800 From: Zou Wei To: CC: , , Zou Wei Subject: [PATCH -next] mm/swap.c: Mark sort_page_lruvec with static keyword Date: Tue, 24 Nov 2020 19:47:05 +0800 Message-ID: <1606218425-3874-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: mm/swap.c:1018:5: warning: symbol 'sort_page_lruvec' was not declared. Should it be static? Signed-off-by: Zou Wei --- mm/swap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/swap.c b/mm/swap.c index c787b38..5022dfe 100644 --- a/mm/swap.c +++ b/mm/swap.c @@ -1015,7 +1015,7 @@ struct lruvecs { }; /* Sort pvec pages on their lruvec */ -int sort_page_lruvec(struct lruvecs *lruvecs, struct pagevec *pvec) +static int sort_page_lruvec(struct lruvecs *lruvecs, struct pagevec *pvec) { int i, j, nr_lruvec; struct page *page; -- 2.6.2