From: kernel test robot <lkp@intel.com>
To: Ojaswin Mujoo <ojaswin98@gmail.com>,
nsaenz@kernel.org, gregkh@linuxfoundation.org,
stefan.wahren@i2se.com
Cc: kbuild-all@lists.01.org, dan.carpenter@oracle.com,
phil@raspberrypi.com, linux-arm-kernel@lists.infradead.org,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] staging: vchiq: Replace global state with per device state
Date: Tue, 2 Nov 2021 00:45:38 +0800 [thread overview]
Message-ID: <202111020057.epYolqLO-lkp@intel.com> (raw)
In-Reply-To: <5b51970f601c4bf5165fc70174085a809b3c0316.1635764115.git.ojaswin98@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 4652 bytes --]
Hi Ojaswin,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on staging/staging-testing]
[also build test WARNING on next-20211101]
[cannot apply to v5.15]
[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/Ojaswin-Mujoo/vchiq-Replacing-global-structs-with-per-device/20211101-191153
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 10508ae08ed8ce8794785194ad7309f1437d43fd
config: arc-randconfig-r043-20211101 (attached as .config)
compiler: arceb-elf-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/0day-ci/linux/commit/7f81de8bb73f7a7d9d0a0898dbe0144d40e39254
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Ojaswin-Mujoo/vchiq-Replacing-global-structs-with-per-device/20211101-191153
git checkout 7f81de8bb73f7a7d9d0a0898dbe0144d40e39254
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:465:5: warning: no previous prototype for 'vchiq_platform_init' [-Wmissing-prototypes]
465 | int vchiq_platform_init(struct platform_device *pdev, struct vchiq_state *state)
| ^~~~~~~~~~~~~~~~~~~
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:593:1: warning: no previous prototype for 'vchiq_platform_get_arm_state' [-Wmissing-prototypes]
593 | vchiq_platform_get_arm_state(struct vchiq_state *state)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:33:
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c: In function 'service_callback':
>> drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h:106:33: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
106 | #define DEBUG_INITIALISE(local) int *debug_ptr = (local)->debug
| ^~~
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:1086:9: note: in expansion of macro 'DEBUG_INITIALISE'
1086 | DEBUG_INITIALISE(state->local);
| ^~~~~~~~~~~~~~~~
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c: In function 'vchiq_probe':
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:1845:37: error: passing argument 1 of 'vchiq_register_chrdev' from incompatible pointer type [-Werror=incompatible-pointer-types]
1845 | err = vchiq_register_chrdev(vchiq_dev);
| ^~~~~~~~~
| |
| struct vchiq_device *
In file included from drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:35:
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.h:142:56: note: expected 'struct device *' but argument is of type 'struct vchiq_device *'
142 | static inline int vchiq_register_chrdev(struct device *parent) { return 0; }
| ~~~~~~~~~~~~~~~^~~~~~
cc1: some warnings being treated as errors
vim +106 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h
71bad7f086419d popcornmix 2013-07-02 105
8dd56723240e43 Gaston Gonzalez 2021-10-24 @106 #define DEBUG_INITIALISE(local) int *debug_ptr = (local)->debug
71bad7f086419d popcornmix 2013-07-02 107 #define DEBUG_TRACE(d) \
35b7ebda57affc Michael Zoran 2016-10-19 108 do { debug_ptr[DEBUG_ ## d] = __LINE__; dsb(sy); } while (0)
71bad7f086419d popcornmix 2013-07-02 109 #define DEBUG_VALUE(d, v) \
35b7ebda57affc Michael Zoran 2016-10-19 110 do { debug_ptr[DEBUG_ ## d] = (v); dsb(sy); } while (0)
71bad7f086419d popcornmix 2013-07-02 111 #define DEBUG_COUNT(d) \
35b7ebda57affc Michael Zoran 2016-10-19 112 do { debug_ptr[DEBUG_ ## d]++; dsb(sy); } while (0)
71bad7f086419d popcornmix 2013-07-02 113
---
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: 34411 bytes --]
prev parent reply other threads:[~2021-11-01 16:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-01 11:09 [PATCH 0/1] vchiq: Replacing global structs with per device Ojaswin Mujoo
2021-11-01 11:09 ` [PATCH 1/1] staging: vchiq: Replace global state with per device state Ojaswin Mujoo
2021-11-01 12:19 ` Stefan Wahren
2021-11-01 17:31 ` Ojaswin Mujoo
2021-11-01 18:58 ` Stefan Wahren
2021-11-01 16:07 ` kernel test robot
2021-11-01 16:45 ` kernel test robot [this message]
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=202111020057.epYolqLO-lkp@intel.com \
--to=lkp@intel.com \
--cc=dan.carpenter@oracle.com \
--cc=gregkh@linuxfoundation.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=nsaenz@kernel.org \
--cc=ojaswin98@gmail.com \
--cc=phil@raspberrypi.com \
--cc=stefan.wahren@i2se.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox