Netdev List
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Shannon Nelson <shannon.nelson@oracle.com>
Cc: kbuild-all@01.org, steffen.klassert@secunet.com, netdev@vger.kernel.org
Subject: Re: [PATCH ipsec-next] xfrm: check for xdo_dev_state_free
Date: Thu, 14 Dec 2017 16:51:46 +0800	[thread overview]
Message-ID: <201712141637.ycOZWf8R%fengguang.wu@intel.com> (raw)
In-Reply-To: <1513025842-12064-1-git-send-email-shannon.nelson@oracle.com>

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

Hi Shannon,

Thank you for the patch! Yet something to improve:

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

url:    https://github.com/0day-ci/linux/commits/Shannon-Nelson/xfrm-check-for-xdo_dev_state_free/20171214-150202
base:   https://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next.git master
config: score-spct6600_defconfig (attached as .config)
compiler: score-elf-gcc (GCC) 4.9.4
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=score 

All errors (new ones prefixed by >>):

   net/xfrm/xfrm_device.c: In function 'xfrm_dev_register':
>> net/xfrm/xfrm_device.c:157:24: error: dereferencing pointer to incomplete type
           dev->xfrmdev_ops->xdo_dev_state_add &&
                           ^
   net/xfrm/xfrm_device.c:158:24: error: dereferencing pointer to incomplete type
           dev->xfrmdev_ops->xdo_dev_state_delete)) {
                           ^

vim +157 net/xfrm/xfrm_device.c

   144	
   145	static int xfrm_dev_register(struct net_device *dev)
   146	{
   147		if (!(dev->features & NETIF_F_HW_ESP)) {
   148			if (dev->features & NETIF_F_HW_ESP_TX_CSUM) {
   149				netdev_err(dev, "NETIF_F_HW_ESP_TX_CSUM without NETIF_F_HW_ESP\n");
   150				return NOTIFY_BAD;
   151			} else {
   152				return NOTIFY_DONE;
   153			}
   154		}
   155	
   156		if (!(dev->xfrmdev_ops &&
 > 157		      dev->xfrmdev_ops->xdo_dev_state_add &&
   158		      dev->xfrmdev_ops->xdo_dev_state_delete)) {
   159			netdev_err(dev, "add or delete function missing from xfrmdev_ops\n");
   160			return NOTIFY_BAD;
   161		}
   162	
   163		return NOTIFY_DONE;
   164	}
   165	

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

      parent reply	other threads:[~2017-12-14  8:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-11 20:57 [PATCH ipsec-next] xfrm: check for xdo_dev_state_free Shannon Nelson
2017-12-14  6:20 ` Steffen Klassert
2017-12-14 16:28   ` Shannon Nelson
2017-12-14  7:45 ` kbuild test robot
2017-12-14  8:51 ` 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=201712141637.ycOZWf8R%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@01.org \
    --cc=netdev@vger.kernel.org \
    --cc=shannon.nelson@oracle.com \
    --cc=steffen.klassert@secunet.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