From: Josh Triplett <josh@joshtriplett.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: kbuild test robot <fengguang.wu@intel.com>,
kbuild-all@01.org, linux-kernel@vger.kernel.org,
Linux Memory Management List <linux-mm@kvack.org>
Subject: Re: include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type
Date: Mon, 29 Feb 2016 13:24:31 -0800 [thread overview]
Message-ID: <20160229212430.GA24030@cloud> (raw)
In-Reply-To: <20160229124937.984ac318110f686d96532088@linux-foundation.org>
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>
WARNING: multiple messages have this Message-ID (diff)
From: Josh Triplett <josh@joshtriplett.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: kbuild test robot <fengguang.wu@intel.com>,
kbuild-all@01.org, linux-kernel@vger.kernel.org,
Linux Memory Management List <linux-mm@kvack.org>
Subject: Re: include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type
Date: Mon, 29 Feb 2016 13:24:31 -0800 [thread overview]
Message-ID: <20160229212430.GA24030@cloud> (raw)
In-Reply-To: <20160229124937.984ac318110f686d96532088@linux-foundation.org>
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
> _
>
next prev parent reply other threads:[~2016-02-29 21:24 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
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 20:49 ` Andrew Morton
2016-02-29 21:24 ` Josh Triplett [this message]
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
2016-03-01 6:38 ` Andrew Morton
-- strict thread matches above, loose matches on Subject: below --
2016-03-06 22:08 include/linux/bug.h:93:12: error: dereferencing pointer to incomplete type kbuild test robot
2015-07-04 12:36 kbuild test robot
2015-07-04 20:48 ` Josh Triplett
2015-07-05 1:21 ` Fengguang Wu
2015-06-01 22:08 kbuild test robot
2015-06-01 23:27 ` josh
2015-06-02 2:27 ` Fengguang Wu
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=20160229212430.GA24030@cloud \
--to=josh@joshtriplett.org \
--cc=akpm@linux-foundation.org \
--cc=fengguang.wu@intel.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.