From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (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 210423A7303 for ; Thu, 22 Jan 2026 20:59:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769115573; cv=none; b=pUV5f7FbzNwxVaM8ZkuOyyBYujp+MH4x85lIdK+cZUeM9WDkt2qm3XNze7rjx/arKISmF3FWO1JFpb1NfZ/AjcrUB+gleCJ441tVgDOI40PVhTR2nhLPJfxr0Btdid0ZJKkhIZL5IjOrofSiB60BM1I88h64KrJR28rJSuOeA5E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769115573; c=relaxed/simple; bh=AEWwC9CI+0lTMrsDJAH1bWaUGtZGIygV3AR+RojvyGg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SA2Wdizzb4Y4AtPTKKsS4EMob169Dn0D1A2Ak9VHiejFv93ipq1kaxxUMnGsKhVRLGaVOaT3NU4/V8hi31Ad0FELTCm6q05hCd8yhzFVJ/urjiV0a6ND1ZDLUp03iIeI9j0TgDhwrhXRDkqyYxA7e7MPF1pl8odBZfgaCq28idw= 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=JWb/DIVg; arc=none smtp.client-ip=198.175.65.15 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="JWb/DIVg" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1769115566; x=1800651566; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=AEWwC9CI+0lTMrsDJAH1bWaUGtZGIygV3AR+RojvyGg=; b=JWb/DIVgYO21tTB2EYIfGgY0fPHXr5Xij3ZSlvQNeEcMyuu/j7MzOlMF rTY56sYmDZ3hGPInC4uGq+25/giqsmTw9zE8Np2RN50QV5k0gcKG4fl/y oFWkXqxj6MNmuZ+0cYb7n1VitVMu0FD/mjL7MZmrip9NAh3l1O0u12BHs PnzkjFNefUylBGwsRqkRfeZi3irYkVfWbBfYTex3AaNGbodJpQw0qdXdA 8QaGCZwTPtC8b9mj8G8Q04daXH3+XFolgb2nFRk/teoelqiDBSN5YpB+w axbceuhfHoQvaNKG0H1Be1ORbgrTrF9gmghyaA1G23Q6AOyJHAI27mFeQ w==; X-CSE-ConnectionGUID: 7Bqx/aVPRNy17CrjsSl2ZA== X-CSE-MsgGUID: 3WLxGymqSe2tMVKnh2lZbA== X-IronPort-AV: E=McAfee;i="6800,10657,11679"; a="73998284" X-IronPort-AV: E=Sophos;i="6.21,246,1763452800"; d="scan'208";a="73998284" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jan 2026 12:59:23 -0800 X-CSE-ConnectionGUID: tVuWW1ttQdS1JcrXmyXNCw== X-CSE-MsgGUID: v18nlH8NQSeVY8ytl0ucvA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,246,1763452800"; d="scan'208";a="210966287" Received: from lkp-server01.sh.intel.com (HELO 765f4a05e27f) ([10.239.97.150]) by orviesa003.jf.intel.com with ESMTP; 22 Jan 2026 12:59:20 -0800 Received: from kbuild by 765f4a05e27f with local (Exim 4.98.2) (envelope-from ) id 1vj1lu-00000000TF0-0R3r; Thu, 22 Jan 2026 20:59:18 +0000 Date: Fri, 23 Jan 2026 04:58:39 +0800 From: kernel test robot To: Qiliang Yuan , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot Cc: oe-kbuild-all@lists.linux.dev, Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , linux-kernel@vger.kernel.org, Qiliang Yuan Subject: Re: [PATCH] sched/fair: Optimize EAS energy calculation complexity from O(N) to O(1) inside inner loop Message-ID: <202601230422.1xw7nG4T-lkp@intel.com> References: <20260122154227.130767-1-realwujing@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@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: <20260122154227.130767-1-realwujing@gmail.com> Hi Qiliang, kernel test robot noticed the following build warnings: [auto build test WARNING on tip/sched/core] [also build test WARNING on tip/master peterz-queue/sched/core linus/master v6.19-rc6 next-20260122] [cannot apply to tip/auto-latest] [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/Qiliang-Yuan/sched-fair-Optimize-EAS-energy-calculation-complexity-from-O-N-to-O-1-inside-inner-loop/20260123-000924 base: tip/sched/core patch link: https://lore.kernel.org/r/20260122154227.130767-1-realwujing%40gmail.com patch subject: [PATCH] sched/fair: Optimize EAS energy calculation complexity from O(N) to O(1) inside inner loop config: sh-defconfig (https://download.01.org/0day-ci/archive/20260123/202601230422.1xw7nG4T-lkp@intel.com/config) compiler: sh4-linux-gcc (GCC) 15.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260123/202601230422.1xw7nG4T-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/202601230422.1xw7nG4T-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/linux/bitmap.h:11, from include/linux/cpumask.h:11, from include/linux/energy_model.h:4, from kernel/sched/fair.c:23: kernel/sched/fair.c: In function 'find_energy_efficient_cpu': >> include/linux/cpumask_types.h:18:37: warning: dereferencing 'void *' pointer 18 | #define cpumask_bits(maskp) ((maskp)->bits) | ^~ include/linux/find.h:586:48: note: in definition of macro 'for_each_set_bit' 586 | for ((bit) = 0; (bit) = find_next_bit((addr), (size), (bit)), (bit) < (size); (bit)++) | ^~~~ include/linux/cpumask.h:380:31: note: in expansion of macro 'cpumask_bits' 380 | for_each_set_bit(cpu, cpumask_bits(mask), small_cpumask_bits) | ^~~~~~~~~~~~ kernel/sched/fair.c:8345:17: note: in expansion of macro 'for_each_cpu' 8345 | for_each_cpu(i, perf_domain_span(tmp_pd)) { | ^~~~~~~~~~~~ include/linux/cpumask_types.h:18:37: error: request for member 'bits' in something not a structure or union 18 | #define cpumask_bits(maskp) ((maskp)->bits) | ^~ include/linux/find.h:586:48: note: in definition of macro 'for_each_set_bit' 586 | for ((bit) = 0; (bit) = find_next_bit((addr), (size), (bit)), (bit) < (size); (bit)++) | ^~~~ include/linux/cpumask.h:380:31: note: in expansion of macro 'cpumask_bits' 380 | for_each_set_bit(cpu, cpumask_bits(mask), small_cpumask_bits) | ^~~~~~~~~~~~ kernel/sched/fair.c:8345:17: note: in expansion of macro 'for_each_cpu' 8345 | for_each_cpu(i, perf_domain_span(tmp_pd)) { | ^~~~~~~~~~~~ >> include/linux/find.h:586:69: warning: left-hand operand of comma expression has no effect [-Wunused-value] 586 | for ((bit) = 0; (bit) = find_next_bit((addr), (size), (bit)), (bit) < (size); (bit)++) | ^ include/linux/cpumask.h:380:9: note: in expansion of macro 'for_each_set_bit' 380 | for_each_set_bit(cpu, cpumask_bits(mask), small_cpumask_bits) | ^~~~~~~~~~~~~~~~ kernel/sched/fair.c:8345:17: note: in expansion of macro 'for_each_cpu' 8345 | for_each_cpu(i, perf_domain_span(tmp_pd)) { | ^~~~~~~~~~~~ vim +18 include/linux/cpumask_types.h eb4faa36d674ee Yury Norov 2024-05-27 10 eb4faa36d674ee Yury Norov 2024-05-27 11 /** eb4faa36d674ee Yury Norov 2024-05-27 12 * cpumask_bits - get the bits in a cpumask eb4faa36d674ee Yury Norov 2024-05-27 13 * @maskp: the struct cpumask * eb4faa36d674ee Yury Norov 2024-05-27 14 * eb4faa36d674ee Yury Norov 2024-05-27 15 * You should only assume nr_cpu_ids bits of this mask are valid. This is eb4faa36d674ee Yury Norov 2024-05-27 16 * a macro so it's const-correct. eb4faa36d674ee Yury Norov 2024-05-27 17 */ eb4faa36d674ee Yury Norov 2024-05-27 @18 #define cpumask_bits(maskp) ((maskp)->bits) eb4faa36d674ee Yury Norov 2024-05-27 19 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki