netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net-next:master 1125/1148] drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_mqprio.c:310: undefined reference to `__udivdi3'
@ 2019-11-08  8:39 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-11-08  8:39 UTC (permalink / raw)
  To: Rahul Lakkireddy; +Cc: kbuild-all, netdev

[-- Attachment #1: Type: text/plain, Size: 2632 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   7b89c580fb85270d0b58d4d21ad6cd9810300b75
commit: 0e395b3cb1fb82f5d056fd5425025a77da4d4f62 [1125/1148] cxgb4: add FLOWC based QoS offload
config: i386-randconfig-f002-201944 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-14) 7.4.0
reproduce:
        git checkout 0e395b3cb1fb82f5d056fd5425025a77da4d4f62
        # save the attached .config to linux build tree
        make ARCH=i386 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   ld: drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_mqprio.o: in function `cxgb4_mqprio_alloc_tc':
>> drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_mqprio.c:310: undefined reference to `__udivdi3'
>> ld: drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_mqprio.c:311: undefined reference to `__udivdi3'

vim +310 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_mqprio.c

   285	
   286	static int cxgb4_mqprio_alloc_tc(struct net_device *dev,
   287					 struct tc_mqprio_qopt_offload *mqprio)
   288	{
   289		struct ch_sched_params p = {
   290			.type = SCHED_CLASS_TYPE_PACKET,
   291			.u.params.level = SCHED_CLASS_LEVEL_CL_RL,
   292			.u.params.mode = SCHED_CLASS_MODE_FLOW,
   293			.u.params.rateunit = SCHED_CLASS_RATEUNIT_BITS,
   294			.u.params.ratemode = SCHED_CLASS_RATEMODE_ABS,
   295			.u.params.class = SCHED_CLS_NONE,
   296			.u.params.weight = 0,
   297			.u.params.pktsize = dev->mtu,
   298		};
   299		struct cxgb4_tc_port_mqprio *tc_port_mqprio;
   300		struct port_info *pi = netdev2pinfo(dev);
   301		struct adapter *adap = netdev2adap(dev);
   302		struct sched_class *e;
   303		int ret;
   304		u8 i;
   305	
   306		tc_port_mqprio = &adap->tc_mqprio->port_mqprio[pi->port_id];
   307		p.u.params.channel = pi->tx_chan;
   308		for (i = 0; i < mqprio->qopt.num_tc; i++) {
   309			/* Convert from bytes per second to Kbps */
 > 310			p.u.params.minrate = mqprio->min_rate[i] * 8 / 1000;
 > 311			p.u.params.maxrate = mqprio->max_rate[i] * 8 / 1000;
   312	
   313			e = cxgb4_sched_class_alloc(dev, &p);
   314			if (!e) {
   315				ret = -ENOMEM;
   316				goto out_err;
   317			}
   318	
   319			tc_port_mqprio->tc_hwtc_map[i] = e->idx;
   320		}
   321	
   322		return 0;
   323	
   324	out_err:
   325		while (i--)
   326			cxgb4_sched_class_free(dev, tc_port_mqprio->tc_hwtc_map[i]);
   327	
   328		return ret;
   329	}
   330	

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 36577 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-11-08  8:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-08  8:39 [net-next:master 1125/1148] drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_mqprio.c:310: undefined reference to `__udivdi3' kbuild test robot

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).