Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1345421

include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type

From kbuild test robot <fengguang.wu@intel.com>
Newsgroups linux.kernel
Subject include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type
Date 2016-02-29 00:40 +0100
Message-ID <r7j6s-1ED-49@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi Josh,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   fc77dbd34c5c99bce46d40a2491937c3bcbd10af
commit: 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT
date:   1 year, 11 months ago
config: mn10300-allnoconfig (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
        git checkout 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a
        # save the attached .config to linux build tree
        make.cross ARCH=mn10300 

All errors (new ones prefixed by >>):

   In file included from include/linux/page-flags.h:9:0,
                    from kernel/bounds.c:9:
   include/linux/bug.h:91:47: warning: 'struct bug_entry' declared inside parameter list
    static inline int is_warning_bug(const struct bug_entry *bug)
                                                  ^
   include/linux/bug.h:91:47: warning: its scope is only this definition or declaration, which is probably not what you want
   include/linux/bug.h: In function 'is_warning_bug':
>> include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type
     return bug->flags & BUGFLAG_WARNING;
               ^
   make[2]: *** [kernel/bounds.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [sub-make] Error 2

vim +93 include/linux/bug.h

35edd910 Paul Gortmaker      2011-11-16  85  
35edd910 Paul Gortmaker      2011-11-16  86  #endif	/* __CHECKER__ */
35edd910 Paul Gortmaker      2011-11-16  87  
7664c5a1 Jeremy Fitzhardinge 2006-12-08  88  #ifdef CONFIG_GENERIC_BUG
7664c5a1 Jeremy Fitzhardinge 2006-12-08  89  #include <asm-generic/bug.h>
7664c5a1 Jeremy Fitzhardinge 2006-12-08  90  
7664c5a1 Jeremy Fitzhardinge 2006-12-08 @91  static inline int is_warning_bug(const struct bug_entry *bug)
7664c5a1 Jeremy Fitzhardinge 2006-12-08  92  {
7664c5a1 Jeremy Fitzhardinge 2006-12-08 @93  	return bug->flags & BUGFLAG_WARNING;
7664c5a1 Jeremy Fitzhardinge 2006-12-08  94  }
7664c5a1 Jeremy Fitzhardinge 2006-12-08  95  
7664c5a1 Jeremy Fitzhardinge 2006-12-08  96  const struct bug_entry *find_bug(unsigned long bugaddr);

:::::: The code at line 93 was first introduced by commit
:::::: 7664c5a1da4711bb6383117f51b94c8dc8f3f1cd [PATCH] Generic BUG implementation

:::::: TO: Jeremy Fitzhardinge <jeremy@goop.org>
:::::: CC: Linus Torvalds <torvalds@woody.osdl.org>

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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

include/linux/bug.h:93:12: error: dereferencing pointer to  incomplete type kbuild test robot <fengguang.wu@intel.com> - 2016-02-29 00:40 +0100
  Re: include/linux/bug.h:93:12: error: dereferencing pointer to  incomplete type Andrew Morton <akpm@linux-foundation.org> - 2016-02-29 21:50 +0100
    Re: include/linux/bug.h:93:12: error: dereferencing pointer to  incomplete type Josh Triplett <josh@joshtriplett.org> - 2016-02-29 22:30 +0100
    Re: mn10300, c6x: CONFIG_GENERIC_BUG must depend on CONFIG_BUG kbuild test robot <lkp@intel.com> - 2016-03-01 07:30 +0100
      Re: mn10300, c6x: CONFIG_GENERIC_BUG must depend on CONFIG_BUG Andrew Morton <akpm@linux-foundation.org> - 2016-03-01 07:40 +0100

csiph-web