Netdev Archive on lore.kernel.org
help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Hao Chen <chenhaoa@uniontech.com>, netdev@vger.kernel.org
Cc: kbuild-all@lists.01.org, Hao Chen <chenhaoa@uniontech.com>
Subject: Re: [net-next,v8] net: stmmac: optimize check in ops '.begin'
Date: Tue, 3 Aug 2021 18:33:38 +0800 [thread overview]
Message-ID: <202108031828.4t0Bgaf7-lkp@intel.com> (raw)
In-Reply-To: <20210803023836.6244-1-chenhaoa@uniontech.com>
[-- Attachment #1: Type: text/plain, Size: 3768 bytes --]
Hi Hao,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on ipvs/master]
[also build test ERROR on linus/master v5.14-rc4 next-20210802]
[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/Hao-Chen/net-stmmac-optimize-check-in-ops-begin/20210803-104151
base: https://git.kernel.org/pub/scm/linux/kernel/git/horms/ipvs.git master
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 10.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
# https://github.com/0day-ci/linux/commit/a618eda31260a301aadf7987885767f905c5320a
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Hao-Chen/net-stmmac-optimize-check-in-ops-begin/20210803-104151
git checkout a618eda31260a301aadf7987885767f905c5320a
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash drivers/net/ethernet/stmicro/stmmac/
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/net/ethernet/stmicro/stmmac/stmmac_ethtool.c: In function 'stmmac_ethtool_begin':
>> drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c:416:38: error: incompatible type for argument 1 of 'pm_runtime_resume_and_get'
416 | return pm_runtime_resume_and_get(dev->dev);
| ~~~^~~~~
| |
| struct device
In file included from drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c:17:
include/linux/pm_runtime.h:400:60: note: expected 'struct device *' but argument is of type 'struct device'
400 | static inline int pm_runtime_resume_and_get(struct device *dev)
| ~~~~~~~~~~~~~~~^~~
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c: In function 'stmmac_ethtool_complete':
>> drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c:421:20: error: incompatible type for argument 1 of 'pm_runtime_put'
421 | pm_runtime_put(dev->dev);
| ~~~^~~~~
| |
| struct device
In file included from drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c:17:
include/linux/pm_runtime.h:420:49: note: expected 'struct device *' but argument is of type 'struct device'
420 | static inline int pm_runtime_put(struct device *dev)
| ~~~~~~~~~~~~~~~^~~
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c: In function 'stmmac_ethtool_begin':
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c:417:1: error: control reaches end of non-void function [-Werror=return-type]
417 | }
| ^
cc1: some warnings being treated as errors
vim +/pm_runtime_resume_and_get +416 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
413
414 static int stmmac_ethtool_begin(struct net_device *dev)
415 {
> 416 return pm_runtime_resume_and_get(dev->dev);
417 }
418
419 static void stmmac_ethtool_complete(struct net_device *dev)
420 {
> 421 pm_runtime_put(dev->dev);
422 }
423
---
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: 60677 bytes --]
next prev parent reply other threads:[~2021-08-03 10:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-03 2:38 Hao Chen
2021-08-03 6:04 ` Heiner Kallweit
2021-08-03 9:01 ` kernel test robot
2021-08-03 10:33 ` kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-08-03 2:37 Hao Chen
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=202108031828.4t0Bgaf7-lkp@intel.com \
--to=lkp@intel.com \
--cc=chenhaoa@uniontech.com \
--cc=kbuild-all@lists.01.org \
--cc=netdev@vger.kernel.org \
--subject='Re: [net-next,v8] net: stmmac: optimize check in ops '\''.begin'\''' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).