From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4B61C433EF for ; Tue, 15 Mar 2022 11:52:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348068AbiCOLxw (ORCPT ); Tue, 15 Mar 2022 07:53:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348005AbiCOLxq (ORCPT ); Tue, 15 Mar 2022 07:53:46 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E758506F6 for ; Tue, 15 Mar 2022 04:52:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647345154; x=1678881154; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Cq4Pk617PcjJPsbbqjl+pk5hh/VfPh2oGmmkdgt4sWc=; b=hW/lBPbz03LWbd28ZLr1wphAD6cwNMkBSQ+F0qKdOTKs7vdu8gA7FkYj XqOKR3Qa4TkAESRge4oFo2E+NqKmuGol/tS6osotnwnV8U5xIO3+0si03 dxPh3G7dl4jc5WBBF0yPDmPfI94X62llilgO5bCFRNIn67n7MsY2phVjD LpZ84YizzM9h+zoZcTuqFFfk0MmMBOwn1PUL6rafArfso8Kg1gp7SpdCL w0qZOaeYA0wsNxkuM9nNuCJ3FIrcoauVv/8+ck+QHJz3sJRyYMIXAC/x7 RA5M96edPlahyf0zvYEtSQE4yfJbDywvsB6qudZvkxwo7VTweFaydSr2M A==; X-IronPort-AV: E=McAfee;i="6200,9189,10286"; a="255108130" X-IronPort-AV: E=Sophos;i="5.90,183,1643702400"; d="scan'208";a="255108130" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2022 04:52:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,183,1643702400"; d="scan'208";a="819749449" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by fmsmga005.fm.intel.com with ESMTP; 15 Mar 2022 04:52:29 -0700 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nU5j2-000AuR-QF; Tue, 15 Mar 2022 11:52:28 +0000 Date: Tue, 15 Mar 2022 19:52:09 +0800 From: kernel test robot To: Qing Wang , Russell King , Catalin Marinas , Will Deacon , Paul Walmsley , Palmer Dabbelt , Albert Ou , Sudeep Holla , Greg Kroah-Hartman , "Rafael J. Wysocki" , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Cc: kbuild-all@lists.01.org, Wang Qing Subject: Re: [PATCH] sched: dynamic config sd_flags if described in DT Message-ID: <202203151939.NI7Rsold-lkp@intel.com> References: <1647331137-69890-1-git-send-email-wangqing@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1647331137-69890-1-git-send-email-wangqing@vivo.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Qing, Thank you for the patch! Yet something to improve: [auto build test ERROR on arm64/for-next/core] [also build test ERROR on driver-core/driver-core-testing tip/sched/core linus/master v5.17-rc8 next-20220310] [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/0day-ci/linux/commits/Qing-Wang/sched-dynamic-config-sd_flags-if-described-in-DT/20220315-160039 base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core config: riscv-nommu_k210_sdcard_defconfig (https://download.01.org/0day-ci/archive/20220315/202203151939.NI7Rsold-lkp@intel.com/config) compiler: riscv64-linux-gcc (GCC) 11.2.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/3322560249c42b0a3e719b19842a3ace7d5ffb6a git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Qing-Wang/sched-dynamic-config-sd_flags-if-described-in-DT/20220315-160039 git checkout 3322560249c42b0a3e719b19842a3ace7d5ffb6a # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=riscv SHELL=/bin/bash drivers/base/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/base/arch_topology.c: In function 'cpus_share_self_cache': >> drivers/base/arch_topology.c:648:37: error: 'cpu' undeclared (first use in this function) 648 | if (!cache_topology[cpu][cache_level]) | ^~~ drivers/base/arch_topology.c:648:37: note: each undeclared identifier is reported only once for each function it appears in vim +/cpu +648 drivers/base/arch_topology.c 639 640 int cpus_share_self_cache(const struct cpumask *cpu_map) 641 { 642 int cache_level, cpu_id; 643 int first, last; 644 int id = cpumask_first(cpu_map); 645 int size = cpumask_weight(cpu_map); 646 647 for (cache_level = 0; cache_level < MAX_CACHE_LEVEL; cache_level++) { > 648 if (!cache_topology[cpu][cache_level]) 649 return -1; 650 651 first = -1; 652 last = id; 653 for (cpu_id = 0; cpu_id < NR_CPUS; cpu_id++) { 654 if (cache_topology[cpu][cache_level] == cache_topology[cpu_id][cache_level]) { 655 if (cpu_id < id || cpu_id >= id + size) 656 return 0; 657 658 first = (first == -1)?cpu_id:first; 659 last = cpu_id; 660 } 661 } 662 663 if (first == id && last == id + size) 664 return 1; 665 } 666 667 return 0; 668 } 669 --- 0-DAY CI Kernel Test Service https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org