Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3202137rdh; Thu, 28 Sep 2023 05:49:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEzwBrbdJzBlthbOSPpyVK65KTLw5vZpq64O/S50Y5Ieb+trqJKPuWzQaBH6Pvc/k9GAMqi X-Received: by 2002:a05:6870:96a7:b0:1d5:9b10:f77d with SMTP id o39-20020a05687096a700b001d59b10f77dmr1143265oaq.15.1695905358381; Thu, 28 Sep 2023 05:49:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695905358; cv=none; d=google.com; s=arc-20160816; b=wugzBIZUmJImhPSu2K71/PIjmTnrKsF9pArDwhp2A2+VTqWi8N5DtC7YMW4J1j2G4o jshumLJyA/1Vd98XWFjhInpnYpEWnbFerIKEGhoAKBr2z131ykYIMQR+uwOnws1Mmi6W C8UfkEVfe8h23I4MbGJPa6dp8mWPCGebDfo+2xarnd7LBHqWmCEQZCSmPJUgio5pYKdb GSUQivCwImvLGRXvDN8QmSaX0SM/ukCLvtH50tXlNKXCWtCU/QjGhSR9y2wGj5wS9Dwe HRvnpzDs/3e3D5nAmohyQotsWyHSRgMgRUS0/Ibk8RELSeVo+Sr5tWhxNDaTh82wodYO Jodg== 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=MtU+NhJFMelivbXfRejU5eIvr+4AA4/Fyu7X1W3say4=; fh=PZGGRO/wobcrRg2s5chvsFE72LtSRxckr2CrhqTr2ow=; b=dvKSzaPx9c6SpO4mrmnoFTdlxP8r3m3XXyeCBhwVTkAB+AvxoZhOHDZfu8v3x2K0hx NeHeE76edb2BhgnAjZZE6cZpI4lCeDAwSc8+PFud1kNQ5DsB0dTV2uGNyazi24IIowsU qusuIDPD0ion3jDwRSl5AJpnKODbfMfFqPVM9L2GPWtra57R0WpsbmPDBFSkhlAxbMaV cNkJn7uwOisvCKd/J24zqeUH7BQ8r1M4HbGolWfNLMXjShyM/AzMdkz2ECdQsvEIU9Z0 8gqM0DSwaCuxrc6tsbYm1VSqE3jpkNxo1wY7mf9o+f5zsBDiu0Aj5Qievs0TsCyzWeCX yRnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OxZWjb9c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id n13-20020a65488d000000b0055be9543340si17922270pgs.872.2023.09.28.05.49.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 05:49:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OxZWjb9c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id C5452803113B; Thu, 28 Sep 2023 00:53:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231156AbjI1HxP (ORCPT + 99 others); Thu, 28 Sep 2023 03:53:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230450AbjI1HxM (ORCPT ); Thu, 28 Sep 2023 03:53:12 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 417FC99; Thu, 28 Sep 2023 00:53:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695887590; x=1727423590; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=9jG+EMn0dA/h2sKAgTnFKUyQyUD0iwBJtT86r8rPMQE=; b=OxZWjb9ceDvaNJ8hmObMVDgMoL5O13yij79BUGC8k7B+M/YUAVIk8pht CVzpS0LJD6ooEhJZVK58dOLsUYeTvdizFddsrOyO5uYK0OHiZhUL5fEO6 R7qeYByOyR9WVkTcm21lGAajkmipsx215k3Rwpcu6RlIBlNdNCQroCmUq dIPqI5YzVCDSSk3npcl1Te7Q/sSr/2DR5Cc0Y3Q8uy4w/Px42+IVHPjXN Z6r8R/LuOl7XafeS5xCEQcOmn/NFpw3i/JArTWg3WXDMe/N/G4my2GDav qf23Qk95Txb5vbM+X+qzUn8grPVO+bP0iYmCHKf0oY2tC0T3LN+db7QXw w==; X-IronPort-AV: E=McAfee;i="6600,9927,10846"; a="381909551" X-IronPort-AV: E=Sophos;i="6.03,183,1694761200"; d="scan'208";a="381909551" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2023 00:53:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10846"; a="784611843" X-IronPort-AV: E=Sophos;i="6.03,183,1694761200"; d="scan'208";a="784611843" Received: from lkp-server02.sh.intel.com (HELO c3b01524d57c) ([10.239.97.151]) by orsmga001.jf.intel.com with ESMTP; 28 Sep 2023 00:53:03 -0700 Received: from kbuild by c3b01524d57c with local (Exim 4.96) (envelope-from ) id 1qllpV-0001FR-1c; Thu, 28 Sep 2023 07:53:01 +0000 Date: Thu, 28 Sep 2023 15:52:33 +0800 From: kernel test robot To: Xiaobing Li , mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, axboe@kernel.dk, asml.silence@gmail.com Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, io-uring@vger.kernel.org, kun.dou@samsung.com, peiwei.li@samsung.com, joshi.k@samsung.com, kundan.kumar@samsung.com, wenwen.chen@samsung.com, ruyi.zhang@samsung.com, Xiaobing Li Subject: Re: [PATCH 1/3] SCHEDULER: Add an interface for counting real utilization. Message-ID: <202309281554.CwGBQGhe-lkp@intel.com> References: <20230928022228.15770-2-xiaobing.li@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230928022228.15770-2-xiaobing.li@samsung.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 28 Sep 2023 00:53:37 -0700 (PDT) Hi Xiaobing, kernel test robot noticed the following build warnings: [auto build test WARNING on tip/sched/core] [also build test WARNING on linus/master v6.6-rc3 next-20230928] [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/Xiaobing-Li/SCHEDULER-Add-an-interface-for-counting-real-utilization/20230928-103219 base: tip/sched/core patch link: https://lore.kernel.org/r/20230928022228.15770-2-xiaobing.li%40samsung.com patch subject: [PATCH 1/3] SCHEDULER: Add an interface for counting real utilization. config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20230928/202309281554.CwGBQGhe-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230928/202309281554.CwGBQGhe-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/202309281554.CwGBQGhe-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from kernel/sched/build_policy.c:52: >> kernel/sched/cputime.c:482:6: warning: no previous prototype for 'get_sqthread_util' [-Wmissing-prototypes] 482 | void get_sqthread_util(struct task_struct *p) | ^~~~~~~~~~~~~~~~~ kernel/sched/cputime.c: In function 'get_sqthread_util': kernel/sched/cputime.c:484:56: error: 'struct kernel_cpustat' has no member named 'sq_util' 484 | struct task_struct **sqstat = kcpustat_this_cpu->sq_util; | ^~ kernel/sched/cputime.c:486:29: error: 'MAX_SQ_NUM' undeclared (first use in this function) 486 | for (int i = 0; i < MAX_SQ_NUM; i++) { | ^~~~~~~~~~ kernel/sched/cputime.c:486:29: note: each undeclared identifier is reported only once for each function it appears in kernel/sched/cputime.c:495:31: error: 'struct kernel_cpustat' has no member named 'flag' 495 | if (!kcpustat_this_cpu->flag) { | ^~ kernel/sched/cputime.c:497:42: error: 'struct kernel_cpustat' has no member named 'sq_util' 497 | kcpustat_this_cpu->sq_util[j] = NULL; | ^~ kernel/sched/cputime.c:498:34: error: 'struct kernel_cpustat' has no member named 'flag' 498 | kcpustat_this_cpu->flag = true; | ^~ vim +/get_sqthread_util +482 kernel/sched/cputime.c 481 > 482 void get_sqthread_util(struct task_struct *p) 483 { 484 struct task_struct **sqstat = kcpustat_this_cpu->sq_util; 485 486 for (int i = 0; i < MAX_SQ_NUM; i++) { 487 if (sqstat[i] && (task_cpu(sqstat[i]) != task_cpu(p) 488 || sqstat[i]->__state == TASK_DEAD)) 489 sqstat[i] = NULL; 490 } 491 492 if (strncmp(p->comm, "iou-sqp", 7)) 493 return; 494 495 if (!kcpustat_this_cpu->flag) { 496 for (int j = 0; j < MAX_SQ_NUM; j++) 497 kcpustat_this_cpu->sq_util[j] = NULL; 498 kcpustat_this_cpu->flag = true; 499 } 500 int index = MAX_SQ_NUM; 501 bool flag = true; 502 503 for (int i = 0; i < MAX_SQ_NUM; i++) { 504 if (sqstat[i] == p) 505 flag = false; 506 if (!sqstat[i] || task_cpu(sqstat[i]) != task_cpu(p)) { 507 sqstat[i] = NULL; 508 if (i < index) 509 index = i; 510 } 511 } 512 if (flag && index < MAX_SQ_NUM) 513 sqstat[index] = p; 514 } 515 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki