From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (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 62180230BE9; Fri, 29 May 2026 12:48:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780058901; cv=none; b=frumHOBQcsVLZu5/BVETsszPF7b7u+oenury4MxOm9fAeL64hOoqq6IQ7IDeUDvAtiJgEtAcQlQrw137ol93vSmCCMqnaaQeAgM/44kenVVWE2h2MbXAo6H74CQPDY9xs2NCBhordNos3yBiBUIdjlEA281ROv3GZkkCfn30QKE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780058901; c=relaxed/simple; bh=HO1WR6twZag3h0xFdgAKX/czudAafCz+VLFaYqj8tHY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YBkHUJyfeq4/9YyPy6gb/u3KkkySSSwwQmgK4GfeOZgqIjve/C933+qsxHCPyRiJsxEEWqk2pPkeUTNy6TJVFxtNekGl0URPZ58hvWcLjp3JAhFPecjSp95MA6Nd+EVgYJQFN+63bmAYYCpSf7VsXbJRutcFMdLO8fV/T8K+FpI= 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=KeNiSrYG; arc=none smtp.client-ip=198.175.65.16 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="KeNiSrYG" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1780058901; x=1811594901; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=HO1WR6twZag3h0xFdgAKX/czudAafCz+VLFaYqj8tHY=; b=KeNiSrYGTnccyiKPNdbD2o5msj5UCid/4wK7VKxWXJYLAHCWb0ZBUh0Q wBYVNs4Yqmk/Im77vb6Zgq7U4s3x1ge3bd5LYuUsTmruzHtXVkwL5ndqT om4fgSXcv0kk3V1kWXktJwvLtOi6XvGiObh4e4y6yU5+Hxon/ZmJgNiIm 4C+krKgWPcJL7R03dhMyLkH/vj72LYEeN6ETYJYBjaWX35ne1SGrYWd00 6E2coVT635gmEKiBb8SccwqlrvW5kv/iqbaLLhVkGPDrYzzzQQfYZeUsV XwMyyKWHUo74oY4sIPXws1swT9AZ8zdJhernWDm8qZlF2I8rYRWpAyeup w==; X-CSE-ConnectionGUID: 60iPpsI/TJqi2bDv81Xjjw== X-CSE-MsgGUID: attDDFnGTiSsnSD9E7K9xA== X-IronPort-AV: E=McAfee;i="6800,10657,11801"; a="81092967" X-IronPort-AV: E=Sophos;i="6.24,175,1774335600"; d="scan'208";a="81092967" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 May 2026 05:48:20 -0700 X-CSE-ConnectionGUID: U45MxQSeSeayqC7nDdmzOw== X-CSE-MsgGUID: lttKo//4TxeWrxIwEzQrzg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,175,1774335600"; d="scan'208";a="240294353" Received: from lkp-server01.sh.intel.com (HELO f0d55cb201f0) ([10.239.97.150]) by fmviesa008.fm.intel.com with ESMTP; 29 May 2026 05:48:16 -0700 Received: from kbuild by f0d55cb201f0 with local (Exim 4.98.2) (envelope-from ) id 1wSwdI-000000007EM-3wbN; Fri, 29 May 2026 12:48:12 +0000 Date: Fri, 29 May 2026 20:47:17 +0800 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: 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: <202605292049.eaIv99hr-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: sparc64-randconfig-002-20260529 (https://download.01.org/0day-ci/archive/20260529/202605292049.eaIv99hr-lkp@intel.com/config) compiler: sparc64-linux-gcc (GCC) 8.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260529/202605292049.eaIv99hr-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/202605292049.eaIv99hr-lkp@intel.com/ All warnings (new ones prefixed by >>): mm/mempolicy.c: In function 'mpol_relative_nodemask': >> mm/mempolicy.c:377:10: warning: 'return' with a value, in function returning void return -EINVAL; ^ mm/mempolicy.c:370:13: note: declared here static void mpol_relative_nodemask(nodemask_t *ret, const nodemask_t *orig, ^~~~~~~~~~~~~~~~~~~~~~ vim +/return +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