From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C799814A4CC; Fri, 29 May 2026 12:46:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780058802; cv=none; b=je+N7Mfg6pdX+pTP9wLEyMUCFQooNp5HVbAqr8uVhnbjEz/Fp/9QsHH0YFqRmNf/PFGgQnLSgYl8+2axiLNmGKCvP5iYUALjdcEbao7zF5o2DnwUCzV8xUppLSzi7TtoeeW4nn5c0osKWTVIyHOBXw17FY/SpEiTIaRYWuO01c8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780058802; c=relaxed/simple; bh=n4uZhdK6XzpQGNzverimKltVRsJ+TnUC5WxnmXwitTA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rDXCzgRBLk0gTGt/UlE3WPW58CUsg8CXrlrZIXty0dvOpzFBjfSH7ReuLEWPqa2ixyfPwQFqBrIlkQReChFNLs0XBjBTnF/3/WVK30bYsAc1y09P1VUmtF213DK+kp7UxD0Ql7PvDz5kLhg9X4OSCt8OgXAJuo0efsDfuRKh4zQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=QMNPfQLU; arc=none smtp.client-ip=192.198.163.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="QMNPfQLU" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1780058801; x=1811594801; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=n4uZhdK6XzpQGNzverimKltVRsJ+TnUC5WxnmXwitTA=; b=QMNPfQLUBVzRrAvQGNmW8JuB5TpBygLyRkBD6zgHrT62f0Lmlayhmnu5 biaDWfKzPp1+PD1lrbjAhPyBIiWVG+FZwQtUszj/eC3bOYJnzNeHsDzIq 2BbHS64apyADH2IcYOE5ZcndduPKxbwRGepdQgIMzocfqjDkxyfsH3XGF cvMaL7IlhPEwgXqiyH7C1R8AiIOyRAWFt215B3USstiQ8f2d1gxeOCh9y OJ1M7YAztKmegh9qmhCaMaBhkjPH1AVjU4eHaTNLX+mMYELvNLqa0/zl8 MKP3zencbBTm08oTRYAKj9O1UEWkSUYU1B3zOQ+vu/SzxUfyRqeQrz/Sz g==; X-CSE-ConnectionGUID: Z4uWgfB6Q86KBB5GD88VEA== X-CSE-MsgGUID: EDmIBK/JRjSpTl1JxB/zGA== X-IronPort-AV: E=McAfee;i="6800,10657,11801"; a="98481776" X-IronPort-AV: E=Sophos;i="6.24,175,1774335600"; d="scan'208";a="98481776" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 May 2026 05:46:41 -0700 X-CSE-ConnectionGUID: 7Q0VXFu1S5OXyxwepwhv/A== X-CSE-MsgGUID: Tmn/iAW3QhuifguaSATNwg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,175,1774335600"; d="scan'208";a="242940030" Received: from igk-lkp-server01.igk.intel.com (HELO 892db79562d4) ([10.211.93.152]) by orviesa009.jf.intel.com with ESMTP; 29 May 2026 05:46:36 -0700 Received: from kbuild by 892db79562d4 with local (Exim 4.98.2) (envelope-from ) id 1wSwbi-000000000tV-1M5I; Fri, 29 May 2026 12:46:34 +0000 Date: Fri, 29 May 2026 14:45:47 +0200 From: kernel test robot To: Yury Norov , Andrew Morton , David Hildenbrand , Zi Yan , Matthew Brost , Joshua Hahn , Rakie Kim , Byungchul Park , Gregory Price , Ying Huang , Alistair Popple , linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Yury Norov , Farhad Alemi , Waiman Long , Rasmus Villemoes , cgroups@vger.kernel.org Subject: Re: [PATCH] mm: don't allow empty relative nodemask in mpol_relative_nodemask() Message-ID: <202605291432.MbAf9EG6-lkp@intel.com> References: <20260528190337.878027-1-ynorov@nvidia.com> Precedence: bulk X-Mailing-List: cgroups@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260528190337.878027-1-ynorov@nvidia.com> Hi Yury, kernel test robot noticed the following build warnings: [auto build test WARNING on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Yury-Norov/mm-don-t-allow-empty-relative-nodemask-in-mpol_relative_nodemask/20260529-030835 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20260528190337.878027-1-ynorov%40nvidia.com patch subject: [PATCH] mm: don't allow empty relative nodemask in mpol_relative_nodemask() config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260529/202605291432.MbAf9EG6-lkp@intel.com/config) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260529/202605291432.MbAf9EG6-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/202605291432.MbAf9EG6-lkp@intel.com/ All warnings (new ones prefixed by >>): >> mm/mempolicy.c:377:3: warning: void function 'mpol_relative_nodemask' should not return a value [-Wreturn-mismatch] 377 | return -EINVAL; | ^ ~~~~~~~ 1 warning generated. vim +/mpol_relative_nodemask +377 mm/mempolicy.c 369 370 static void mpol_relative_nodemask(nodemask_t *ret, const nodemask_t *orig, 371 const nodemask_t *rel) 372 { 373 unsigned int w = nodes_weight(*rel); 374 nodemask_t tmp; 375 376 if (w == 0) > 377 return -EINVAL; 378 379 nodes_fold(tmp, *orig, w); 380 nodes_onto(*ret, tmp, *rel); 381 } 382 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki