From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (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 403532505DE; Fri, 28 Feb 2025 08:39:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740732002; cv=none; b=DIieglaZtEyrH/f9EUuD+6+4Ue0AFymFScU6QiFP/Ej9V7evhqLwlw1vP//jfVMFJ2zPu24OwtSmdMPyqd12wgQHV7odtDyfH40YGCM8WtCiMXtRWKUeaugnJjXED8ulL5bFZT05yPOchPnDQwgQVsO7V7GiB6zzu8qGG75wC1k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740732002; c=relaxed/simple; bh=6nLlEJR+1HRqZHpNFMxHE62+fk85zp8gkyvfjgnlWPs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=P+waubML0ek1ghRzppwEAqiSLb6j2M2mhhAXjJLNow1TVph6wnQ4l1wI05sXUTB4bfCAUsmrn+74ANWrudSw6M/90JrhUUrSvnfz0VXFmnq7JITxuEKDwpe/GPat+lmSfrfk0xy6ZhtrRGer09OtKtL87Lk7wk0IjaGADkBK38Y= 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=lVoZJbzN; arc=none smtp.client-ip=192.198.163.14 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="lVoZJbzN" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1740732000; x=1772268000; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=6nLlEJR+1HRqZHpNFMxHE62+fk85zp8gkyvfjgnlWPs=; b=lVoZJbzNos8hNXw2nKPuKxV4eiCsFWeYQPMFjBOGSreXKiDu1QEpbm76 cBRes40xFDt1Xr3u9dwRI4EUmqz8eZA/+UWxVFKhxpRnVN9MyYXwPKkzR vGQM/7H5OxfZvK9FV6baWfC05PENUT2L3qU6k9CNTpOMH/IO6Y9BrHMw6 mebw62djrAADMBz2u5vyONYfWyW+fwXdhXM2Z4ho2ZvdE+odudhRX7JQE aPf2LV/qQ2DKFXcLL2eaZh/z4AgN3wtZziJm8XbhVLjEpf717Efs7AxC3 VjVEOzCupPM7AXa+e/5Ew8xv3AKGJKFb1xmeBq0mEO2IjdrO4dMzPA5cx g==; X-CSE-ConnectionGUID: N5gY39BaReCSvjLOky7Hiw== X-CSE-MsgGUID: ndDp9SdUSSG3sDPh/a5zfQ== X-IronPort-AV: E=McAfee;i="6700,10204,11358"; a="41905672" X-IronPort-AV: E=Sophos;i="6.13,321,1732608000"; d="scan'208";a="41905672" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Feb 2025 00:39:59 -0800 X-CSE-ConnectionGUID: Ng7e4B6tRsSRZ7rZzz/aZQ== X-CSE-MsgGUID: fgjmtdnfSxiJ/VZEuJieeQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="122510082" Received: from lkp-server02.sh.intel.com (HELO 76cde6cc1f07) ([10.239.97.151]) by orviesa005.jf.intel.com with ESMTP; 28 Feb 2025 00:39:56 -0800 Received: from kbuild by 76cde6cc1f07 with local (Exim 4.96) (envelope-from ) id 1tnvu4-000Eck-0q; Fri, 28 Feb 2025 08:39:36 +0000 Date: Fri, 28 Feb 2025 16:38:13 +0800 From: kernel test robot To: zihan zhou <15645113830zzh@gmail.com> Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, bsegall@google.com, dietmar.eggemann@arm.com, juri.lelli@redhat.com, linux-kernel@vger.kernel.org, mgorman@suse.de, mingo@redhat.com, peterz@infradead.org, rostedt@goodmis.org, vincent.guittot@linaro.org, vschneid@redhat.com Subject: Re: [PATCH V1 2/4] sched: Do predict load Message-ID: <202502281647.5vhdZuZE-lkp@intel.com> References: <20250221085051.32468-1-15645113830zzh@gmail.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250221085051.32468-1-15645113830zzh@gmail.com> Hi zihan, kernel test robot noticed the following build warnings: [auto build test WARNING on tip/sched/core] [also build test WARNING on akpm-mm/mm-nonmm-unstable brauner-vfs/vfs.all peterz-queue/sched/core linus/master v6.14-rc4 next-20250227] [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/zihan-zhou/sched-Add-kconfig-of-predict-load/20250221-165850 base: tip/sched/core patch link: https://lore.kernel.org/r/20250221085051.32468-1-15645113830zzh%40gmail.com patch subject: [PATCH V1 2/4] sched: Do predict load config: hexagon-allyesconfig (https://download.01.org/0day-ci/archive/20250228/202502281647.5vhdZuZE-lkp@intel.com/config) compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250228/202502281647.5vhdZuZE-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/202502281647.5vhdZuZE-lkp@intel.com/ All warnings (new ones prefixed by >>): >> kernel/sched/fair.c:4755:17: warning: variable 'load' is uninitialized when used here [-Wuninitialized] 4755 | load = div_u64(load * weight, PREDICT_LOAD_MAX); | ^~~~ kernel/sched/fair.c:4749:20: note: initialize the variable 'load' to silence this warning 4749 | unsigned long load; | ^ | = 0 1 warning generated. vim +/load +4755 kernel/sched/fair.c 4746 4747 static unsigned long restore_normalized_load(unsigned long normalized_load, unsigned long weight) 4748 { 4749 unsigned long load; 4750 4751 //Prevent arithmetic overflow 4752 WARN_ON_ONCE(normalized_load > 4000000); 4753 if (weight == PREDICT_LOAD_MAX) 4754 return normalized_load; > 4755 load = div_u64(load * weight, PREDICT_LOAD_MAX); 4756 return load; 4757 } 4758 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki