All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: clang-built-linux@googlegroups.com, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org,
	Thomas Gleixner <tglx@linutronix.de>
Subject: [tglx-devel:rtmutex 12/62] kernel/locking/locktorture.c:468:8: error: implicit declaration of function '__RT_MUTEX_BASE_INITIALIZE'
Date: Wed, 28 Jul 2021 04:40:36 +0800	[thread overview]
Message-ID: <202107280431.v5gKUCaf-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 5253 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git rtmutex
head:   464d92f29d4fc8581adb0dc25bb8c1d108452fa6
commit: 62ee7142ca57390ba70945e6180e05f4fb1fc73b [12/62] rtmutex: Split out the inner parts of struct rtmutex
config: x86_64-randconfig-a003-20210727 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project c658b472f3e61e1818e1909bf02f3d65470018a5)
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 x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id=62ee7142ca57390ba70945e6180e05f4fb1fc73b
        git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
        git fetch --no-tags tglx-devel rtmutex
        git checkout 62ee7142ca57390ba70945e6180e05f4fb1fc73b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>):

>> kernel/locking/locktorture.c:468:8: error: implicit declaration of function '__RT_MUTEX_BASE_INITIALIZE' [-Werror,-Wimplicit-function-declaration]
   static DEFINE_RT_MUTEX(torture_rtmutex);
          ^
   include/linux/rtmutex.h:81:30: note: expanded from macro 'DEFINE_RT_MUTEX'
           struct rt_mutex mutexname = __RT_MUTEX_INITIALIZER(mutexname)
                                       ^
   include/linux/rtmutex.h:76:13: note: expanded from macro '__RT_MUTEX_INITIALIZER'
           .rtmutex = __RT_MUTEX_BASE_INITIALIZE(mutexname.rtmutex)        \
                      ^
>> kernel/locking/locktorture.c:468:8: warning: suggest braces around initialization of subobject [-Wmissing-braces]
   static DEFINE_RT_MUTEX(torture_rtmutex);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rtmutex.h:81:30: note: expanded from macro 'DEFINE_RT_MUTEX'
           struct rt_mutex mutexname = __RT_MUTEX_INITIALIZER(mutexname)
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rtmutex.h:76:13: note: expanded from macro '__RT_MUTEX_INITIALIZER'
           .rtmutex = __RT_MUTEX_BASE_INITIALIZE(mutexname.rtmutex)        \
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/locking/locktorture.c:468:8: warning: suggest braces around initialization of subobject [-Wmissing-braces]
   static DEFINE_RT_MUTEX(torture_rtmutex);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rtmutex.h:81:30: note: expanded from macro 'DEFINE_RT_MUTEX'
           struct rt_mutex mutexname = __RT_MUTEX_INITIALIZER(mutexname)
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rtmutex.h:76:13: note: expanded from macro '__RT_MUTEX_INITIALIZER'
           .rtmutex = __RT_MUTEX_BASE_INITIALIZE(mutexname.rtmutex)        \
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/locking/locktorture.c:468:8: warning: suggest braces around initialization of subobject [-Wmissing-braces]
   static DEFINE_RT_MUTEX(torture_rtmutex);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rtmutex.h:81:30: note: expanded from macro 'DEFINE_RT_MUTEX'
           struct rt_mutex mutexname = __RT_MUTEX_INITIALIZER(mutexname)
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rtmutex.h:76:13: note: expanded from macro '__RT_MUTEX_INITIALIZER'
           .rtmutex = __RT_MUTEX_BASE_INITIALIZE(mutexname.rtmutex)        \
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/locking/locktorture.c:468:8: error: initializer element is not a compile-time constant
   static DEFINE_RT_MUTEX(torture_rtmutex);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rtmutex.h:81:30: note: expanded from macro 'DEFINE_RT_MUTEX'
           struct rt_mutex mutexname = __RT_MUTEX_INITIALIZER(mutexname)
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rtmutex.h:76:13: note: expanded from macro '__RT_MUTEX_INITIALIZER'
           .rtmutex = __RT_MUTEX_BASE_INITIALIZE(mutexname.rtmutex)        \
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   3 warnings and 2 errors generated.


vim +/__RT_MUTEX_BASE_INITIALIZE +468 kernel/locking/locktorture.c

0186a6cbdc6287 Chris Wilson    2016-12-01  466  
095777c417db14 Davidlohr Bueso 2015-07-22  467  #ifdef CONFIG_RT_MUTEXES
095777c417db14 Davidlohr Bueso 2015-07-22 @468  static DEFINE_RT_MUTEX(torture_rtmutex);
095777c417db14 Davidlohr Bueso 2015-07-22  469  

:::::: The code at line 468 was first introduced by commit
:::::: 095777c417db142970adeb776fa0cb10810b8122 locktorture: Support rtmutex torturing

:::::: TO: Davidlohr Bueso <dave@stgolabs.net>
:::::: CC: Paul E. McKenney <paulmck@linux.vnet.ibm.com>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 36132 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [tglx-devel:rtmutex 12/62] kernel/locking/locktorture.c:468:8: error: implicit declaration of function '__RT_MUTEX_BASE_INITIALIZE'
Date: Wed, 28 Jul 2021 04:40:36 +0800	[thread overview]
Message-ID: <202107280431.v5gKUCaf-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 5341 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git rtmutex
head:   464d92f29d4fc8581adb0dc25bb8c1d108452fa6
commit: 62ee7142ca57390ba70945e6180e05f4fb1fc73b [12/62] rtmutex: Split out the inner parts of struct rtmutex
config: x86_64-randconfig-a003-20210727 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project c658b472f3e61e1818e1909bf02f3d65470018a5)
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 x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id=62ee7142ca57390ba70945e6180e05f4fb1fc73b
        git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
        git fetch --no-tags tglx-devel rtmutex
        git checkout 62ee7142ca57390ba70945e6180e05f4fb1fc73b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>):

>> kernel/locking/locktorture.c:468:8: error: implicit declaration of function '__RT_MUTEX_BASE_INITIALIZE' [-Werror,-Wimplicit-function-declaration]
   static DEFINE_RT_MUTEX(torture_rtmutex);
          ^
   include/linux/rtmutex.h:81:30: note: expanded from macro 'DEFINE_RT_MUTEX'
           struct rt_mutex mutexname = __RT_MUTEX_INITIALIZER(mutexname)
                                       ^
   include/linux/rtmutex.h:76:13: note: expanded from macro '__RT_MUTEX_INITIALIZER'
           .rtmutex = __RT_MUTEX_BASE_INITIALIZE(mutexname.rtmutex)        \
                      ^
>> kernel/locking/locktorture.c:468:8: warning: suggest braces around initialization of subobject [-Wmissing-braces]
   static DEFINE_RT_MUTEX(torture_rtmutex);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rtmutex.h:81:30: note: expanded from macro 'DEFINE_RT_MUTEX'
           struct rt_mutex mutexname = __RT_MUTEX_INITIALIZER(mutexname)
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rtmutex.h:76:13: note: expanded from macro '__RT_MUTEX_INITIALIZER'
           .rtmutex = __RT_MUTEX_BASE_INITIALIZE(mutexname.rtmutex)        \
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/locking/locktorture.c:468:8: warning: suggest braces around initialization of subobject [-Wmissing-braces]
   static DEFINE_RT_MUTEX(torture_rtmutex);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rtmutex.h:81:30: note: expanded from macro 'DEFINE_RT_MUTEX'
           struct rt_mutex mutexname = __RT_MUTEX_INITIALIZER(mutexname)
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rtmutex.h:76:13: note: expanded from macro '__RT_MUTEX_INITIALIZER'
           .rtmutex = __RT_MUTEX_BASE_INITIALIZE(mutexname.rtmutex)        \
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/locking/locktorture.c:468:8: warning: suggest braces around initialization of subobject [-Wmissing-braces]
   static DEFINE_RT_MUTEX(torture_rtmutex);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rtmutex.h:81:30: note: expanded from macro 'DEFINE_RT_MUTEX'
           struct rt_mutex mutexname = __RT_MUTEX_INITIALIZER(mutexname)
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rtmutex.h:76:13: note: expanded from macro '__RT_MUTEX_INITIALIZER'
           .rtmutex = __RT_MUTEX_BASE_INITIALIZE(mutexname.rtmutex)        \
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/locking/locktorture.c:468:8: error: initializer element is not a compile-time constant
   static DEFINE_RT_MUTEX(torture_rtmutex);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rtmutex.h:81:30: note: expanded from macro 'DEFINE_RT_MUTEX'
           struct rt_mutex mutexname = __RT_MUTEX_INITIALIZER(mutexname)
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rtmutex.h:76:13: note: expanded from macro '__RT_MUTEX_INITIALIZER'
           .rtmutex = __RT_MUTEX_BASE_INITIALIZE(mutexname.rtmutex)        \
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   3 warnings and 2 errors generated.


vim +/__RT_MUTEX_BASE_INITIALIZE +468 kernel/locking/locktorture.c

0186a6cbdc6287 Chris Wilson    2016-12-01  466  
095777c417db14 Davidlohr Bueso 2015-07-22  467  #ifdef CONFIG_RT_MUTEXES
095777c417db14 Davidlohr Bueso 2015-07-22 @468  static DEFINE_RT_MUTEX(torture_rtmutex);
095777c417db14 Davidlohr Bueso 2015-07-22  469  

:::::: The code at line 468 was first introduced by commit
:::::: 095777c417db142970adeb776fa0cb10810b8122 locktorture: Support rtmutex torturing

:::::: TO: Davidlohr Bueso <dave@stgolabs.net>
:::::: CC: Paul E. McKenney <paulmck@linux.vnet.ibm.com>

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 36132 bytes --]

             reply	other threads:[~2021-07-27 20:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-27 20:40 kernel test robot [this message]
2021-07-27 20:40 ` [tglx-devel:rtmutex 12/62] kernel/locking/locktorture.c:468:8: error: implicit declaration of function '__RT_MUTEX_BASE_INITIALIZE' kernel test robot

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=202107280431.v5gKUCaf-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    --cc=tglx@linutronix.de \
    /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.