Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2720647pxb; Mon, 25 Apr 2022 00:26:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwc0O16S+pqu6ruSultHHj1iShjY9orGMlcg3seAj0msMzKhS15lj5hHatB+EPemc5k18xD X-Received: by 2002:a17:906:c156:b0:6f3:9e3c:5cc8 with SMTP id dp22-20020a170906c15600b006f39e3c5cc8mr1506312ejc.17.1650871589351; Mon, 25 Apr 2022 00:26:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650871589; cv=none; d=google.com; s=arc-20160816; b=0UyrpJSGylt8L4zBI5i0EF+mGnR0ljmFSH9Duqk1jjpVfazj8dqHlnyrq65jf84RKm W62eRgZ0briMc36vDLHhffsULycsrQXe3SoWhVhtP75/kGkiGhUmSZa0yMQ3jgvdIZNE 0+yFlR5iV2PvSEd5X8SoIvOBmW11TCmJtuvdg5uUjiMf3/npwAWZUsQhIoB1p67CFEwq VnM59cCQrbVul8nrTtuw4kn6fzRmHoYdVnVbPg9lHfdmmXoeEVCjiO3BZGiISxbD2Wa0 HBWYHk9cl4/pKnM7X7xmKJoqH2DV+vAay54QMPekNXZu7V6y+lzzJm81hsZT0rNgnLBG kKpw== 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=WhqGlAtOEi1g9iubB+JaRQXDbfUQTrYzIuc+v9YqaTE=; b=birnQWVgWe7ForJ7aHvC/ypf2kk+HS7e2ePt/1DDaCSiueaRa39KnkPq8TSEk6yjP6 3oiA/T4Poqod0DiL8qyWsh1mutWaH80iQCWdW93CqukOFruu4hiqbfZGQloWVYj7j6fO p3T94VJ0mZXDvmPk2B8oTt2L+ex9fn4RGVHTrjvCWLEPnqjJtqZXk3gkqow4NMYNl0lB EcAXKKU3fWLQCvrAB8vSCAiNWVAaN9fPVMuYHE43xqFeUFDC6gpcZmmnIquoL5mjkNIY 4GKDQxcqRFq7nKJX0NvjwAFRQkwrDZgrtfER9vVvyKOYoGFrFarja6WthSpYrLcts2H+ +yGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UZvCHSX1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m5-20020a509985000000b00423e4d00368si12037940edb.176.2022.04.25.00.26.05; Mon, 25 Apr 2022 00:26:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UZvCHSX1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238470AbiDXT2H (ORCPT + 99 others); Sun, 24 Apr 2022 15:28:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237458AbiDXT2F (ORCPT ); Sun, 24 Apr 2022 15:28:05 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB64512772 for ; Sun, 24 Apr 2022 12:25:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650828301; x=1682364301; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=/c8Hp3fLsUIryinor/1uRxQ5rrS7P0JWeBM5qeL0Gto=; b=UZvCHSX1P3l1eNTqwiR2xAu5WtBGvkrZY6zynrG3wfp2pMvP8BQESe1r ZtKdcMndEm9oiZSDd3+5i2KKSWuknjglkRs29kFwRvxlHU0VOGWtIe5Hu p/79Ilpz6rYsBjm3PfvKPOwPvRe0lMDwcmRzgmNvaCIB/gmj2PzMMShsU WFzqkPqziBKvT0v9WjQDZlGhgPS4OyNTzXKuVnhGphbn/u5wvU2ktyus1 TvIv6Pxp5MH0a5M+HjXzrRKhcHxpDK7/6HwnqAk+X0Tyevjj2OLVYl/vO +aA6Am3n1vA8zbwGbcoGKp0RQoRPWfPhd13YR0OlG6wvM0TV6toWEiNPX w==; X-IronPort-AV: E=McAfee;i="6400,9594,10327"; a="245005836" X-IronPort-AV: E=Sophos;i="5.90,287,1643702400"; d="scan'208";a="245005836" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2022 12:25:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,287,1643702400"; d="scan'208";a="531776655" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 24 Apr 2022 12:24:56 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1nihqp-0001iL-G6; Sun, 24 Apr 2022 19:24:55 +0000 Date: Mon, 25 Apr 2022 03:23:58 +0800 From: kernel test robot To: Cruz Zhao , mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, akpm@linux-foundation.org, tglx@linutronix.de, luto@kernel.org, legion@kernel.org, fenghua.yu@intel.com, david@redhat.com, bristot@redhat.com, bigeasy@linutronix.de, ebiederm@xmission.com Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sched/core: Skip sched_core_fork/free() when core sched is disabled Message-ID: <202204250352.INhpElgh-lkp@intel.com> References: <1650818276-129374-1-git-send-email-CruzZhao@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1650818276-129374-1-git-send-email-CruzZhao@linux.alibaba.com> X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,URIBL_BLOCKED autolearn=ham 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 Cruz, Thank you for the patch! Yet something to improve: [auto build test ERROR on tip/sched/core] [also build test ERROR on hnaz-mm/master linus/master v5.18-rc3 next-20220422] [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/Cruz-Zhao/sched-core-Skip-sched_core_fork-free-when-core-sched-is-disabled/20220425-003934 base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git a658353167bf2ea6052cee071dbcc13e0f229dc9 config: ia64-allyesconfig (https://download.01.org/0day-ci/archive/20220425/202204250352.INhpElgh-lkp@intel.com/config) compiler: ia64-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/intel-lab-lkp/linux/commit/211b98683083c1f71c1821b89877743bd1a4cc99 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Cruz-Zhao/sched-core-Skip-sched_core_fork-free-when-core-sched-is-disabled/20220425-003934 git checkout 211b98683083c1f71c1821b89877743bd1a4cc99 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross W=1 O=build_dir ARCH=ia64 prepare If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): scripts/genksyms/parse.y: warning: 9 shift/reduce conflicts [-Wconflicts-sr] scripts/genksyms/parse.y: warning: 5 reduce/reduce conflicts [-Wconflicts-rr] scripts/genksyms/parse.y: note: rerun with option '-Wcounterexamples' to generate conflict counterexamples In file included from include/linux/sched/signal.h:7, from arch/ia64/kernel/asm-offsets.c:10: >> include/linux/sched.h:2400:1: warning: data definition has no type or storage class 2400 | DECLARE_STATIC_KEY_FALSE(__sched_core_enabled); | ^~~~~~~~~~~~~~~~~~~~~~~~ >> include/linux/sched.h:2400:1: error: type defaults to 'int' in declaration of 'DECLARE_STATIC_KEY_FALSE' [-Werror=implicit-int] >> include/linux/sched.h:2400:1: warning: parameter names (without types) in function declaration include/linux/sched.h: In function 'sched_core_disabled': >> include/linux/sched.h:2403:17: error: implicit declaration of function 'static_branch_unlikely' [-Werror=implicit-function-declaration] 2403 | return !static_branch_unlikely(&__sched_core_enabled); | ^~~~~~~~~~~~~~~~~~~~~~ >> include/linux/sched.h:2403:41: error: '__sched_core_enabled' undeclared (first use in this function); did you mean 'sched_core_disabled'? 2403 | return !static_branch_unlikely(&__sched_core_enabled); | ^~~~~~~~~~~~~~~~~~~~ | sched_core_disabled include/linux/sched.h:2403:41: note: each undeclared identifier is reported only once for each function it appears in arch/ia64/kernel/asm-offsets.c: At top level: arch/ia64/kernel/asm-offsets.c:23:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes] 23 | void foo(void) | ^~~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:120: arch/ia64/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1194: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:219: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +2400 include/linux/sched.h 2394 2395 #ifdef CONFIG_SCHED_CORE 2396 extern void sched_core_free(struct task_struct *tsk); 2397 extern void sched_core_fork(struct task_struct *p); 2398 extern int sched_core_share_pid(unsigned int cmd, pid_t pid, enum pid_type type, 2399 unsigned long uaddr); > 2400 DECLARE_STATIC_KEY_FALSE(__sched_core_enabled); 2401 static inline bool sched_core_disabled(void) 2402 { > 2403 return !static_branch_unlikely(&__sched_core_enabled); 2404 } 2405 -- 0-DAY CI Kernel Test Service https://01.org/lkp