linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Corentin Labbe <clabbe.montjoie@gmail.com>
Cc: kbuild-all@01.org, mpm@selenic.com, herbert@gondor.apana.org.au,
	arnd@arndb.de, gregkh@linuxfoundation.org,
	linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org,
	Corentin Labbe <clabbe.montjoie@gmail.com>
Subject: Re: [PATCH 7/7] hwrng: core: Remove two unused include
Date: Sat, 10 Dec 2016 13:31:01 +0800	[thread overview]
Message-ID: <201612101338.7nRbfb4U%fengguang.wu@intel.com> (raw)
In-Reply-To: <1481293299-21697-7-git-send-email-clabbe.montjoie@gmail.com>

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

Hi Corentin,

[auto build test ERROR on char-misc/char-misc-testing]
[also build test ERROR on v4.9-rc8 next-20161209]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Corentin-Labbe/hwrng-core-do-not-use-multiple-blank-lines/20161210-072632
config: i386-randconfig-i0-201649 (attached as .config)
compiler: gcc-4.8 (Debian 4.8.4-1) 4.8.4
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/char/hw_random/core.c: In function 'rng_dev_open':
>> drivers/char/hw_random/core.c:169:11: error: dereferencing pointer to incomplete type
     if ((filp->f_mode & FMODE_READ) == 0)
              ^
   drivers/char/hw_random/core.c:169:22: error: 'FMODE_READ' undeclared (first use in this function)
     if ((filp->f_mode & FMODE_READ) == 0)
                         ^
   drivers/char/hw_random/core.c:169:22: note: each undeclared identifier is reported only once for each function it appears in
   drivers/char/hw_random/core.c:171:10: error: dereferencing pointer to incomplete type
     if (filp->f_mode & FMODE_WRITE)
             ^
   drivers/char/hw_random/core.c:171:21: error: 'FMODE_WRITE' undeclared (first use in this function)
     if (filp->f_mode & FMODE_WRITE)
                        ^
   drivers/char/hw_random/core.c: In function 'rng_dev_read':
   drivers/char/hw_random/core.c:221:11: error: dereferencing pointer to incomplete type
        !(filp->f_flags & O_NONBLOCK));
              ^
   drivers/char/hw_random/core.c:221:23: error: 'O_NONBLOCK' undeclared (first use in this function)
        !(filp->f_flags & O_NONBLOCK));
                          ^
   drivers/char/hw_random/core.c:230:12: error: dereferencing pointer to incomplete type
       if (filp->f_flags & O_NONBLOCK) {
               ^
   drivers/char/hw_random/core.c: At top level:
   drivers/char/hw_random/core.c:272:21: error: variable 'rng_chrdev_ops' has initializer but incomplete type
    static const struct file_operations rng_chrdev_ops = {
                        ^
   drivers/char/hw_random/core.c:273:2: error: unknown field 'owner' specified in initializer
     .owner  = THIS_MODULE,
     ^
   In file included from include/linux/linkage.h:6:0,
                    from include/linux/kernel.h:6,
                    from include/linux/delay.h:10,
                    from drivers/char/hw_random/core.c:13:
   include/linux/export.h:37:30: warning: excess elements in struct initializer [enabled by default]
    #define THIS_MODULE ((struct module *)0)
                                 ^
   drivers/char/hw_random/core.c:273:12: note: in expansion of macro 'THIS_MODULE'
     .owner  = THIS_MODULE,
               ^
   include/linux/export.h:37:30: warning: (near initialization for 'rng_chrdev_ops') [enabled by default]
    #define THIS_MODULE ((struct module *)0)
                                 ^
   drivers/char/hw_random/core.c:273:12: note: in expansion of macro 'THIS_MODULE'
     .owner  = THIS_MODULE,
               ^
   drivers/char/hw_random/core.c:274:2: error: unknown field 'open' specified in initializer
     .open  = rng_dev_open,
     ^
   drivers/char/hw_random/core.c:274:2: warning: excess elements in struct initializer [enabled by default]
   drivers/char/hw_random/core.c:274:2: warning: (near initialization for 'rng_chrdev_ops') [enabled by default]
   drivers/char/hw_random/core.c:275:2: error: unknown field 'read' specified in initializer
     .read  = rng_dev_read,
     ^
   drivers/char/hw_random/core.c:275:2: warning: excess elements in struct initializer [enabled by default]
   drivers/char/hw_random/core.c:275:2: warning: (near initialization for 'rng_chrdev_ops') [enabled by default]
   drivers/char/hw_random/core.c:276:2: error: unknown field 'llseek' specified in initializer
     .llseek  = noop_llseek,
     ^
   drivers/char/hw_random/core.c:276:13: error: 'noop_llseek' undeclared here (not in a function)
     .llseek  = noop_llseek,
                ^
   drivers/char/hw_random/core.c:276:2: warning: excess elements in struct initializer [enabled by default]
     .llseek  = noop_llseek,
     ^
   drivers/char/hw_random/core.c:276:2: warning: (near initialization for 'rng_chrdev_ops') [enabled by default]

vim +169 drivers/char/hw_random/core.c

844dd05f Michael Buesch 2006-06-26  163  	return 0;
844dd05f Michael Buesch 2006-06-26  164  }
844dd05f Michael Buesch 2006-06-26  165  
844dd05f Michael Buesch 2006-06-26  166  static int rng_dev_open(struct inode *inode, struct file *filp)
844dd05f Michael Buesch 2006-06-26  167  {
844dd05f Michael Buesch 2006-06-26  168  	/* enforce read-only access to this chrdev */
844dd05f Michael Buesch 2006-06-26 @169  	if ((filp->f_mode & FMODE_READ) == 0)
844dd05f Michael Buesch 2006-06-26  170  		return -EINVAL;
844dd05f Michael Buesch 2006-06-26  171  	if (filp->f_mode & FMODE_WRITE)
844dd05f Michael Buesch 2006-06-26  172  		return -EINVAL;

:::::: The code at line 169 was first introduced by commit
:::::: 844dd05fec172d98b0dacecd9b9e9f6595204c13 [PATCH] Add new generic HW RNG core

:::::: TO: Michael Buesch <mb@bu3sch.de>
:::::: CC: Linus Torvalds <torvalds@g5.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/gzip, Size: 26603 bytes --]

      parent reply	other threads:[~2016-12-10  5:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-09 14:21 [PATCH 1/7] hwrng: core: do not use multiple blank lines Corentin Labbe
2016-12-09 14:21 ` [PATCH 2/7] hwrng: core: rewrite better comparison to NULL Corentin Labbe
2016-12-09 14:21 ` [PATCH 3/7] hwrng: core: Rewrite the header Corentin Labbe
2016-12-09 14:21 ` [PATCH 4/7] hwrng: core: Replace asm/uaccess.h by linux/uaccess.h Corentin Labbe
2016-12-09 14:21 ` [PATCH 5/7] hwrng: core: Move hwrng miscdev minor number to include/linux/miscdevice.h Corentin Labbe
2016-12-09 14:21 ` [PATCH 6/7] hwrng: core: remove unused PFX macro Corentin Labbe
2016-12-09 14:21 ` [PATCH 7/7] hwrng: core: Remove two unused include Corentin Labbe
2016-12-09 18:24   ` Corentin Labbe
2016-12-10  1:27   ` kbuild test robot
2016-12-10  5:31   ` 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=201612101338.7nRbfb4U%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=arnd@arndb.de \
    --cc=clabbe.montjoie@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=kbuild-all@01.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mpm@selenic.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).