diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-08-04 22:05:33 +0000 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-08-13 13:46:54 +0000 |
commit | 9867493710ffe95a60331713a930cf2e4577bf16 (patch) | |
tree | 491cc0d87bd3df735f991be1dc54683c7253c9cd /net | |
parent | 0d7614f09c1ebdbaa1599a5aba7593f147bf96ee (diff) |
warnings in net/core/pktgen.c
Without this patch, building netx_defconfig results in:
/home/arnd/linux-arm/net/core/pktgen.c: In function 'pktgen_if_show':
/home/arnd/linux-arm/net/core/pktgen.c:682:2775: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
/home/arnd/linux-arm/net/core/pktgen.c:682:3153: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
/home/arnd/linux-arm/net/core/pktgen.c:682:2775: error: 'asm' operand has impossible constraints
/home/arnd/linux-arm/net/core/pktgen.c:682:3153: error: 'asm' operand has impossible constraints
make[3]: *** [net/core/pktgen.o] Error 1
make[2]: *** [net/core] Error 2
make[1]: *** [net] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [sub-make] Error 2
Generated by script, please check manually
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/pktgen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c index cce9e53528b1..2e86648033d0 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c @@ -679,7 +679,7 @@ static int pktgen_if_show(struct seq_file *seq, void *v) /* not really stopped, more like last-running-at */ stopped = pkt_dev->running ? ktime_now() : pkt_dev->stopped_at; idle = pkt_dev->idle_acc; - do_div(idle, NSEC_PER_USEC); + __do_div_asm(idle, NSEC_PER_USEC); seq_printf(seq, "Current:\n pkts-sofar: %llu errors: %llu\n", |