Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1345421 > unrolled thread
| Started by | kbuild test robot <fengguang.wu@intel.com> |
|---|---|
| First post | 2016-02-29 00:40 +0100 |
| Last post | 2016-03-01 07:40 +0100 |
| Articles | 5 — 4 participants |
Back to article view | Back to linux.kernel
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
| From | kbuild test robot <fengguang.wu@intel.com> |
|---|---|
| Date | 2016-02-29 00:40 +0100 |
| Subject | include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type |
| Message-ID | <r7j6s-1ED-49@gated-at.bofh.it> |
[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
[toc] | [next] | [standalone]
| From | Andrew Morton <akpm@linux-foundation.org> |
|---|---|
| Date | 2016-02-29 21:50 +0100 |
| Message-ID | <r7CVs-7Vn-21@gated-at.bofh.it> |
| In reply to | #1345421 |
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
_
[toc] | [prev] | [next] | [standalone]
| From | Josh Triplett <josh@joshtriplett.org> |
|---|---|
| Date | 2016-02-29 22:30 +0100 |
| Message-ID | <r7Dya-8nS-21@gated-at.bofh.it> |
| In reply to | #1346156 |
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 > _ >
[toc] | [prev] | [next] | [standalone]
| From | kbuild test robot <lkp@intel.com> |
|---|---|
| Date | 2016-03-01 07:30 +0100 |
| Subject | Re: mn10300, c6x: CONFIG_GENERIC_BUG must depend on CONFIG_BUG |
| Message-ID | <r7LYJ-5pm-1@gated-at.bofh.it> |
| In reply to | #1346156 |
[Multipart message — attachments visible in raw view] — view raw
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
[toc] | [prev] | [next] | [standalone]
| From | Andrew Morton <akpm@linux-foundation.org> |
|---|---|
| Date | 2016-03-01 07:40 +0100 |
| Subject | Re: mn10300, c6x: CONFIG_GENERIC_BUG must depend on CONFIG_BUG |
| Message-ID | <r7M8q-5st-11@gated-at.bofh.it> |
| In reply to | #1346389 |
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
_
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web