All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC PATCH 06/14] coresight: Convert claim and lock operations to use access wrappers
Date: Mon, 27 Jul 2020 14:04:50 +0800	[thread overview]
Message-ID: <202007271309.tMtffvgN%lkp@intel.com> (raw)
In-Reply-To: <20200722172040.1299289-7-suzuki.poulose@arm.com>

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

Hi Suzuki,

[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on next-20200722]
[cannot apply to stm32/stm32-next keystone/next rockchip/for-next shawnguo/for-next soc/for-next linus/master v5.8-rc6 v5.8-rc5 v5.8-rc4 v5.8-rc7]
[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/0day-ci/linux/commits/Suzuki-K-Poulose/coresight-Support-for-ETMv4-4-system-instructions/20200723-012330
base:    73aece61f643fc0a1d224b6ad53e70832ac757c3
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.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
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 

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 >>):

>> drivers/hwtracing/coresight/coresight-cpu-debug.c:111:20: error: 'debug_lock' redeclared as different kind of symbol
     111 | static inline void debug_lock(struct debug_drvdata *drvdata)
         |                    ^~~~~~~~~~
   In file included from include/linux/notifier.h:14,
                    from include/linux/clk.h:14,
                    from include/linux/amba/bus.h:14,
                    from drivers/hwtracing/coresight/coresight-cpu-debug.c:7:
   drivers/hwtracing/coresight/coresight-cpu-debug.c:102:21: note: previous definition of 'debug_lock' was here
     102 | static DEFINE_MUTEX(debug_lock);
         |                     ^~~~~~~~~~
   include/linux/mutex.h:129:15: note: in definition of macro 'DEFINE_MUTEX'
     129 |  struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
         |               ^~~~~~~~~
   drivers/hwtracing/coresight/coresight-cpu-debug.c: In function 'debug_lock':
>> drivers/hwtracing/coresight/coresight-cpu-debug.c:113:9: error: variable 'dummy' has initializer but incomplete type
     113 |  struct csdev_acces dummy = {
         |         ^~~~~~~~~~~
>> drivers/hwtracing/coresight/coresight-cpu-debug.c:114:4: error: 'struct csdev_acces' has no member named 'base'
     114 |   .base = drvdata->base,
         |    ^~~~
>> drivers/hwtracing/coresight/coresight-cpu-debug.c:114:11: warning: excess elements in struct initializer
     114 |   .base = drvdata->base,
         |           ^~~~~~~
   drivers/hwtracing/coresight/coresight-cpu-debug.c:114:11: note: (near initialization for 'dummy')
>> drivers/hwtracing/coresight/coresight-cpu-debug.c:113:21: error: storage size of 'dummy' isn't known
     113 |  struct csdev_acces dummy = {
         |                     ^~~~~
   drivers/hwtracing/coresight/coresight-cpu-debug.c:113:21: warning: unused variable 'dummy' [-Wunused-variable]
   drivers/hwtracing/coresight/coresight-cpu-debug.c: In function 'debug_unlock':
   drivers/hwtracing/coresight/coresight-cpu-debug.c:122:9: error: variable 'dummy' has initializer but incomplete type
     122 |  struct csdev_acces dummy = {
         |         ^~~~~~~~~~~
   drivers/hwtracing/coresight/coresight-cpu-debug.c:123:4: error: 'struct csdev_acces' has no member named 'base'
     123 |   .base = drvdata->base,
         |    ^~~~
   drivers/hwtracing/coresight/coresight-cpu-debug.c:123:11: warning: excess elements in struct initializer
     123 |   .base = drvdata->base,
         |           ^~~~~~~
   drivers/hwtracing/coresight/coresight-cpu-debug.c:123:11: note: (near initialization for 'dummy')
   drivers/hwtracing/coresight/coresight-cpu-debug.c:122:21: error: storage size of 'dummy' isn't known
     122 |  struct csdev_acces dummy = {
         |                     ^~~~~
   drivers/hwtracing/coresight/coresight-cpu-debug.c:122:21: warning: unused variable 'dummy' [-Wunused-variable]
   In file included from include/linux/notifier.h:14,
                    from include/linux/clk.h:14,
                    from include/linux/amba/bus.h:14,
                    from drivers/hwtracing/coresight/coresight-cpu-debug.c:7:
   drivers/hwtracing/coresight/coresight-cpu-debug.c: In function 'debug_notifier_call':
>> drivers/hwtracing/coresight/coresight-cpu-debug.c:400:13: error: passing argument 1 of 'mutex_lock_nested' from incompatible pointer type [-Werror=incompatible-pointer-types]
     400 |  mutex_lock(&debug_lock);
         |             ^~~~~~~~~~~
         |             |
         |             void (*)(struct debug_drvdata *)
   include/linux/mutex.h:156:44: note: in definition of macro 'mutex_lock'
     156 | #define mutex_lock(lock) mutex_lock_nested(lock, 0)
         |                                            ^~~~
   include/linux/mutex.h:147:45: note: expected 'struct mutex *' but argument is of type 'void (*)(struct debug_drvdata *)'
     147 | extern void mutex_lock_nested(struct mutex *lock, unsigned int subclass);
         |                               ~~~~~~~~~~~~~~^~~~
>> drivers/hwtracing/coresight/coresight-cpu-debug.c:420:15: error: passing argument 1 of 'mutex_unlock' from incompatible pointer type [-Werror=incompatible-pointer-types]
     420 |  mutex_unlock(&debug_lock);
         |               ^~~~~~~~~~~
         |               |
         |               void (*)(struct debug_drvdata *)
   In file included from include/linux/notifier.h:14,
                    from include/linux/clk.h:14,
                    from include/linux/amba/bus.h:14,
                    from drivers/hwtracing/coresight/coresight-cpu-debug.c:7:
   include/linux/mutex.h:187:40: note: expected 'struct mutex *' but argument is of type 'void (*)(struct debug_drvdata *)'
     187 | extern void mutex_unlock(struct mutex *lock);
         |                          ~~~~~~~~~~~~~~^~~~
   drivers/hwtracing/coresight/coresight-cpu-debug.c: In function 'debug_func_knob_write':
   drivers/hwtracing/coresight/coresight-cpu-debug.c:500:13: error: passing argument 1 of 'mutex_lock_nested' from incompatible pointer type [-Werror=incompatible-pointer-types]
     500 |  mutex_lock(&debug_lock);
         |             ^~~~~~~~~~~
         |             |
         |             void (*)(struct debug_drvdata *)
   include/linux/mutex.h:156:44: note: in definition of macro 'mutex_lock'
     156 | #define mutex_lock(lock) mutex_lock_nested(lock, 0)
         |                                            ^~~~
   include/linux/mutex.h:147:45: note: expected 'struct mutex *' but argument is of type 'void (*)(struct debug_drvdata *)'
     147 | extern void mutex_lock_nested(struct mutex *lock, unsigned int subclass);
         |                               ~~~~~~~~~~~~~~^~~~
   drivers/hwtracing/coresight/coresight-cpu-debug.c:520:15: error: passing argument 1 of 'mutex_unlock' from incompatible pointer type [-Werror=incompatible-pointer-types]
     520 |  mutex_unlock(&debug_lock);
         |               ^~~~~~~~~~~
         |               |
         |               void (*)(struct debug_drvdata *)
   In file included from include/linux/notifier.h:14,
                    from include/linux/clk.h:14,
                    from include/linux/amba/bus.h:14,
                    from drivers/hwtracing/coresight/coresight-cpu-debug.c:7:
   include/linux/mutex.h:187:40: note: expected 'struct mutex *' but argument is of type 'void (*)(struct debug_drvdata *)'
     187 | extern void mutex_unlock(struct mutex *lock);
         |                          ~~~~~~~~~~~~~~^~~~
   drivers/hwtracing/coresight/coresight-cpu-debug.c: In function 'debug_func_knob_read':
   drivers/hwtracing/coresight/coresight-cpu-debug.c:530:13: error: passing argument 1 of 'mutex_lock_nested' from incompatible pointer type [-Werror=incompatible-pointer-types]
     530 |  mutex_lock(&debug_lock);
         |             ^~~~~~~~~~~
         |             |
         |             void (*)(struct debug_drvdata *)
   include/linux/mutex.h:156:44: note: in definition of macro 'mutex_lock'
     156 | #define mutex_lock(lock) mutex_lock_nested(lock, 0)
         |                                            ^~~~
   include/linux/mutex.h:147:45: note: expected 'struct mutex *' but argument is of type 'void (*)(struct debug_drvdata *)'
     147 | extern void mutex_lock_nested(struct mutex *lock, unsigned int subclass);
         |                               ~~~~~~~~~~~~~~^~~~
   drivers/hwtracing/coresight/coresight-cpu-debug.c:532:15: error: passing argument 1 of 'mutex_unlock' from incompatible pointer type [-Werror=incompatible-pointer-types]
     532 |  mutex_unlock(&debug_lock);
         |               ^~~~~~~~~~~
         |               |
         |               void (*)(struct debug_drvdata *)
   In file included from include/linux/notifier.h:14,
                    from include/linux/clk.h:14,
                    from include/linux/amba/bus.h:14,
                    from drivers/hwtracing/coresight/coresight-cpu-debug.c:7:
   include/linux/mutex.h:187:40: note: expected 'struct mutex *' but argument is of type 'void (*)(struct debug_drvdata *)'
     187 | extern void mutex_unlock(struct mutex *lock);
         |                          ~~~~~~~~~~~~~~^~~~
   drivers/hwtracing/coresight/coresight-cpu-debug.c: In function 'debug_probe':
   drivers/hwtracing/coresight/coresight-cpu-debug.c:632:13: error: passing argument 1 of 'mutex_lock_nested' from incompatible pointer type [-Werror=incompatible-pointer-types]
     632 |  mutex_lock(&debug_lock);
         |             ^~~~~~~~~~~
         |             |
         |             void (*)(struct debug_drvdata *)
   include/linux/mutex.h:156:44: note: in definition of macro 'mutex_lock'
     156 | #define mutex_lock(lock) mutex_lock_nested(lock, 0)
         |                                            ^~~~
   include/linux/mutex.h:147:45: note: expected 'struct mutex *' but argument is of type 'void (*)(struct debug_drvdata *)'
     147 | extern void mutex_lock_nested(struct mutex *lock, unsigned int subclass);
         |                               ~~~~~~~~~~~~~~^~~~
   drivers/hwtracing/coresight/coresight-cpu-debug.c:636:15: error: passing argument 1 of 'mutex_unlock' from incompatible pointer type [-Werror=incompatible-pointer-types]
     636 |  mutex_unlock(&debug_lock);
         |               ^~~~~~~~~~~
         |               |
         |               void (*)(struct debug_drvdata *)
   In file included from include/linux/notifier.h:14,
                    from include/linux/clk.h:14,
                    from include/linux/amba/bus.h:14,
                    from drivers/hwtracing/coresight/coresight-cpu-debug.c:7:
   include/linux/mutex.h:187:40: note: expected 'struct mutex *' but argument is of type 'void (*)(struct debug_drvdata *)'
     187 | extern void mutex_unlock(struct mutex *lock);
         |                          ~~~~~~~~~~~~~~^~~~
   drivers/hwtracing/coresight/coresight-cpu-debug.c: In function 'debug_remove':
   drivers/hwtracing/coresight/coresight-cpu-debug.c:655:13: error: passing argument 1 of 'mutex_lock_nested' from incompatible pointer type [-Werror=incompatible-pointer-types]
     655 |  mutex_lock(&debug_lock);
         |             ^~~~~~~~~~~
         |             |
         |             void (*)(struct debug_drvdata *)
   include/linux/mutex.h:156:44: note: in definition of macro 'mutex_lock'
     156 | #define mutex_lock(lock) mutex_lock_nested(lock, 0)
         |                                            ^~~~
   include/linux/mutex.h:147:45: note: expected 'struct mutex *' but argument is of type 'void (*)(struct debug_drvdata *)'
     147 | extern void mutex_lock_nested(struct mutex *lock, unsigned int subclass);
         |                               ~~~~~~~~~~~~~~^~~~
   drivers/hwtracing/coresight/coresight-cpu-debug.c:659:15: error: passing argument 1 of 'mutex_unlock' from incompatible pointer type [-Werror=incompatible-pointer-types]
     659 |  mutex_unlock(&debug_lock);
         |               ^~~~~~~~~~~
         |               |
         |               void (*)(struct debug_drvdata *)

vim +/debug_lock +111 drivers/hwtracing/coresight/coresight-cpu-debug.c

   110	
 > 111	static inline void debug_lock(struct debug_drvdata *drvdata)
   112	{
 > 113		struct csdev_acces dummy = {
 > 114			.base	= drvdata->base,
   115		};
   116	
   117		CS_LOCK(&dummy);
   118	}
   119	

---
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: 73972 bytes --]

  reply	other threads:[~2020-07-27  6:04 UTC|newest]

Thread overview: 75+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-22 17:20 [RFC PATCH 00/14] coresight: Support for ETMv4.4 system instructions Suzuki K Poulose
2020-07-22 17:20 ` Suzuki K Poulose
2020-07-22 17:20 ` [RFC PATCH 01/14] coresight: etm4x: Skip save/restore before device registration Suzuki K Poulose
2020-07-22 17:20   ` Suzuki K Poulose
2020-07-29 18:01   ` Mathieu Poirier
2020-07-29 18:01     ` Mathieu Poirier
2020-07-30 14:45     ` Suzuki K Poulose
2020-07-30 14:45       ` Suzuki K Poulose
2020-07-22 17:20 ` [RFC PATCH 02/14] coresight: Introduce device access abstraction Suzuki K Poulose
2020-07-22 17:20   ` Suzuki K Poulose
2020-07-24  4:40   ` kernel test robot
2020-07-29 19:56   ` Mathieu Poirier
2020-07-29 19:56     ` Mathieu Poirier
2020-07-30 14:58     ` Suzuki K Poulose
2020-07-30 14:58       ` Suzuki K Poulose
2020-07-29 20:56   ` kernel test robot
2020-07-22 17:20 ` [RFC PATCH 03/14] coresight: tpiu: Use coresight " Suzuki K Poulose
2020-07-22 17:20   ` Suzuki K Poulose
2020-07-29 21:01   ` Mathieu Poirier
2020-07-29 21:01     ` Mathieu Poirier
2020-07-31 11:36     ` Suzuki K Poulose
2020-07-31 11:36       ` Suzuki K Poulose
2020-07-22 17:20 ` [RFC PATCH 04/14] coresight: etm4x: Free up argument of etm4_init_arch_data Suzuki K Poulose
2020-07-22 17:20   ` Suzuki K Poulose
2020-07-30 17:31   ` Mathieu Poirier
2020-07-30 17:31     ` Mathieu Poirier
2020-07-31  9:39     ` Suzuki K Poulose
2020-07-31  9:39       ` Suzuki K Poulose
2020-07-22 17:20 ` [RFC PATCH 05/14] coresight: Convert coresight_timeout to use access abstraction Suzuki K Poulose
2020-07-22 17:20   ` Suzuki K Poulose
2020-07-30 18:00   ` Mathieu Poirier
2020-07-30 18:00     ` Mathieu Poirier
2020-07-22 17:20 ` [RFC PATCH 06/14] coresight: Convert claim and lock operations to use access wrappers Suzuki K Poulose
2020-07-22 17:20   ` Suzuki K Poulose
2020-07-27  6:04   ` kernel test robot [this message]
2020-07-27 17:56   ` kernel test robot
2020-07-28  9:47     ` Suzuki K Poulose
2020-07-30 19:54   ` Mathieu Poirier
2020-07-30 19:54     ` Mathieu Poirier
2020-07-31  9:46     ` Suzuki K Poulose
2020-07-31  9:46       ` Suzuki K Poulose
2020-07-22 17:20 ` [RFC PATCH 07/14] coresight: etm4x: Always read the registers on the host CPU Suzuki K Poulose
2020-07-22 17:20   ` Suzuki K Poulose
2020-07-30 19:56   ` Mathieu Poirier
2020-07-30 19:56     ` Mathieu Poirier
2020-07-22 17:20 ` [RFC PATCH 08/14] coresight: etm4x: Convert all register accesses Suzuki K Poulose
2020-07-22 17:20   ` Suzuki K Poulose
2020-07-30 20:20   ` Mathieu Poirier
2020-07-30 20:20     ` Mathieu Poirier
2020-07-31  9:49     ` Suzuki K Poulose
2020-07-31  9:49       ` Suzuki K Poulose
2020-07-22 17:20 ` [RFC PATCH 09/14] coresight: etm4x: Add sysreg access helpers Suzuki K Poulose
2020-07-22 17:20   ` Suzuki K Poulose
2020-07-30 21:41   ` Mathieu Poirier
2020-07-30 21:41     ` Mathieu Poirier
2020-07-31  9:51     ` Suzuki K Poulose
2020-07-31  9:51       ` Suzuki K Poulose
2020-07-22 17:20 ` [RFC PATCH 10/14] coresight: etm4x: Define DEVARCH register fields Suzuki K Poulose
2020-07-22 17:20   ` Suzuki K Poulose
2020-07-22 17:20 ` [RFC PATCH 11/14] coresight: etm4x: Detect system register access support Suzuki K Poulose
2020-07-22 17:20   ` Suzuki K Poulose
2020-07-22 17:20 ` [RFC PATCH 12/14] coresight: etm4x: Refactor probing routine Suzuki K Poulose
2020-07-22 17:20   ` Suzuki K Poulose
2020-07-22 17:20 ` [RFC PATCH 13/14] coresight: etm4x: Add support for sysreg only devices Suzuki K Poulose
2020-07-22 17:20   ` Suzuki K Poulose
2020-07-22 17:20 ` [RFC PATCH 14/14] dts: bindings: coresight: ETMv4.4 system register access only units Suzuki K Poulose
2020-07-22 17:20   ` Suzuki K Poulose
2020-07-23 17:27   ` Rob Herring
2020-07-23 17:27     ` Rob Herring
2020-07-29 17:20   ` Mathieu Poirier
2020-07-29 17:20     ` Mathieu Poirier
2020-07-30 16:38     ` Suzuki K Poulose
2020-07-30 16:38       ` Suzuki K Poulose
2020-08-10 20:14       ` Mathieu Poirier
2020-08-10 20:14         ` Mathieu Poirier

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=202007271309.tMtffvgN%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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.