Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1013495iob; Fri, 13 May 2022 19:38:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb5CGpBX0AsEkOfPgj2Yf+y2zvS5oiv5c1XpEGFEcXPHfdg1g4icKZs8mewdvrqlf+dHnY X-Received: by 2002:a5d:544e:0:b0:20c:ff3c:4d5c with SMTP id w14-20020a5d544e000000b0020cff3c4d5cmr126757wrv.399.1652495901858; Fri, 13 May 2022 19:38:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652495901; cv=none; d=google.com; s=arc-20160816; b=StQf/mKS0+X3x5G2BYCwnNGkNxbNFXapBbyPo8R0uxHzRYWI23gy1B2x+8Gm9Az/J/ HkUIEhrL4vmMA5biP0b4vXzh7LBXlmM9FQozO8LcxNcz6kpK7MxBPrdCK9RsrIkovIWh YrE/IqB/blp9iOs2Sq/cbDdw+Su8twYfeZfS6g8QK3mRdpocokMPFZ0ZFvwetg7NVzJT S6rmCr3oS+JMYXPPczrBNqbDlDlAOr8fxWo8z45Agh2NlcCdy9SaTApzdzyFmYzC/0V2 Fj0PB4R04lPqIOjf+pWyGtAO041cOvtZeWzL0gyphMqcbskkJY2d0zFWu6JgThWtIoIz 96Lg== 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=9vhA1o3ZJ0JOsUklQ1Naihb39f5eJvHd2p6L1UyzDJU=; b=gokhmfydJku9CB7ejFHqzAmWhHrJqUEihBYqK1OqFzHrJoUxv6QiZEgeFD+x4bnmmB WTSc8E63/bK5MXbKBfAv3jKDXhblvzzsJsvq8LtfJrnQSWFcXFJ7hjAzBD7HA8UAWmcr HRA4yAHuzwtAAEGdQn5yMZzs75VOy9FkF9LanGgzxBjHj7Jy6KF3S/BttMGC4NkWU1og 4FSx4Tjhwilk+rWPWc7BrElbwSZXWLOb+Dls4wBnLF1gxLTgTkRIakr1ca0WiLDSYpXZ MKJRfjxoeSHPZ/1s0IfRnARf4b/FlATGxrhTH/1VU3+yAPRMj7eMP+SH+wcHsW0a2HQk lddA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WSfY2Ebs; 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 f11-20020a05600c154b00b003943bcbdbe3si8808942wmg.227.2022.05.13.19.38.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 19:38:21 -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=WSfY2Ebs; 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 36FD94F87F3; Fri, 13 May 2022 17:49:38 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376607AbiEMC6h (ORCPT + 99 others); Thu, 12 May 2022 22:58:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376599AbiEMC6c (ORCPT ); Thu, 12 May 2022 22:58:32 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D9A92927A2 for ; Thu, 12 May 2022 19:58:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652410711; x=1683946711; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=SzQgBpjRtY7+OjO4z70O/XdgIcbGLvWzeSJ5axqI1Zc=; b=WSfY2Ebs+zGI24P83SfZmJJoG1F+hP+aZ4dbzm45XC/DyryAaor7Yywo 0EI7fmFzYeUxGHOHDxOCNN42jcRtEWAOtCwv722pU8YrhV5/RZnCjjWq4 ZfqyLVOhw9r7gR9ynLZ/M4rrbYbIUnspZ4jOr0h1KEtD7bqdGcxfaDEB+ rAm50xHWFQ2toIoC/Fo4n3hhJWKK4Cyq/QKtlEpT87fYRvniqVjpwaqcV xk8UnPA97UljTp0RV1+RiFMTH1v5Pmd34TP84MikszeXFZEZziQ9VevSz NKuxDIuLX53KwFMou8/See2rIETXnEIPl4eZyQMjYOk1iBzJtaUVoesR1 A==; X-IronPort-AV: E=McAfee;i="6400,9594,10345"; a="269869008" X-IronPort-AV: E=Sophos;i="5.91,221,1647327600"; d="scan'208";a="269869008" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2022 19:58:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,221,1647327600"; d="scan'208";a="698316119" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 12 May 2022 19:58:27 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1npLVa-000LEO-Op; Fri, 13 May 2022 02:58:26 +0000 Date: Fri, 13 May 2022 10:57:48 +0800 From: kernel test robot To: Gaosheng Cui , catalin.marinas@arm.com, will@kernel.org, broonie@kernel.org, pcc@google.com, mark.rutland@arm.com, keescook@chromium.org, daniel.kiss@arm.com Cc: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, wangweiyang2@huawei.com, gongruiqi1@huawei.com Subject: Re: [PATCH -next] arm64: add missing header dependencies Message-ID: <202205131035.qIYEFTpo-lkp@intel.com> References: <20220509061751.3434059-1-cuigaosheng1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220509061751.3434059-1-cuigaosheng1@huawei.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 Gaosheng, Thank you for the patch! Yet something to improve: [auto build test ERROR on next-20220506] url: https://github.com/intel-lab-lkp/linux/commits/Gaosheng-Cui/arm64-add-missing-header-dependencies/20220509-142946 base: 38a288f5941ef03752887ad86f2d85442358c99a config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20220513/202205131035.qIYEFTpo-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 11.3.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/05d29bfe89ad4e7205d77fcdd8199dd6544ff784 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Gaosheng-Cui/arm64-add-missing-header-dependencies/20220509-142946 git checkout 05d29bfe89ad4e7205d77fcdd8199dd6544ff784 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arm64 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/ipc.h:7, from include/uapi/linux/sem.h:5, from include/linux/sem.h:5, from include/linux/sched.h:15, from include/linux/sched/task_stack.h:9, from arch/arm64/include/asm/processor.h:31, from include/linux/mutex.h:19, from include/linux/kernfs.h:11, from include/linux/sysfs.h:16, from include/linux/kobject.h:20, from include/linux/of.h:17, from include/linux/irqdomain.h:35, from include/linux/acpi.h:13, from include/acpi/apei.h:9, from include/acpi/ghes.h:5, from include/linux/arm_sdei.h:8, from arch/arm64/kernel/asm-offsets.c:10: >> include/linux/rhashtable-types.h:88:41: error: field 'mutex' has incomplete type 88 | struct mutex mutex; | ^~~~~ In file included from include/linux/hrtimer.h:20, from include/linux/sched.h:19, from include/linux/sched/task_stack.h:9, from arch/arm64/include/asm/processor.h:31, from include/linux/mutex.h:19, from include/linux/kernfs.h:11, from include/linux/sysfs.h:16, from include/linux/kobject.h:20, from include/linux/of.h:17, from include/linux/irqdomain.h:35, from include/linux/acpi.h:13, from include/acpi/apei.h:9, from include/acpi/ghes.h:5, from include/linux/arm_sdei.h:8, from arch/arm64/kernel/asm-offsets.c:10: include/linux/seqlock.h: In function '__seqprop_mutex_sequence': >> include/linux/seqlock.h:277:86: error: implicit declaration of function 'mutex_lock' [-Werror=implicit-function-declaration] 277 | SEQCOUNT_LOCKNAME(mutex, struct mutex, true, s->lock, mutex, mutex_lock(s->lock)) | ^~~~~~~~~~ include/linux/seqlock.h:151:33: note: in definition of macro '__SEQ_LOCK' 151 | #define __SEQ_LOCK(expr) expr | ^~~~ include/linux/seqlock.h:277:1: note: in expansion of macro 'SEQCOUNT_LOCKNAME' 277 | SEQCOUNT_LOCKNAME(mutex, struct mutex, true, s->lock, mutex, mutex_lock(s->lock)) | ^~~~~~~~~~~~~~~~~ >> include/linux/seqlock.h:277:76: error: implicit declaration of function 'mutex_unlock'; did you mean 'write_unlock'? [-Werror=implicit-function-declaration] 277 | SEQCOUNT_LOCKNAME(mutex, struct mutex, true, s->lock, mutex, mutex_lock(s->lock)) | ^~~~~ include/linux/seqlock.h:151:33: note: in definition of macro '__SEQ_LOCK' 151 | #define __SEQ_LOCK(expr) expr | ^~~~ include/linux/seqlock.h:277:1: note: in expansion of macro 'SEQCOUNT_LOCKNAME' 277 | SEQCOUNT_LOCKNAME(mutex, struct mutex, true, s->lock, mutex, mutex_lock(s->lock)) | ^~~~~~~~~~~~~~~~~ include/linux/seqlock.h: In function '__seqprop_mutex_assert': >> include/linux/lockdep.h:282:61: error: invalid use of undefined type 'struct mutex' 282 | #define lockdep_is_held(lock) lock_is_held(&(lock)->dep_map) | ^~ include/linux/seqlock.h:151:33: note: in definition of macro '__SEQ_LOCK' 151 | #define __SEQ_LOCK(expr) expr | ^~~~ include/linux/lockdep.h:306:14: note: in expansion of macro 'WARN_ON' 306 | do { WARN_ON(debug_locks && !(cond)); } while (0) | ^~~~~~~ include/linux/lockdep.h:312:9: note: in expansion of macro 'lockdep_assert' 312 | lockdep_assert(lockdep_is_held(l) != LOCK_STATE_NOT_HELD) | ^~~~~~~~~~~~~~ include/linux/lockdep.h:312:24: note: in expansion of macro 'lockdep_is_held' 312 | lockdep_assert(lockdep_is_held(l) != LOCK_STATE_NOT_HELD) | ^~~~~~~~~~~~~~~ include/linux/seqlock.h:245:20: note: in expansion of macro 'lockdep_assert_held' 245 | __SEQ_LOCK(lockdep_assert_held(lockmember)); \ | ^~~~~~~~~~~~~~~~~~~ include/linux/seqlock.h:277:1: note: in expansion of macro 'SEQCOUNT_LOCKNAME' 277 | SEQCOUNT_LOCKNAME(mutex, struct mutex, true, s->lock, mutex, mutex_lock(s->lock)) | ^~~~~~~~~~~~~~~~~ include/linux/seqlock.h: In function 'read_seqbegin': >> include/linux/seqlock.h:330:17: error: implicit declaration of function 'cpu_relax' [-Werror=implicit-function-declaration] 330 | cpu_relax(); \ | ^~~~~~~~~ include/linux/seqlock.h:344:25: note: in expansion of macro '__read_seqcount_begin' 344 | unsigned _seq = __read_seqcount_begin(s); \ | ^~~~~~~~~~~~~~~~~~~~~ include/linux/seqlock.h:359:9: note: in expansion of macro 'raw_read_seqcount_begin' 359 | raw_read_seqcount_begin(s); \ | ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/seqlock.h:836:24: note: in expansion of macro 'read_seqcount_begin' 836 | unsigned ret = read_seqcount_begin(&sl->seqcount); | ^~~~~~~~~~~~~~~~~~~ In file included from include/linux/sched/task_stack.h:9, from arch/arm64/include/asm/processor.h:31, from include/linux/mutex.h:19, from include/linux/kernfs.h:11, from include/linux/sysfs.h:16, from include/linux/kobject.h:20, from include/linux/of.h:17, from include/linux/irqdomain.h:35, from include/linux/acpi.h:13, from include/acpi/apei.h:9, from include/acpi/ghes.h:5, from include/linux/arm_sdei.h:8, from arch/arm64/kernel/asm-offsets.c:10: include/linux/sched.h: At top level: >> include/linux/sched.h:1227:41: error: field 'futex_exit_mutex' has incomplete type 1227 | struct mutex futex_exit_mutex; | ^~~~~~~~~~~~~~~~ >> include/linux/sched.h:1232:41: error: field 'perf_event_mutex' has incomplete type 1232 | struct mutex perf_event_mutex; | ^~~~~~~~~~~~~~~~ >> include/linux/sched.h:1512:41: error: field 'thread' has incomplete type 1512 | struct thread_struct thread; | ^~~~~~ In file included from include/vdso/processor.h:10, from arch/arm64/include/asm/processor.h:36, from include/linux/mutex.h:19, from include/linux/kernfs.h:11, from include/linux/sysfs.h:16, from include/linux/kobject.h:20, from include/linux/of.h:17, from include/linux/irqdomain.h:35, from include/linux/acpi.h:13, from include/acpi/apei.h:9, from include/acpi/ghes.h:5, from include/linux/arm_sdei.h:8, from arch/arm64/kernel/asm-offsets.c:10: >> arch/arm64/include/asm/vdso/processor.h:10:20: warning: conflicting types for 'cpu_relax'; have 'void(void)' 10 | static inline void cpu_relax(void) | ^~~~~~~~~ >> arch/arm64/include/asm/vdso/processor.h:10:20: error: static declaration of 'cpu_relax' follows non-static declaration In file included from include/linux/hrtimer.h:20, from include/linux/sched.h:19, from include/linux/sched/task_stack.h:9, from arch/arm64/include/asm/processor.h:31, from include/linux/mutex.h:19, from include/linux/kernfs.h:11, from include/linux/sysfs.h:16, from include/linux/kobject.h:20, from include/linux/of.h:17, from include/linux/irqdomain.h:35, from include/linux/acpi.h:13, from include/acpi/apei.h:9, from include/acpi/ghes.h:5, from include/linux/arm_sdei.h:8, from arch/arm64/kernel/asm-offsets.c:10: include/linux/seqlock.h:330:17: note: previous implicit declaration of 'cpu_relax' with type 'void(void)' 330 | cpu_relax(); \ | ^~~~~~~~~ include/linux/seqlock.h:344:25: note: in expansion of macro '__read_seqcount_begin' 344 | unsigned _seq = __read_seqcount_begin(s); \ | ^~~~~~~~~~~~~~~~~~~~~ include/linux/seqlock.h:359:9: note: in expansion of macro 'raw_read_seqcount_begin' 359 | raw_read_seqcount_begin(s); \ | ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/seqlock.h:836:24: note: in expansion of macro 'read_seqcount_begin' 836 | unsigned ret = read_seqcount_begin(&sl->seqcount); | ^~~~~~~~~~~~~~~~~~~ In file included from include/linux/mutex.h:19, from include/linux/kernfs.h:11, from include/linux/sysfs.h:16, from include/linux/kobject.h:20, from include/linux/of.h:17, from include/linux/irqdomain.h:35, from include/linux/acpi.h:13, from include/acpi/apei.h:9, from include/acpi/ghes.h:5, from include/linux/arm_sdei.h:8, from arch/arm64/kernel/asm-offsets.c:10: >> arch/arm64/include/asm/processor.h:70: warning: "TASK_SIZE_OF" redefined 70 | #define TASK_SIZE_OF(tsk) (test_tsk_thread_flag(tsk, TIF_32BIT) ? \ | In file included from include/linux/sched/task_stack.h:9, from arch/arm64/include/asm/processor.h:31, from include/linux/mutex.h:19, from include/linux/kernfs.h:11, from include/linux/sysfs.h:16, from include/linux/kobject.h:20, from include/linux/of.h:17, from include/linux/irqdomain.h:35, from include/linux/acpi.h:13, from include/acpi/apei.h:9, from include/acpi/ghes.h:5, from include/linux/arm_sdei.h:8, from arch/arm64/kernel/asm-offsets.c:10: include/linux/sched.h:2248: note: this is the location of the previous definition 2248 | #define TASK_SIZE_OF(tsk) TASK_SIZE | In file included from include/linux/kernfs.h:11, from include/linux/sysfs.h:16, from include/linux/kobject.h:20, from include/linux/of.h:17, from include/linux/irqdomain.h:35, from include/linux/acpi.h:13, from include/acpi/apei.h:9, from include/acpi/ghes.h:5, from include/linux/arm_sdei.h:8, from arch/arm64/kernel/asm-offsets.c:10: >> include/linux/mutex.h:218:13: warning: conflicting types for 'mutex_unlock'; have 'void(struct mutex *)' 218 | extern void mutex_unlock(struct mutex *lock); | ^~~~~~~~~~~~ In file included from include/linux/hrtimer.h:20, from include/linux/sched.h:19, from include/linux/sched/task_stack.h:9, from arch/arm64/include/asm/processor.h:31, from include/linux/mutex.h:19, from include/linux/kernfs.h:11, from include/linux/sysfs.h:16, from include/linux/kobject.h:20, from include/linux/of.h:17, from include/linux/irqdomain.h:35, from include/linux/acpi.h:13, from include/acpi/apei.h:9, from include/acpi/ghes.h:5, from include/linux/arm_sdei.h:8, from arch/arm64/kernel/asm-offsets.c:10: include/linux/seqlock.h:277:76: note: previous implicit declaration of 'mutex_unlock' with type 'void(struct mutex *)' 277 | SEQCOUNT_LOCKNAME(mutex, struct mutex, true, s->lock, mutex, mutex_lock(s->lock)) | ^~~~~ include/linux/seqlock.h:151:33: note: in definition of macro '__SEQ_LOCK' 151 | #define __SEQ_LOCK(expr) expr | ^~~~ include/linux/seqlock.h:277:1: note: in expansion of macro 'SEQCOUNT_LOCKNAME' 277 | SEQCOUNT_LOCKNAME(mutex, struct mutex, true, s->lock, mutex, mutex_lock(s->lock)) | ^~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:122: arch/arm64/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1284: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:226: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +/cpu_relax +10 arch/arm64/include/asm/vdso/processor.h f511e079177a9b Vincenzo Frascino 2020-03-20 9 f511e079177a9b Vincenzo Frascino 2020-03-20 @10 static inline void cpu_relax(void) f511e079177a9b Vincenzo Frascino 2020-03-20 11 { f511e079177a9b Vincenzo Frascino 2020-03-20 12 asm volatile("yield" ::: "memory"); f511e079177a9b Vincenzo Frascino 2020-03-20 13 } f511e079177a9b Vincenzo Frascino 2020-03-20 14 -- 0-DAY CI Kernel Test Service https://01.org/lkp