Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1913430rdb; Sun, 19 Nov 2023 16:22:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IHG3Rl+xDEcufmJ4LwfXxl1C7/fNtgcpwKwU+tb2sFVecV3qdgToQp9K9VC2jshh/GDnbo6 X-Received: by 2002:a05:6870:460a:b0:1ea:43aa:3fd9 with SMTP id z10-20020a056870460a00b001ea43aa3fd9mr7217435oao.25.1700439736683; Sun, 19 Nov 2023 16:22:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700439736; cv=none; d=google.com; s=arc-20160816; b=WhiPX5sklBNhnmN3paz2sGFFf/TZOw+6Ag0e58PsQXMiZpiH8mhvMISMGuYsUQPwSk s65px/M1KJ+tK8IEPo/nl0V1yBXd3NecB73MfIFe4QCEcuGYPXjlG/I8Q/FmbE5IKhVl qLXFDoGa8fpnwsLBRk0OK6+AjvW7v21fyEtrUD97D8mnYiWYAZ7i2UH3QDCKPQIiYIBC g1L/2GGmSrx4Uzr1hef6P9ZBykYFnoGb+NV2WZa4d+tGZOBHRWMQIAKWFNBmWSQUvZ50 igKMF0/J+zqdRvMq7VcjRnJt1kugKXfkTTK0dnkEEDdp4Xa2/HGUGPEgnUXO5l4wnJKC hW/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=aUuTNLeFFOV+G9lEt3hf0z2/Vxz2ZquZuQgy/mEiY0M=; fh=a2WYWRMw4a5As+VTsGigzue8VzOhl4ZSI93jMw+NM48=; b=k5i8fjM1hBNEUbJWLB8z/tl6kSvEdouzsX3/VLBqN8sNap+9pllZTD4qHDE8CkS/yo jJ9GPT6t/9iveRpo6F6aS9T9dcMh+QqnGqXwP6N9R6n/QFTYqC0PgJYuzqTajoOhtcl1 XwoWIZrQAbVtHhLROWE4W6aCswk8b/5Wrr+LivWrGpe2AbrIaN714JDmCxfWgjjl/Wp4 P76F8c4q9G1gozJTfFWU4dM1Pt+oWpra/PBh+qmj7EMuMC2crRSgZIAiZcPb5z+8sW1L V28/aVgt93Vs9q/0o3qkPdmnrD3HbVkxMMWb1mLSxj5yzwvx0KKzN73CywmDT+2yhjbl 9MoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=oAHdWkjZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id y18-20020aa79e12000000b006b61871ae27si6838411pfq.367.2023.11.19.16.22.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 16:22:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=oAHdWkjZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 525538088A49; Sun, 19 Nov 2023 16:22:13 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231558AbjKTAWB (ORCPT + 99 others); Sun, 19 Nov 2023 19:22:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbjKTAWA (ORCPT ); Sun, 19 Nov 2023 19:22:00 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC937E0 for ; Sun, 19 Nov 2023 16:21:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700439716; x=1731975716; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=m61ys6ij2lMA40cF9dqNMdfXSO3dycrKevx21VdZ2zs=; b=oAHdWkjZwnGA4UU+5MpWPoOnxH1R7lRYGPG0WV36iRTLpwcKW1Qh7/Fj AbV9Mw2joAXekp4WAWD/owSdJgrmdNRYc7L5+PXhTmgjLLiIwIyghh0Eh AQjceYEXE8i7W4XJ6VZ8dYgq7uZXL/xPvFKIC5rTw3AQNor92RgkgdpGK v26HawgxjXbRmyAi1s42GDTGiSPYshYK6i8rC6Gw9igfHte5rbv9qSpBY uPDz9xhFu5M2ZWiQVXjYuyuwFfD0UnfLuJ8cSpoi6vBmstsLYnMST4kWA vJnup6yZksIGqS3hAvpTPe2H6CnJYmHstLCFZ3khHr2dOK5s8zHuYuEUZ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10899"; a="390389461" X-IronPort-AV: E=Sophos;i="6.04,212,1695711600"; d="scan'208";a="390389461" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Nov 2023 16:21:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10899"; a="800989011" X-IronPort-AV: E=Sophos;i="6.04,212,1695711600"; d="scan'208";a="800989011" Received: from lkp-server02.sh.intel.com (HELO b8de5498638e) ([10.239.97.151]) by orsmga001.jf.intel.com with ESMTP; 19 Nov 2023 16:21:52 -0800 Received: from kbuild by b8de5498638e with local (Exim 4.96) (envelope-from ) id 1r4s2u-0005kS-1u; Mon, 20 Nov 2023 00:21:49 +0000 Date: Mon, 20 Nov 2023 08:20:54 +0800 From: kernel test robot To: Kairui Song , linux-mm@kvack.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Andrew Morton , Linux Memory Management List , "Huang, Ying" , David Hildenbrand , Hugh Dickins , Johannes Weiner , Matthew Wilcox , Michal Hocko , linux-kernel@vger.kernel.org, Kairui Song Subject: Re: [PATCH 06/24] swap: rework swapin_no_readahead arguments Message-ID: <202311200826.8Nl5w3h8-lkp@intel.com> References: <20231119194740.94101-7-ryncsn@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231119194740.94101-7-ryncsn@gmail.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sun, 19 Nov 2023 16:22:13 -0800 (PST) Hi Kairui, kernel test robot noticed the following build warnings: [auto build test WARNING on akpm-mm/mm-everything] [also build test WARNING on linus/master v6.7-rc2 next-20231117] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Kairui-Song/mm-swap-fix-a-potential-undefined-behavior-issue/20231120-035926 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20231119194740.94101-7-ryncsn%40gmail.com patch subject: [PATCH 06/24] swap: rework swapin_no_readahead arguments config: i386-buildonly-randconfig-003-20231120 (https://download.01.org/0day-ci/archive/20231120/202311200826.8Nl5w3h8-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231120/202311200826.8Nl5w3h8-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202311200826.8Nl5w3h8-lkp@intel.com/ All warnings (new ones prefixed by >>): >> mm/swap_state.c:872: warning: Function parameter or member 'mpol' not described in 'swapin_no_readahead' >> mm/swap_state.c:872: warning: Function parameter or member 'ilx' not described in 'swapin_no_readahead' >> mm/swap_state.c:872: warning: Function parameter or member 'mm' not described in 'swapin_no_readahead' >> mm/swap_state.c:872: warning: Excess function parameter 'vmf' description in 'swapin_no_readahead' vim +872 mm/swap_state.c d9bfcfdc41e8e5 Huang Ying 2017-09-06 859 19f582d2684e47 Kairui Song 2023-11-20 860 /** 19f582d2684e47 Kairui Song 2023-11-20 861 * swapin_no_readahead - swap in pages skipping swap cache and readahead 19f582d2684e47 Kairui Song 2023-11-20 862 * @entry: swap entry of this memory 19f582d2684e47 Kairui Song 2023-11-20 863 * @gfp_mask: memory allocation flags 19f582d2684e47 Kairui Song 2023-11-20 864 * @vmf: fault information 19f582d2684e47 Kairui Song 2023-11-20 865 * 19f582d2684e47 Kairui Song 2023-11-20 866 * Returns the struct page for entry and addr after the swap entry is read 19f582d2684e47 Kairui Song 2023-11-20 867 * in. 19f582d2684e47 Kairui Song 2023-11-20 868 */ 598f2616cde014 Kairui Song 2023-11-20 869 static struct page *swapin_no_readahead(swp_entry_t entry, gfp_t gfp_mask, 2538a5e96fe62f Kairui Song 2023-11-20 870 struct mempolicy *mpol, pgoff_t ilx, 2538a5e96fe62f Kairui Song 2023-11-20 871 struct mm_struct *mm) 19f582d2684e47 Kairui Song 2023-11-20 @872 { 19f582d2684e47 Kairui Song 2023-11-20 873 struct folio *folio; 2538a5e96fe62f Kairui Song 2023-11-20 874 struct page *page; 19f582d2684e47 Kairui Song 2023-11-20 875 void *shadow = NULL; 19f582d2684e47 Kairui Song 2023-11-20 876 2538a5e96fe62f Kairui Song 2023-11-20 877 page = alloc_pages_mpol(gfp_mask, 0, mpol, ilx, numa_node_id()); 2538a5e96fe62f Kairui Song 2023-11-20 878 folio = (struct folio *)page; 19f582d2684e47 Kairui Song 2023-11-20 879 if (folio) { 2538a5e96fe62f Kairui Song 2023-11-20 880 if (mem_cgroup_swapin_charge_folio(folio, mm, c2ac0dcbf9ab6a Kairui Song 2023-11-20 881 GFP_KERNEL, entry)) { 19f582d2684e47 Kairui Song 2023-11-20 882 folio_put(folio); 19f582d2684e47 Kairui Song 2023-11-20 883 return NULL; 19f582d2684e47 Kairui Song 2023-11-20 884 } c2ac0dcbf9ab6a Kairui Song 2023-11-20 885 c2ac0dcbf9ab6a Kairui Song 2023-11-20 886 __folio_set_locked(folio); c2ac0dcbf9ab6a Kairui Song 2023-11-20 887 __folio_set_swapbacked(folio); c2ac0dcbf9ab6a Kairui Song 2023-11-20 888 19f582d2684e47 Kairui Song 2023-11-20 889 mem_cgroup_swapin_uncharge_swap(entry); 19f582d2684e47 Kairui Song 2023-11-20 890 19f582d2684e47 Kairui Song 2023-11-20 891 shadow = get_shadow_from_swap_cache(entry); 19f582d2684e47 Kairui Song 2023-11-20 892 if (shadow) 19f582d2684e47 Kairui Song 2023-11-20 893 workingset_refault(folio, shadow); 19f582d2684e47 Kairui Song 2023-11-20 894 19f582d2684e47 Kairui Song 2023-11-20 895 folio_add_lru(folio); 19f582d2684e47 Kairui Song 2023-11-20 896 19f582d2684e47 Kairui Song 2023-11-20 897 /* To provide entry to swap_readpage() */ 19f582d2684e47 Kairui Song 2023-11-20 898 folio->swap = entry; 19f582d2684e47 Kairui Song 2023-11-20 899 swap_readpage(page, true, NULL); 19f582d2684e47 Kairui Song 2023-11-20 900 folio->private = NULL; 19f582d2684e47 Kairui Song 2023-11-20 901 } 19f582d2684e47 Kairui Song 2023-11-20 902 19f582d2684e47 Kairui Song 2023-11-20 903 return page; 19f582d2684e47 Kairui Song 2023-11-20 904 } 19f582d2684e47 Kairui Song 2023-11-20 905 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki