Commit 8b9e6d58 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

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: default avatarkbuild test robot <fengguang.wu@intel.com>
Cc: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 0b50a2d8
...@@ -36,6 +36,7 @@ config GENERIC_HWEIGHT ...@@ -36,6 +36,7 @@ config GENERIC_HWEIGHT
config GENERIC_BUG config GENERIC_BUG
def_bool y def_bool y
depends on BUG
config C6X_BIG_KERNEL config C6X_BIG_KERNEL
bool "Build a big kernel" bool "Build a big kernel"
......
...@@ -53,6 +53,7 @@ config GENERIC_HWEIGHT ...@@ -53,6 +53,7 @@ config GENERIC_HWEIGHT
config GENERIC_BUG config GENERIC_BUG
def_bool y def_bool y
depends on BUG
config QUICKLIST config QUICKLIST
def_bool y def_bool y
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment