From: kernel test robot <lkp@intel.com>
To: Andrew Lunn <andrew@lunn.ch>, robh+dt@kernel.org
Cc: kbuild-all@lists.01.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, Andrew Lunn <andrew@lunn.ch>
Subject: Re: [PATCH] of: of_match_node: Make stub an inline function to avoid W=1 warnings
Date: Fri, 28 Aug 2020 19:05:04 +0800 [thread overview]
Message-ID: <202008281850.GUXjJgbY%lkp@intel.com> (raw)
In-Reply-To: <20200828021939.2912798-1-andrew@lunn.ch>
[-- Attachment #1: Type: text/plain, Size: 2768 bytes --]
Hi Andrew,
I love your patch! Yet something to improve:
[auto build test ERROR on robh/for-next]
[also build test ERROR on linux/master linus/master v5.9-rc2 next-20200828]
[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/Andrew-Lunn/of-of_match_node-Make-stub-an-inline-function-to-avoid-W-1-warnings/20200828-102035
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: i386-randconfig-r032-20200828 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 ARCH=i386
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 >>):
drivers/mfd/max8998.c: In function 'max8998_i2c_get_driver_data':
>> drivers/mfd/max8998.c:160:25: error: 'max8998_dt_match' undeclared (first use in this function)
160 | match = of_match_node(max8998_dt_match, i2c->dev.of_node);
| ^~~~~~~~~~~~~~~~
drivers/mfd/max8998.c:160:25: note: each undeclared identifier is reported only once for each function it appears in
# https://github.com/0day-ci/linux/commit/3213d0cc82c7a4e0e85e0db3da3da279460c833b
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Andrew-Lunn/of-of_match_node-Make-stub-an-inline-function-to-avoid-W-1-warnings/20200828-102035
git checkout 3213d0cc82c7a4e0e85e0db3da3da279460c833b
vim +/max8998_dt_match +160 drivers/mfd/max8998.c
ee999fb3f17faa Tomasz Figa 2013-06-25 154
8bace2d5b4baa0 Lee Jones 2014-02-03 155 static inline unsigned long max8998_i2c_get_driver_data(struct i2c_client *i2c,
ee999fb3f17faa Tomasz Figa 2013-06-25 156 const struct i2c_device_id *id)
ee999fb3f17faa Tomasz Figa 2013-06-25 157 {
ee999fb3f17faa Tomasz Figa 2013-06-25 158 if (IS_ENABLED(CONFIG_OF) && i2c->dev.of_node) {
ee999fb3f17faa Tomasz Figa 2013-06-25 159 const struct of_device_id *match;
ee999fb3f17faa Tomasz Figa 2013-06-25 @160 match = of_match_node(max8998_dt_match, i2c->dev.of_node);
8bace2d5b4baa0 Lee Jones 2014-02-03 161 return (unsigned long)match->data;
ee999fb3f17faa Tomasz Figa 2013-06-25 162 }
ee999fb3f17faa Tomasz Figa 2013-06-25 163
8bace2d5b4baa0 Lee Jones 2014-02-03 164 return id->driver_data;
ee999fb3f17faa Tomasz Figa 2013-06-25 165 }
ee999fb3f17faa Tomasz Figa 2013-06-25 166
---
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: 28590 bytes --]
next prev parent reply other threads:[~2020-08-28 11:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-28 2:19 [PATCH] of: of_match_node: Make stub an inline function to avoid W=1 warnings Andrew Lunn
2020-08-28 10:52 ` kernel test robot
2020-08-28 11:05 ` kernel test robot [this message]
2020-08-28 13:00 ` Andrew Lunn
2020-08-28 23:09 ` Rob Herring
2020-08-30 15:23 ` Andrew Lunn
2020-08-30 20:15 ` Andy Shevchenko
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=202008281850.GUXjJgbY%lkp@intel.com \
--to=lkp@intel.com \
--cc=andrew@lunn.ch \
--cc=devicetree@vger.kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox