Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp993742iob; Fri, 13 May 2022 18:56:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6e07vsxqybKrId9tCv2RAAA+QwrLGn3WOTqlDHU3XHt3bxBVc0jGWAHHN/HpyA7TxKJBH X-Received: by 2002:a1c:3b54:0:b0:394:3910:3c7b with SMTP id i81-20020a1c3b54000000b0039439103c7bmr6817946wma.3.1652493402779; Fri, 13 May 2022 18:56:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652493402; cv=none; d=google.com; s=arc-20160816; b=HkQb2CSIX78BspGwAgRMt8dj6eLHAWsY2MLdIKtnYb+EFysibhgd17NbyjKvbVqszx M/wtlgKuv1q1wK2z5rlAFbpcrR7F+Ifp/ZOK62NmgOZSI7CLGEH1CwEAwBCvQkOpV/7j Ov93mc0pu1CqswPW1nF1N9EFFV7ybUMp5A4JlB3FZNmbxiMH1H0kKQUrT2T0Niof7d+w b7WkZyOscQ8wxFz/krUFxbo3Huml4VrPVR9oWw4d+yigFY0wh/4MO8fyqDDFRl2qZtQX xxQD42YUPBvDaCCxU1kCgDEtyrlBIREWaxRDNRrWfCxHgNQoaBOhDCfC7JoKbtMdYyvg y30Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Bt4XZBMreWIb1HcoZCdDFiMcjyppbWANu8i/ImjhGDk=; b=eqDNFkwxpZpK+i+I2jSGj3QYbAxDJIL64+EJW+kLd/AweEpwo0qdU0CTQruZV/h/Ql jnwB8PpYqSR9KwIRH83okVDvkplDCjtxzh7Pyd3CuSEdXd+8GzLYgv4gX32NhGIrSzET dtarUwpN2odLkLhaBeBmiUTTkyig1ljZZmlDiZNyYxGef4zf2xL+joUn7s5w2EheHgOp lR76fSahxzNWXq4dl8+All+5ByAsQjgn2URKt/2OAgCdl7AQgqCERPYKsau3qq+R+GGS HKZYfWTkTFKE53D+Fyzfm2UKct0Eb2UL/+Zbln2TBiyr+4OXBuBPeTwsmu8fmPUDoQf9 zYnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KFhotyg0; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id h3-20020a05600c414300b003944549df4fsi3869463wmm.74.2022.05.13.18.56.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 18:56:42 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KFhotyg0; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B0519463F6D; Fri, 13 May 2022 17:19:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377339AbiEMGeM (ORCPT + 99 others); Fri, 13 May 2022 02:34:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236494AbiEMGeK (ORCPT ); Fri, 13 May 2022 02:34:10 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E917A2A1FD0 for ; Thu, 12 May 2022 23:34:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652423646; x=1683959646; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=NCLw1D/Ap7uQdQ5sir8JCYLSzQQo6N/3LNNrH7SbUHg=; b=KFhotyg06aJYa6+apfzKFc7fH1mmLUvw65BerqjNXyu7gIOWYmWqDVVS ofKpCJX7mgXlwFmluJH0Y2cxR2rTHjYmWQtlPVkWqdROAhpAqgKFgd4Zl LMjvODoq0PR+uiIbx6h4HTrD+BdklXN17v4vBKtJ8RsGlmndtBR+uutPU dWVr41ruXs72O3NalXX1hSjloG0xiPvf0NRYh9ruDIv32/A0PHAYF7YKp IeWLMc0FfVbh2vlSfS/E1ebbu9GHdsz8Q0fQgOcLYVQs3cTD2wRH1bf9T CG3Xn6EWzBWnY0a55IUATtq1i0FRrCwqF2JNQy5Eil+p6XDHLRRoD2NRf Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10345"; a="267825472" X-IronPort-AV: E=Sophos;i="5.91,221,1647327600"; d="scan'208";a="267825472" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2022 23:34:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,221,1647327600"; d="scan'208";a="658969597" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 12 May 2022 23:34:03 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1npOsE-000LQK-S3; Fri, 13 May 2022 06:34:02 +0000 Date: Fri, 13 May 2022 14:34:01 +0800 From: kernel test robot To: Josh Don , Ingo Molnar , Juri Lelli , Vincent Guittot Cc: kbuild-all@lists.01.org, Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , linux-kernel@vger.kernel.org, Cruz Zhao , Tejun Heo , Josh Don Subject: Re: [PATCH] sched/core: add forced idle accounting for cgroups Message-ID: <202205131429.4xuc9fjB-lkp@intel.com> References: <20220513005427.2507335-1-joshdon@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220513005427.2507335-1-joshdon@google.com> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Josh, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on tip/sched/core] [also build test WARNING on tip/master linux/master linus/master v5.18-rc6 next-20220512] [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] url: https://github.com/intel-lab-lkp/linux/commits/Josh-Don/sched-core-add-forced-idle-accounting-for-cgroups/20220513-085621 base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 734387ec2f9d77b00276042b1fa7c95f48ee879d config: i386-randconfig-m021 (https://download.01.org/0day-ci/archive/20220513/202205131429.4xuc9fjB-lkp@intel.com/config) compiler: gcc-11 (Debian 11.2.0-20) 11.2.0 reproduce (this is a W=1 build): # https://github.com/intel-lab-lkp/linux/commit/21dca7763777c1985d6f5ac289e6e0c20d429d05 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Josh-Don/sched-core-add-forced-idle-accounting-for-cgroups/20220513-085621 git checkout 21dca7763777c1985d6f5ac289e6e0c20d429d05 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash kernel/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from kernel/sched/build_utility.c:93: kernel/sched/core_sched.c: In function 'sched_core_rstat_flush': kernel/sched/core_sched.c:306:35: error: invalid use of undefined type 'struct task_group' 306 | struct cfs_rq *cfs_rq = tg->cfs_rq[cpu]; | ^~ kernel/sched/core_sched.c:307:39: error: invalid use of undefined type 'struct task_group' 307 | struct task_group *parent = tg->parent; | ^~ kernel/sched/core_sched.c:319:19: error: invalid use of undefined type 'struct task_group' 319 | delta = tg->forceidle_sum_pending; | ^~ kernel/sched/core_sched.c:321:19: error: invalid use of undefined type 'struct task_group' 321 | tg->forceidle_sum_pending = 0; | ^~ kernel/sched/core_sched.c:333:11: error: invalid use of undefined type 'struct task_group' 333 | tg->forceidle_sum += delta; | ^~ kernel/sched/core_sched.c:334:15: error: invalid use of undefined type 'struct task_group' 334 | parent->forceidle_sum_pending += delta; | ^~ >> kernel/sched/core_sched.c:304:56: warning: parameter 'cpu' set but not used [-Wunused-but-set-parameter] 304 | void sched_core_rstat_flush(struct task_group *tg, int cpu) | ~~~~^~~ kernel/sched/core_sched.c: In function 'sched_core_forceidle_sum': kernel/sched/core_sched.c:340:16: error: invalid use of undefined type 'struct task_group' 340 | if (!tg->parent) { | ^~ kernel/sched/core_sched.c:353:26: error: invalid use of undefined type 'struct task_group' 353 | return tg->forceidle_sum; | ^~ kernel/sched/core_sched.c:355:1: error: control reaches end of non-void function [-Werror=return-type] 355 | } | ^ cc1: some warnings being treated as errors vim +/cpu +304 kernel/sched/core_sched.c 303 > 304 void sched_core_rstat_flush(struct task_group *tg, int cpu) 305 { 306 struct cfs_rq *cfs_rq = tg->cfs_rq[cpu]; 307 struct task_group *parent = tg->parent; 308 u64 delta, curr_sum; 309 310 /* root uses cpustat */ 311 if (!parent) 312 return; 313 314 /* 315 * Note: cgroup_rstat_lock protects cfs_rq->forceidle_sum_prev and 316 * tg->{forceidle_sum, forceidle_sum_pending}. 317 */ 318 319 delta = tg->forceidle_sum_pending; 320 if (delta) > 321 tg->forceidle_sum_pending = 0; 322 323 /* rq lock not held; value may change concurrently */ 324 curr_sum = READ_ONCE(cfs_rq->forceidle_sum); 325 if (curr_sum != cfs_rq->forceidle_sum_prev) { 326 delta += curr_sum - cfs_rq->forceidle_sum_prev; 327 cfs_rq->forceidle_sum_prev = curr_sum; 328 } 329 330 if (!delta) 331 return; 332 333 tg->forceidle_sum += delta; 334 parent->forceidle_sum_pending += delta; 335 } 336 -- 0-DAY CI Kernel Test Service https://01.org/lkp