From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28927C072A2 for ; Mon, 20 Nov 2023 00:22:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231612AbjKTAWC (ORCPT ); Sun, 19 Nov 2023 19:22:02 -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> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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