netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Tal Gilboa <talgi@mellanox.com>
Cc: kbuild-all@01.org, "David S. Miller" <davem@davemloft.net>,
	netdev@vger.kernel.org, Tariq Toukan <tariqt@mellanox.com>,
	Tal Gilboa <talgi@mellanox.com>,
	Saeed Mahameed <saeedm@mellanox.com>
Subject: Re: [PATCH net-next] net/broadcom: Fixup broken build due to function name change
Date: Sun, 1 Apr 2018 16:57:00 +0800	[thread overview]
Message-ID: <201804011616.6pSoijVN%fengguang.wu@intel.com> (raw)
In-Reply-To: <1522565293-12068-1-git-send-email-talgi@mellanox.com>

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

Hi Tal,

I love your patch! Yet something to improve:

[auto build test ERROR on net-next/master]

url:    https://github.com/0day-ci/linux/commits/Tal-Gilboa/net-broadcom-Fixup-broken-build-due-to-function-name-change/20180401-145037
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 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
        make.cross ARCH=xtensa 

All errors (new ones prefixed by >>):

   drivers/net/ethernet/broadcom/genet/bcmgenet.c: In function 'bcmgenet_set_ring_rx_coalesce':
>> drivers/net/ethernet/broadcom/genet/bcmgenet.c:655:11: error: implicit declaration of function 'net_dim_get_def_rx_moderation'; did you mean 'net_dim_get_def_profile'? [-Werror=implicit-function-declaration]
      moder = net_dim_get_def_rx_moderation(ring->dim.dim.mode);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              net_dim_get_def_profile
>> drivers/net/ethernet/broadcom/genet/bcmgenet.c:655:9: error: incompatible types when assigning to type 'struct net_dim_cq_moder' from type 'int'
      moder = net_dim_get_def_rx_moderation(ring->dim.dim.mode);
            ^
   drivers/net/ethernet/broadcom/genet/bcmgenet.c: In function 'bcmgenet_init_rx_coalesce':
   drivers/net/ethernet/broadcom/genet/bcmgenet.c:2104:9: error: incompatible types when assigning to type 'struct net_dim_cq_moder' from type 'int'
      moder = net_dim_get_def_rx_moderation(dim->dim.mode);
            ^
   cc1: some warnings being treated as errors

vim +655 drivers/net/ethernet/broadcom/genet/bcmgenet.c

   642	
   643	static void bcmgenet_set_ring_rx_coalesce(struct bcmgenet_rx_ring *ring,
   644						  struct ethtool_coalesce *ec)
   645	{
   646		struct net_dim_cq_moder moder;
   647		u32 usecs, pkts;
   648	
   649		ring->rx_coalesce_usecs = ec->rx_coalesce_usecs;
   650		ring->rx_max_coalesced_frames = ec->rx_max_coalesced_frames;
   651		usecs = ring->rx_coalesce_usecs;
   652		pkts = ring->rx_max_coalesced_frames;
   653	
   654		if (ec->use_adaptive_rx_coalesce && !ring->dim.use_dim) {
 > 655			moder = net_dim_get_def_rx_moderation(ring->dim.dim.mode);
   656			usecs = moder.usec;
   657			pkts = moder.pkts;
   658		}
   659	
   660		ring->dim.use_dim = ec->use_adaptive_rx_coalesce;
   661		bcmgenet_set_rx_coalesce(ring, usecs, pkts);
   662	}
   663	

---
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: 53225 bytes --]

  parent reply	other threads:[~2018-04-01  8:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-01  6:48 [PATCH net-next] net/broadcom: Fixup broken build due to function name change Tal Gilboa
2018-04-01  7:42 ` kbuild test robot
2018-04-01  8:57 ` kbuild test robot [this message]
2018-04-01 16:33 ` Florian Fainelli
2018-04-01 20:29   ` Tal Gilboa

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=201804011616.6pSoijVN%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=davem@davemloft.net \
    --cc=kbuild-all@01.org \
    --cc=netdev@vger.kernel.org \
    --cc=saeedm@mellanox.com \
    --cc=talgi@mellanox.com \
    --cc=tariqt@mellanox.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).