mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Julia Lawall <Julia.Lawall@lip6.fr>
Cc: kbuild-all@01.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	kernel-janitors@vger.kernel.org, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] USB: constify usb_mon_operations structure
Date: Sat, 28 Nov 2015 22:59:23 +0800	[thread overview]
Message-ID: <201511282228.qKP8IROs%fengguang.wu@intel.com> (raw)
In-Reply-To: <1448720340-16837-1-git-send-email-Julia.Lawall@lip6.fr>

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

Hi Julia,

[auto build test ERROR on: v4.4-rc2]
[also build test ERROR on: next-20151127]

url:    https://github.com/0day-ci/linux/commits/Julia-Lawall/USB-constify-usb_mon_operations-structure/20151128-223726
config: xtensa-allyesconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

Note: the linux-review/Julia-Lawall/USB-constify-usb_mon_operations-structure/20151128-223726 HEAD 97f842222711238f9fbca0d4cf79fcec2f31ed33 builds fine.
      It only hurts bisectibility.

All error/warnings (new ones prefixed by >>):

>> drivers/usb/core/hcd.c:3003:28: error: conflicting types for 'mon_ops'
    struct usb_mon_operations *mon_ops;
                               ^
   In file included from drivers/usb/core/hcd.c:47:0:
   include/linux/usb/hcd.h:663:41: note: previous declaration of 'mon_ops' was here
    extern const struct usb_mon_operations *mon_ops;
                                            ^
>> drivers/usb/core/hcd.c:3013:5: error: conflicting types for 'usb_mon_register'
    int usb_mon_register (struct usb_mon_operations *ops)
        ^
   In file included from drivers/usb/core/hcd.c:47:0:
   include/linux/usb/hcd.h:685:5: note: previous declaration of 'usb_mon_register' was here
    int usb_mon_register(const struct usb_mon_operations *ops);
        ^
   In file included from include/linux/linkage.h:6:0,
                    from include/linux/kernel.h:6,
                    from include/linux/list.h:8,
                    from include/linux/module.h:9,
                    from drivers/usb/core/hcd.c:26:
   drivers/usb/core/hcd.c:3023:20: error: conflicting types for 'usb_mon_register'
    EXPORT_SYMBOL_GPL (usb_mon_register);
                       ^
   include/linux/export.h:57:21: note: in definition of macro '__EXPORT_SYMBOL'
     extern typeof(sym) sym;     \
                        ^
>> drivers/usb/core/hcd.c:3023:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
    EXPORT_SYMBOL_GPL (usb_mon_register);
    ^
   In file included from drivers/usb/core/hcd.c:47:0:
   include/linux/usb/hcd.h:685:5: note: previous declaration of 'usb_mon_register' was here
    int usb_mon_register(const struct usb_mon_operations *ops);
        ^

vim +/mon_ops +3003 drivers/usb/core/hcd.c

782e70c6 Greg Kroah-Hartman 2008-01-25  2997  EXPORT_SYMBOL_GPL(usb_hcd_platform_shutdown);
64a21d02 Aleksey Gorelov    2006-08-08  2998  
^1da177e Linus Torvalds     2005-04-16  2999  /*-------------------------------------------------------------------------*/
^1da177e Linus Torvalds     2005-04-16  3000  
f150fa1a Pete Zaitcev       2008-11-13  3001  #if defined(CONFIG_USB_MON) || defined(CONFIG_USB_MON_MODULE)
^1da177e Linus Torvalds     2005-04-16  3002  
^1da177e Linus Torvalds     2005-04-16 @3003  struct usb_mon_operations *mon_ops;
^1da177e Linus Torvalds     2005-04-16  3004  
^1da177e Linus Torvalds     2005-04-16  3005  /*
^1da177e Linus Torvalds     2005-04-16  3006   * The registration is unlocked.
^1da177e Linus Torvalds     2005-04-16  3007   * We do it this way because we do not want to lock in hot paths.
^1da177e Linus Torvalds     2005-04-16  3008   *
^1da177e Linus Torvalds     2005-04-16  3009   * Notice that the code is minimally error-proof. Because usbmon needs
^1da177e Linus Torvalds     2005-04-16  3010   * symbols from usbcore, usbcore gets referenced and cannot be unloaded first.
^1da177e Linus Torvalds     2005-04-16  3011   */
^1da177e Linus Torvalds     2005-04-16  3012  
^1da177e Linus Torvalds     2005-04-16 @3013  int usb_mon_register (struct usb_mon_operations *ops)
^1da177e Linus Torvalds     2005-04-16  3014  {
^1da177e Linus Torvalds     2005-04-16  3015  
^1da177e Linus Torvalds     2005-04-16  3016  	if (mon_ops)
^1da177e Linus Torvalds     2005-04-16  3017  		return -EBUSY;
^1da177e Linus Torvalds     2005-04-16  3018  
^1da177e Linus Torvalds     2005-04-16  3019  	mon_ops = ops;
^1da177e Linus Torvalds     2005-04-16  3020  	mb();
^1da177e Linus Torvalds     2005-04-16  3021  	return 0;
^1da177e Linus Torvalds     2005-04-16  3022  }
^1da177e Linus Torvalds     2005-04-16 @3023  EXPORT_SYMBOL_GPL (usb_mon_register);
^1da177e Linus Torvalds     2005-04-16  3024  
^1da177e Linus Torvalds     2005-04-16  3025  void usb_mon_deregister (void)
^1da177e Linus Torvalds     2005-04-16  3026  {

:::::: The code at line 3003 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 43263 bytes --]

  reply	other threads:[~2015-11-28 15:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-28 14:18 Julia Lawall
2015-11-28 14:59 ` kbuild test robot [this message]
2015-11-28 15:07 ` [PATCH v2] " Julia Lawall

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=201511282228.qKP8IROs%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=Julia.Lawall@lip6.fr \
    --cc=gregkh@linuxfoundation.org \
    --cc=kbuild-all@01.org \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®