All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Jason A. Donenfeld" <zx2c4@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	GNU/Weeb Mailing List <gwml@vger.gnuweeb.org>,
	linux-kernel@vger.kernel.org
Subject: [ammarfaizi2-block:crng/random/jd/notifier 54/55] include/linux/notifier.h:75:15: error: field has incomplete type 'struct mutex'
Date: Wed, 2 Mar 2022 10:51:25 +0800	[thread overview]
Message-ID: <202203020718.3ho17ASv-lkp@intel.com> (raw)

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-r022-20220301 (https://download.01.org/0day-ci/archive/20220302/202203020718.3ho17ASv-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
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
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # 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=clang 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 <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from arch/arm64/kernel/asm-offsets.c:10:
   In file included from include/linux/arm_sdei.h:8:
   In file included from include/acpi/ghes.h:5:
   In file included from include/acpi/apei.h:9:
   In file included from include/linux/acpi.h:13:
   In file included from include/linux/irqdomain.h:35:
   In file included from include/linux/of.h:17:
   In file included from include/linux/kobject.h:20:
   In file included from include/linux/sysfs.h:16:
   In file included from include/linux/kernfs.h:11:
   In file included from include/linux/mutex.h:19:
   In file included from arch/arm64/include/asm/processor.h:42:
   In file included from arch/arm64/include/asm/pointer_auth.h:7:
   In file included from include/linux/random.h:10:
   In file included from include/linux/notifier.h:16:
   In file included from include/linux/srcu.h:49:
>> include/linux/srcutree.h:68:15: error: field has incomplete type 'struct mutex'
           struct mutex srcu_cb_mutex;             /* Serialize CB preparation. */
                        ^
   include/linux/srcutree.h:68:9: note: forward declaration of 'struct mutex'
           struct mutex srcu_cb_mutex;             /* Serialize CB preparation. */
                  ^
   include/linux/srcutree.h:70:15: error: field has incomplete type 'struct mutex'
           struct mutex srcu_gp_mutex;             /* Serialize GP work. */
                        ^
   include/linux/srcutree.h:68:9: note: forward declaration of 'struct mutex'
           struct mutex srcu_cb_mutex;             /* Serialize CB preparation. */
                  ^
   include/linux/srcutree.h:78:15: error: field has incomplete type 'struct mutex'
           struct mutex srcu_barrier_mutex;        /* Serialize barrier ops. */
                        ^
   include/linux/srcutree.h:68:9: note: forward declaration of 'struct mutex'
           struct mutex srcu_cb_mutex;             /* Serialize CB preparation. */
                  ^
   In file included from arch/arm64/kernel/asm-offsets.c:10:
   In file included from include/linux/arm_sdei.h:8:
   In file included from include/acpi/ghes.h:5:
   In file included from include/acpi/apei.h:9:
   In file included from include/linux/acpi.h:13:
   In file included from include/linux/irqdomain.h:35:
   In file included from include/linux/of.h:17:
   In file included from include/linux/kobject.h:20:
   In file included from include/linux/sysfs.h:16:
   In file included from include/linux/kernfs.h:11:
   In file included from include/linux/mutex.h:19:
   In file included from arch/arm64/include/asm/processor.h:42:
   In file included from arch/arm64/include/asm/pointer_auth.h:7:
   In file included from include/linux/random.h:10:
>> include/linux/notifier.h:75:15: error: field has incomplete type 'struct mutex'
           struct mutex mutex;
                        ^
   include/linux/srcutree.h:68:9: note: forward declaration of 'struct mutex'
           struct mutex srcu_cb_mutex;             /* Serialize CB preparation. */
                  ^
   4 errors generated.
   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 +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 <stern@rowland.harvard.edu>
:::::: CC: Linus Torvalds <torvalds@g5.osdl.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

                 reply	other threads:[~2022-03-02  2:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202203020718.3ho17ASv-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=gwml@vger.gnuweeb.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=zx2c4@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.