Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3249938pxb; Wed, 13 Oct 2021 02:05:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwq8T8HJcCro/UElzEUJ1CM3TgKWK3x2nGhGIzpRH7HrnroLJzi1Hs50UGiRogmvKPZObSB X-Received: by 2002:a50:ff14:: with SMTP id a20mr7855515edu.81.1634115908571; Wed, 13 Oct 2021 02:05:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634115908; cv=none; d=google.com; s=arc-20160816; b=tg96dkQ5iHAH/76Qqoq0xnFZl/xq1gDddPJ1rTCrUxGKYoSLpjJxSCX+QxT4CWnBRF Z4vVjLlcIooMmc1CD5K2d0+P12/Tsl1eMWYQ8xyp/10N4lqHjd4mDcte8CorxC9/Q5Jb i6G0/1QXcfVCugiy7hRK+1go5HaXeH0iOjLKIwHTeJUHdxPMAahrOBV/HpXq/nq/oE8e hgz5fZKSRZEREK14DPBsTqNJ3jJHeSpdNbmSv+pzCtR+S0tVuxVGgosYA/2GRkmJUdr9 J14CvsWobIvEHgvHo4TZnPLpl+tPZ512EcUIfSo59kQvbXoiO5ZeSoVd4e60HF32ZYXp sr2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:to:subject :cc; bh=JaCSXIeZzrCe0rXSsCcfUmFNSiiB3GuIHI2+Lwj2lOI=; b=tY+6n2j/K5cW3Zyp72Ny9sd5r5Qd0Gja+Sm8ePlKXeQLtcWj2urEcfWV4Xdo2etXEn 1PyjzW/RVrZTHV1erUNuTOkiISt+X4o49qf/h+yWwBmxFMmXeyUO/bDhLkx0y/2qyhoq ku41zHGHJF2IkO6MiVRonKkfCTkYEIRHql6idpHSeU1USZlAoAQPr6MrbYjI8Byp+1ou YDbhJzfzD3ba49pG0aSKqAf2pURdASDVvCofrTjCEYI07mW49oOi3y2NAjux8mNhfxse oMJeuFAoYG0HmsxjJGF+PQwwmtwXqAbgVvImvwqNHdJOb60G53+aymNb3QtP4cmCPdJy aMsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hisilicon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z1si18885563ejf.437.2021.10.13.02.04.44; Wed, 13 Oct 2021 02:05:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hisilicon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238892AbhJMJEr (ORCPT + 99 others); Wed, 13 Oct 2021 05:04:47 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:13734 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235111AbhJMJEq (ORCPT ); Wed, 13 Oct 2021 05:04:46 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4HTmjF0TGGzVfmC; Wed, 13 Oct 2021 17:01:05 +0800 (CST) Received: from dggema772-chm.china.huawei.com (10.1.198.214) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.8; Wed, 13 Oct 2021 17:02:42 +0800 Received: from [10.67.102.169] (10.67.102.169) by dggema772-chm.china.huawei.com (10.1.198.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.8; Wed, 13 Oct 2021 17:02:42 +0800 CC: , , , , , Barry Song , Valentin Schneider Subject: Re: [tip:sched/core 45/47] kernel/sched/topology.c:23:20: error: unused function 'sched_debug' To: kernel test robot References: <202110130209.1XL2cTpW-lkp@intel.com> From: Yicong Yang Message-ID: <0538ccac-19eb-a184-6aef-1d11eefbae17@hisilicon.com> Date: Wed, 13 Oct 2021 17:02:42 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: <202110130209.1XL2cTpW-lkp@intel.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.102.169] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggema772-chm.china.huawei.com (10.1.198.214) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 2021/10/13 2:30, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core > head: b2d5b9cec60fecc72a13191c2c6c05acf60975a5 > commit: f43df9225fcad9b07a4ef4d0fe4c3ad2fb4ce82d [45/47] sched/topology: Remove unused numa_distance in cpu_attach_domain() > config: hexagon-buildonly-randconfig-r004-20211012 (attached as .config) > compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c3dcf39554dbea780d6cb7e12239451ba47a2668) > 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://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=f43df9225fcad9b07a4ef4d0fe4c3ad2fb4ce82d > git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > git fetch --no-tags tip sched/core > git checkout f43df9225fcad9b07a4ef4d0fe4c3ad2fb4ce82d > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > >>> kernel/sched/topology.c:23:20: error: unused function 'sched_debug' [-Werror,-Wunused-function] > static inline bool sched_debug(void) > ^ > 1 error generated. > sched_debug() is unused if CONFIG_ENERGY_MODEL=n || CONFIG_CPU_FREQ_GOV_SCHEDUTIL=n and CONFIG_NUMA=n, which is the case in the report. This is not introduced by this patch. A __maybe_unused qualify for sched_debug() may fix this. Not sure we intends to do so. > > vim +/sched_debug +23 kernel/sched/topology.c > > f2cb13609d5397 Ingo Molnar 2017-02-01 22 > f2cb13609d5397 Ingo Molnar 2017-02-01 @23 static inline bool sched_debug(void) > f2cb13609d5397 Ingo Molnar 2017-02-01 24 { > 9406415f46f612 Peter Zijlstra 2021-04-15 25 return sched_debug_verbose; > f2cb13609d5397 Ingo Molnar 2017-02-01 26 } > f2cb13609d5397 Ingo Molnar 2017-02-01 27 > > :::::: The code at line 23 was first introduced by commit > :::::: f2cb13609d5397cdd747f3ed6fb651233851717d sched/topology: Split out scheduler topology code from core.c into topology.c > > :::::: TO: Ingo Molnar > :::::: CC: Ingo Molnar > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org >