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 8E75CC433F5 for ; Wed, 2 Mar 2022 02:51:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239191AbiCBCw2 (ORCPT ); Tue, 1 Mar 2022 21:52:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239164AbiCBCwS (ORCPT ); Tue, 1 Mar 2022 21:52:18 -0500 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29506AA2CD for ; Tue, 1 Mar 2022 18:51:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646189496; x=1677725496; h=date:from:to:cc:subject:message-id:mime-version; bh=Zekt8V3VJWX1MvKLCtHwlt10X8nbNxKckzBdl/20LB8=; b=Gif8WMaZyHeylAj4rMfYiz5ajaZgzLEKEQZU3U3YHzc6xds+H60T9kyn /emJxiCsdOQ0R8XxDvh1QjzMU+anW4jkRjYkH6nkLpEyJ6lrijC0z/JM3 qNZkwok5FEybDwW+ufuzfucA4CHK0udnWJhfSpr09mb9QOoe8RkZ/sKoq 53hvRL6TOJwW8n9YpzsidwGOt293gDfD6qwu7uq9q5OkTKRSplBz0PB3J rB040QunXTc9qvHP6LwQg0gOjQdb7cwIqN4ba7hZWyJoWYiozjiogw8ex kT9W+RR9W+9Omy090b381P9xUwdHii+zQ1dtKNkG+Epth/pdGh29RcCFh A==; X-IronPort-AV: E=McAfee;i="6200,9189,10273"; a="236803765" X-IronPort-AV: E=Sophos;i="5.90,146,1643702400"; d="scan'208";a="236803765" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2022 18:51:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,146,1643702400"; d="scan'208";a="575957683" Received: from lkp-server02.sh.intel.com (HELO e9605edfa585) ([10.239.97.151]) by orsmga001.jf.intel.com with ESMTP; 01 Mar 2022 18:51:34 -0800 Received: from kbuild by e9605edfa585 with local (Exim 4.92) (envelope-from ) id 1nPF5R-0000wO-J7; Wed, 02 Mar 2022 02:51:33 +0000 Date: Wed, 2 Mar 2022 10:51:28 +0800 From: kernel test robot To: "Jason A. Donenfeld" Cc: kbuild-all@lists.01.org, GNU/Weeb Mailing List , linux-kernel@vger.kernel.org Subject: [ammarfaizi2-block:crng/random/jd/notifier 54/55] include/linux/notifier.h:75:22: error: field 'mutex' has incomplete type Message-ID: <202203020810.W9y73VFu-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://github.com/ammarfaizi2/linux-block crng/random/jd/notifier head: 3c87f9e874ba4807cbb5473bab3eb5c2f5d716db commit: d8ac9430b0435d0f09b5c909f80f8980183c93d1 [54/55] random: replace custom notifier chain with standard one config: arm64-randconfig-r033-20220301 (https://download.01.org/0day-ci/archive/20220302/202203020810.W9y73VFu-lkp@intel.com/config) compiler: aarch64-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/ammarfaizi2/linux-block/commit/d8ac9430b0435d0f09b5c909f80f8980183c93d1 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block crng/random/jd/notifier git checkout d8ac9430b0435d0f09b5c909f80f8980183c93d1 # 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=arm64 prepare If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from include/linux/srcu.h:49, from include/linux/notifier.h:16, from include/linux/random.h:10, from arch/arm64/include/asm/pointer_auth.h:7, from arch/arm64/include/asm/processor.h:42, 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/srcutree.h:68:22: error: field 'srcu_cb_mutex' has incomplete type 68 | struct mutex srcu_cb_mutex; /* Serialize CB preparation. */ | ^~~~~~~~~~~~~ >> include/linux/srcutree.h:70:22: error: field 'srcu_gp_mutex' has incomplete type 70 | struct mutex srcu_gp_mutex; /* Serialize GP work. */ | ^~~~~~~~~~~~~ >> include/linux/srcutree.h:78:22: error: field 'srcu_barrier_mutex' has incomplete type 78 | struct mutex srcu_barrier_mutex; /* Serialize barrier ops. */ | ^~~~~~~~~~~~~~~~~~ In file included from include/linux/random.h:10, from arch/arm64/include/asm/pointer_auth.h:7, from arch/arm64/include/asm/processor.h:42, 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/notifier.h:75:22: error: field 'mutex' has incomplete type 75 | struct mutex mutex; | ^~~~~ make[2]: *** [scripts/Makefile.build:121: arch/arm64/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1191: 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 +/mutex +75 include/linux/notifier.h e041c683412d5b Alan Stern 2006-03-27 73 eabc069401bcf4 Alan Stern 2006-10-04 74 struct srcu_notifier_head { eabc069401bcf4 Alan Stern 2006-10-04 @75 struct mutex mutex; eabc069401bcf4 Alan Stern 2006-10-04 76 struct srcu_struct srcu; 374a8e0dc33c98 Arnd Bergmann 2010-02-24 77 struct notifier_block __rcu *head; eabc069401bcf4 Alan Stern 2006-10-04 78 }; eabc069401bcf4 Alan Stern 2006-10-04 79 :::::: The code at line 75 was first introduced by commit :::::: eabc069401bcf45bcc3f19e643017bf761780aa8 [PATCH] Add SRCU-based notifier chains :::::: TO: Alan Stern :::::: CC: Linus Torvalds --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org