From: kbuild test robot <lkp@intel.com>
To: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
Cc: kbuild-all@01.org, netdev@vger.kernel.org,
Jamal Hadi Salim <jhs@mojatatu.com>,
Cong Wang <xiyou.wangcong@gmail.com>,
Jiri Pirko <jiri@resnulli.us>,
"David S . Miller" <davem@davemloft.net>,
Vinicius Costa Gomes <vinicius.gomes@intel.com>,
f.fainelli@gmail.com, vedang.patel@intel.com,
andre.guedes@intel.com
Subject: Re: [PATCH net-next V4 2/2] net/sched: cbs: fix port_rate miscalculation
Date: Fri, 29 Mar 2019 05:31:38 +0800 [thread overview]
Message-ID: <201903290515.WXCfS3GD%lkp@intel.com> (raw)
In-Reply-To: <20190327235948.26909-3-leandro.maciel.dorileo@intel.com>
[-- Attachment #1: Type: text/plain, Size: 2608 bytes --]
Hi Leandro,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on net-next/master]
url: https://github.com/0day-ci/linux/commits/Leandro-Dorileo/net-sched-taprio-cbs-Fix-using-invalid-link-speed/20190329-043825
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
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
GCC_VERSION=7.2.0 make.cross ARCH=alpha
All warnings (new ones prefixed by >>):
In file included from include/linux/printk.h:330:0,
from include/linux/kernel.h:15,
from include/linux/list.h:9,
from include/linux/module.h:9,
from net/sched/sch_cbs.c:58:
net/sched/sch_cbs.c: In function 'cbs_set_port_rate':
>> net/sched/sch_cbs.c:318:18: warning: format '%lld' expects argument of type 'long long int', but argument 5 has type 'long int' [-Wformat=]
netdev_dbg(dev, "cbs: set %s's port_rate to: %lld, linkspeed: %d\n",
^
include/linux/dynamic_debug.h:118:15: note: in definition of macro '__dynamic_func_call'
func(&id, ##__VA_ARGS__); \
^~~~~~~~~~~
include/linux/dynamic_debug.h:154:2: note: in expansion of macro '_dynamic_func_call'
_dynamic_func_call(fmt, __dynamic_netdev_dbg, \
^~~~~~~~~~~~~~~~~~
include/linux/netdevice.h:4744:2: note: in expansion of macro 'dynamic_netdev_dbg'
dynamic_netdev_dbg(__dev, format, ##args); \
^~~~~~~~~~~~~~~~~~
>> net/sched/sch_cbs.c:318:2: note: in expansion of macro 'netdev_dbg'
netdev_dbg(dev, "cbs: set %s's port_rate to: %lld, linkspeed: %d\n",
^~~~~~~~~~
vim +318 net/sched/sch_cbs.c
307
308 static void cbs_set_port_rate(struct net_device *dev, struct cbs_sched_data *q)
309 {
310 struct ethtool_link_ksettings ecmd;
311 int port_rate = -1;
312
313 if (!__ethtool_get_link_ksettings(dev, &ecmd) &&
314 ecmd.base.speed != SPEED_UNKNOWN)
315 port_rate = ecmd.base.speed * 1000 * BYTES_PER_KBIT;
316
317 atomic64_set(&q->port_rate, port_rate);
> 318 netdev_dbg(dev, "cbs: set %s's port_rate to: %lld, linkspeed: %d\n",
319 dev->name, atomic64_read(&q->port_rate), ecmd.base.speed);
320 }
321
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 55994 bytes --]
prev parent reply other threads:[~2019-03-28 21:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-27 23:59 [PATCH net-next V4 0/2] net/sched: taprio: cbs: Fix using invalid link speed Leandro Dorileo
2019-03-27 23:59 ` [PATCH net-next V4 1/2] net/sched: taprio: fix picos_per_byte miscalculation Leandro Dorileo
2019-03-28 1:54 ` Florian Fainelli
2019-03-28 21:34 ` kbuild test robot
2019-03-29 2:13 ` kbuild test robot
2019-03-27 23:59 ` [PATCH net-next V4 2/2] net/sched: cbs: fix port_rate miscalculation Leandro Dorileo
2019-03-28 21:31 ` kbuild 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=201903290515.WXCfS3GD%lkp@intel.com \
--to=lkp@intel.com \
--cc=andre.guedes@intel.com \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=kbuild-all@01.org \
--cc=leandro.maciel.dorileo@intel.com \
--cc=netdev@vger.kernel.org \
--cc=vedang.patel@intel.com \
--cc=vinicius.gomes@intel.com \
--cc=xiyou.wangcong@gmail.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;
as well as URLs for NNTP newsgroup(s).