[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 11 Nov 2017 20:08:47 +0800
From: kbuild test robot <lkp@...el.com>
To: Dave Taht <dave.taht@...il.com>
Cc: kbuild-all@...org, netdev@...r.kernel.org,
stephen@...workplumber.org, Dave Taht <dave.taht@...il.com>
Subject: Re: [PATCH v2 net-next 1/3] netem: convert to
qdisc_watchdog_schedule_ns
Hi Dave,
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/Dave-Taht/netem-convert-to-qdisc_watchdog_schedule_ns/20171111-184934
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.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
make.cross ARCH=xtensa
All warnings (new ones prefixed by >>):
In file included from ./arch/xtensa/include/generated/asm/div64.h:1:0,
from include/linux/kernel.h:173,
from include/asm-generic/bug.h:16,
from ./arch/xtensa/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from net/sched/sch_netem.c:16:
net/sched/sch_netem.c: In function 'packet_len_2_sched_time':
include/asm-generic/div64.h:208:28: warning: comparison of distinct pointer types lacks a cast
(void)(((typeof((n)) *)0) == ((uint64_t *)0)); \
^
>> net/sched/sch_netem.c:349:2: note: in expansion of macro 'do_div'
do_div(offset, q->rate);
^
vim +/do_div +349 net/sched/sch_netem.c
334
335 static s64 packet_len_2_sched_time(unsigned int len,
336 struct netem_sched_data *q)
337 {
338 s64 offset;
339 len += q->packet_overhead;
340
341 if (q->cell_size) {
342 u32 cells = reciprocal_divide(len, q->cell_size_reciprocal);
343
344 if (len > cells * q->cell_size) /* extra cell needed for remainder */
345 cells++;
346 len = cells * (q->cell_size + q->cell_overhead);
347 }
348 offset = (s64)len * NSEC_PER_SEC;
> 349 do_div(offset, q->rate);
350 return offset;
351 }
352
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (51688 bytes)
Powered by blists - more mailing lists