From patchwork Wed Apr 13 16:02:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kernel test robot X-Patchwork-Id: 12812201 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 D2540C433EF for ; Wed, 13 Apr 2022 16:02:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 56D976B0072; Wed, 13 Apr 2022 12:02:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 51D406B0073; Wed, 13 Apr 2022 12:02:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3BE1D6B0074; Wed, 13 Apr 2022 12:02:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.28]) by kanga.kvack.org (Postfix) with ESMTP id 2D6386B0072 for ; Wed, 13 Apr 2022 12:02:32 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id CF93F257DD for ; Wed, 13 Apr 2022 16:02:31 +0000 (UTC) X-FDA: 79352323302.15.548041B Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by imf28.hostedemail.com (Postfix) with ESMTP id A1371C0009 for ; Wed, 13 Apr 2022 16:02:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649865750; x=1681401750; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=vEfGCLciTRVozTL9o246yJ/aR9lha4XWlq8MjHNUi0k=; b=Z3MpHEu3IDJ8DsQrNFOmzqeB/LgQFdr8wr0cTEfjqgf8HpY2BboPicga YfK5IQeIkBiAZMk1JI/nHBIcOuZ/9vZWdNWTY7uW6xbuF3fkw41x+gHQy VCBRxHSV1gB7aeUFmpeHanAuOknKzEIuv8LJOhQE2PM17EMzqea09gbRF pRRpfAvC3l4mjftwv0GFnnvqVp6ImHPe/V/tkFJxTpdtCsR9pxL7UfaGT 8+T7J0zcHM93VeKSIZE7EynK5TK7Mfz5/XHfXhGi6smn33h3ncmjYQPQL CEa3Goj6uoiks46vMqMiVIKL8cJzBei5SxiAe1gC4fR1EWoev6h1BX6Rx g==; X-IronPort-AV: E=McAfee;i="6400,9594,10316"; a="249993835" X-IronPort-AV: E=Sophos;i="5.90,257,1643702400"; d="scan'208";a="249993835" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2022 09:02:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,257,1643702400"; d="scan'208";a="573331211" Received: from lkp-server01.sh.intel.com (HELO 3abc53900bec) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 13 Apr 2022 09:02:26 -0700 Received: from kbuild by 3abc53900bec with local (Exim 4.95) (envelope-from ) id 1nefRp-0000Qr-BA; Wed, 13 Apr 2022 16:02:25 +0000 Date: Thu, 14 Apr 2022 00:02:16 +0800 From: kernel test robot To: Peter Xu Cc: kbuild-all@lists.01.org, Linux Memory Management List , Andrew Morton , linux-kernel@vger.kernel.org Subject: [RFC PATCH linux-next] mm/shmem: vma_needs_copy can be static Message-ID: References: <202204140043.Tx7BIBvI-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <202204140043.Tx7BIBvI-lkp@intel.com> X-Stat-Signature: xygpqkmj6ihn7mfzsj3pzbzkbs3mje8z Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Z3MpHEu3; spf=none (imf28.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.20) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspam-User: X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: A1371C0009 X-HE-Tag: 1649865750-708592 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: mm/memory.c:1238:1: warning: symbol 'vma_needs_copy' was not declared. Should it be static? Fixes: 729c63ce2bbd ("mm/shmem: handle uffd-wp during fork()") Reported-by: kernel test robot Signed-off-by: kernel test robot Acked-by: Peter Xu --- mm/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memory.c b/mm/memory.c index a426c46dd6f68..92cca76bcd3ee 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -1234,7 +1234,7 @@ copy_p4d_range(struct vm_area_struct *dst_vma, struct vm_area_struct *src_vma, * false when we can speed up fork() by allowing lazy page faults later until * when the child accesses the memory range. */ -bool +static bool vma_needs_copy(struct vm_area_struct *dst_vma, struct vm_area_struct *src_vma) { /*