linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type
@ 2016-02-28 23:33 kbuild test robot
  2016-02-29 20:49 ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: kbuild test robot @ 2016-02-28 23:33 UTC (permalink / raw)
  To: Josh Triplett
  Cc: kbuild-all, linux-kernel, Andrew Morton,
	Linux Memory Management List

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

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

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type
  2016-02-28 23:33 include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type kbuild test robot
@ 2016-02-29 20:49 ` Andrew Morton
  2016-02-29 21:24   ` Josh Triplett
  2016-03-01  6:18   ` mn10300, c6x: CONFIG_GENERIC_BUG must depend on CONFIG_BUG kbuild test robot
  0 siblings, 2 replies; 5+ messages in thread
From: Andrew Morton @ 2016-02-29 20:49 UTC (permalink / raw)
  To: kbuild test robot
  Cc: Josh Triplett, kbuild-all, linux-kernel,
	Linux Memory Management List

On Mon, 29 Feb 2016 07:33:04 +0800 kbuild test robot <fengguang.wu@intel.com> wrote:

> 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 
> 

From: Andrew Morton <akpm@linux-foundation.org>
Subject: mn10300, c6x: CONFIG_GENERIC_BUG must depend on CONFIG_BUG

CONFIG_BUG=n && CONFIG_GENERIC_BUG=y make no sense and things break:

   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;

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 arch/c6x/Kconfig     |    1 +
 arch/mn10300/Kconfig |    1 +
 2 files changed, 2 insertions(+)

diff -puN arch/c6x/Kconfig~mn10300-c6x-config_generic_bug-must-depend-on-config_bug arch/c6x/Kconfig
--- a/arch/c6x/Kconfig~mn10300-c6x-config_generic_bug-must-depend-on-config_bug
+++ a/arch/c6x/Kconfig
@@ -36,6 +36,7 @@ config GENERIC_HWEIGHT
 
 config GENERIC_BUG
 	def_bool y
+	depends on BUG
 
 config C6X_BIG_KERNEL
 	bool "Build a big kernel"
diff -puN arch/mn10300/Kconfig~mn10300-c6x-config_generic_bug-must-depend-on-config_bug arch/mn10300/Kconfig
--- a/arch/mn10300/Kconfig~mn10300-c6x-config_generic_bug-must-depend-on-config_bug
+++ a/arch/mn10300/Kconfig
@@ -53,6 +53,7 @@ config GENERIC_HWEIGHT
 
 config GENERIC_BUG
 	def_bool y
+	depends on BUG
 
 config QUICKLIST
 	def_bool y
_

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type
  2016-02-29 20:49 ` Andrew Morton
@ 2016-02-29 21:24   ` Josh Triplett
  2016-03-01  6:18   ` mn10300, c6x: CONFIG_GENERIC_BUG must depend on CONFIG_BUG kbuild test robot
  1 sibling, 0 replies; 5+ messages in thread
From: Josh Triplett @ 2016-02-29 21:24 UTC (permalink / raw)
  To: Andrew Morton
  Cc: kbuild test robot, kbuild-all, linux-kernel,
	Linux Memory Management List

On Mon, Feb 29, 2016 at 12:49:37PM -0800, Andrew Morton wrote:
> On Mon, 29 Feb 2016 07:33:04 +0800 kbuild test robot <fengguang.wu@intel.com> wrote:
> 
> > 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 
> > 
> 
> From: Andrew Morton <akpm@linux-foundation.org>
> Subject: mn10300, c6x: CONFIG_GENERIC_BUG must depend on CONFIG_BUG
> 
> CONFIG_BUG=n && CONFIG_GENERIC_BUG=y make no sense and things break:
> 
>    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;
> 
> Reported-by: kbuild test robot <fengguang.wu@intel.com>
> Cc: Josh Triplett <josh@joshtriplett.org>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

This looks like the right patch; I thought it had already been
submitted.

That said, what would it take to move GENERIC_BUG and BUG into
architecture-independent configuration, including such a dependency?

>  arch/c6x/Kconfig     |    1 +
>  arch/mn10300/Kconfig |    1 +
>  2 files changed, 2 insertions(+)
> 
> diff -puN arch/c6x/Kconfig~mn10300-c6x-config_generic_bug-must-depend-on-config_bug arch/c6x/Kconfig
> --- a/arch/c6x/Kconfig~mn10300-c6x-config_generic_bug-must-depend-on-config_bug
> +++ a/arch/c6x/Kconfig
> @@ -36,6 +36,7 @@ config GENERIC_HWEIGHT
>  
>  config GENERIC_BUG
>  	def_bool y
> +	depends on BUG
>  
>  config C6X_BIG_KERNEL
>  	bool "Build a big kernel"
> diff -puN arch/mn10300/Kconfig~mn10300-c6x-config_generic_bug-must-depend-on-config_bug arch/mn10300/Kconfig
> --- a/arch/mn10300/Kconfig~mn10300-c6x-config_generic_bug-must-depend-on-config_bug
> +++ a/arch/mn10300/Kconfig
> @@ -53,6 +53,7 @@ config GENERIC_HWEIGHT
>  
>  config GENERIC_BUG
>  	def_bool y
> +	depends on BUG
>  
>  config QUICKLIST
>  	def_bool y
> _
> 

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: mn10300, c6x: CONFIG_GENERIC_BUG must depend on CONFIG_BUG
  2016-02-29 20:49 ` Andrew Morton
  2016-02-29 21:24   ` Josh Triplett
@ 2016-03-01  6:18   ` kbuild test robot
  2016-03-01  6:38     ` Andrew Morton
  1 sibling, 1 reply; 5+ messages in thread
From: kbuild test robot @ 2016-03-01  6:18 UTC (permalink / raw)
  To: Andrew Morton
  Cc: kbuild-all, kbuild test robot, Josh Triplett, linux-kernel,
	Linux Memory Management List

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

Hi Andrew,

[auto build test ERROR on v4.5-rc6]
[also build test ERROR on next-20160229]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Andrew-Morton/mn10300-c6x-CONFIG_GENERIC_BUG-must-depend-on-CONFIG_BUG/20160301-045134
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
        # save the attached .config to linux build tree
        make.cross ARCH=mn10300 

All errors (new ones prefixed by >>):

>> arch/mn10300/kernel/fpu-nofpu.c:27:36: error: unknown type name 'elf_fpregset_t'
    int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpreg)
                                       ^

vim +/elf_fpregset_t +27 arch/mn10300/kernel/fpu-nofpu.c

278d91c4 Akira Takeuchi 2010-10-27  11  #include <asm/fpu.h>
278d91c4 Akira Takeuchi 2010-10-27  12  
278d91c4 Akira Takeuchi 2010-10-27  13  /*
278d91c4 Akira Takeuchi 2010-10-27  14   * handle an FPU operational exception
278d91c4 Akira Takeuchi 2010-10-27  15   * - there's a possibility that if the FPU is asynchronous, the signal might
278d91c4 Akira Takeuchi 2010-10-27  16   *   be meant for a process other than the current one
278d91c4 Akira Takeuchi 2010-10-27  17   */
278d91c4 Akira Takeuchi 2010-10-27  18  asmlinkage
278d91c4 Akira Takeuchi 2010-10-27  19  void unexpected_fpu_exception(struct pt_regs *regs, enum exception_code code)
278d91c4 Akira Takeuchi 2010-10-27  20  {
278d91c4 Akira Takeuchi 2010-10-27  21  	panic("An FPU exception was received, but there's no FPU enabled.");
278d91c4 Akira Takeuchi 2010-10-27  22  }
278d91c4 Akira Takeuchi 2010-10-27  23  
278d91c4 Akira Takeuchi 2010-10-27  24  /*
278d91c4 Akira Takeuchi 2010-10-27  25   * fill in the FPU structure for a core dump
278d91c4 Akira Takeuchi 2010-10-27  26   */
278d91c4 Akira Takeuchi 2010-10-27 @27  int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpreg)
278d91c4 Akira Takeuchi 2010-10-27  28  {
278d91c4 Akira Takeuchi 2010-10-27  29  	return 0; /* not valid */
278d91c4 Akira Takeuchi 2010-10-27  30  }

:::::: The code at line 27 was first introduced by commit
:::::: 278d91c4609d55202c1e63d5fc5f01466cc7bbab MN10300: Make the FPU operate in non-lazy mode under SMP

:::::: TO: Akira Takeuchi <takeuchi.akr@jp.panasonic.com>
:::::: CC: David Howells <dhowells@redhat.com>

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: mn10300, c6x: CONFIG_GENERIC_BUG must depend on CONFIG_BUG
  2016-03-01  6:18   ` mn10300, c6x: CONFIG_GENERIC_BUG must depend on CONFIG_BUG kbuild test robot
@ 2016-03-01  6:38     ` Andrew Morton
  0 siblings, 0 replies; 5+ messages in thread
From: Andrew Morton @ 2016-03-01  6:38 UTC (permalink / raw)
  To: kbuild test robot
  Cc: kbuild-all, kbuild test robot, Josh Triplett, linux-kernel,
	Linux Memory Management List

On Tue, 1 Mar 2016 14:18:56 +0800 kbuild test robot <lkp@intel.com> wrote:

> [auto build test ERROR on v4.5-rc6]
> [also build test ERROR on next-20160229]
> [if your patch is applied to the wrong git tree, please drop us a note to help improving the system]
> 
> url:    https://github.com/0day-ci/linux/commits/Andrew-Morton/mn10300-c6x-CONFIG_GENERIC_BUG-must-depend-on-CONFIG_BUG/20160301-045134
> 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
>         # save the attached .config to linux build tree
>         make.cross ARCH=mn10300 
> 
> All errors (new ones prefixed by >>):
> 
> >> arch/mn10300/kernel/fpu-nofpu.c:27:36: error: unknown type name 'elf_fpregset_t'
>     int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpreg)

hm, that error isn't well correlated with that patch!

This, I suppose.  I don't have an mn10300 cross-compiler.



From: Andrew Morton <akpm@linux-foundation.org>
Subject: arch/mn10300/kernel/fpu-nofpu.c: needs asm/elf.h

 arch/mn10300/kernel/fpu-nofpu.c:27:36: error: unknown type name 'elf_fpregset_t'
    int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpreg)

Reported-by: kbuild test robot <lkp@intel.com>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 arch/mn10300/kernel/fpu-nofpu.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN arch/mn10300/kernel/fpu-nofpu.c~a arch/mn10300/kernel/fpu-nofpu.c
--- a/arch/mn10300/kernel/fpu-nofpu.c~a
+++ a/arch/mn10300/kernel/fpu-nofpu.c
@@ -9,6 +9,7 @@
  * 2 of the Licence, or (at your option) any later version.
  */
 #include <asm/fpu.h>
+#include <asm/elf.h>
 
 /*
  * handle an FPU operational exception
_

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-03-01  6:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-28 23:33 include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type kbuild test robot
2016-02-29 20:49 ` Andrew Morton
2016-02-29 21:24   ` Josh Triplett
2016-03-01  6:18   ` mn10300, c6x: CONFIG_GENERIC_BUG must depend on CONFIG_BUG kbuild test robot
2016-03-01  6:38     ` Andrew Morton

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).