]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
mn10300, c6x: CONFIG_GENERIC_BUG must depend on CONFIG_BUG
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 17 Mar 2016 21:21:06 +0000 (14:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 17 Mar 2016 22:09:34 +0000 (15:09 -0700)
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/c6x/Kconfig
arch/mn10300/Kconfig

index 79049d432d3c7808f6914376a715e34ada4c14af..5aa8ea8bad2db1cde0719d2bec9144d1c894b832 100644 (file)
@@ -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"
index 10607f0d2bcd1526f01d95cee5c519c1916224b1..06ddb5501ab1365ea6a52850cb9e203a9b5b2923 100644 (file)
@@ -53,6 +53,7 @@ config GENERIC_HWEIGHT
 
 config GENERIC_BUG
        def_bool y
+       depends on BUG
 
 config QUICKLIST
        def_bool y