Skip to content

Commit

Permalink
mn10300, c6x: CONFIG_GENERIC_BUG must depend on CONFIG_BUG
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Josh Triplett <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
akpm00 authored and torvalds committed Mar 17, 2016
1 parent 0b50a2d commit 8b9e6d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/c6x/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions arch/mn10300/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ config GENERIC_HWEIGHT

config GENERIC_BUG
def_bool y
depends on BUG

config QUICKLIST
def_bool y
Expand Down

0 comments on commit 8b9e6d5

Please sign in to comment.