]> Git Repo - linux.git/commitdiff
Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6
authorLinus Torvalds <[email protected]>
Mon, 21 Mar 2011 22:55:26 +0000 (15:55 -0700)
committerLinus Torvalds <[email protected]>
Mon, 21 Mar 2011 22:55:26 +0000 (15:55 -0700)
* 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6:
  kbuild: Make DEBUG_SECTION_MISMATCH selectable, but not on by default
  genksyms: Regenerate lexer and parser
  genksyms: Track changes to enum constants
  genksyms: simplify usage of find_symbol()
  genksyms: Add helpers for building string lists
  genksyms: Simplify printing of symbol types
  genksyms: Simplify lexer
  genksyms: Do not paste the bison header file to lex.c
  modpost: fix trailing comma
  KBuild: silence "'scripts/unifdef' is up to date."
  kbuild: Add extra gcc checks
  kbuild: reenable section mismatch analysis
  unifdef: update to upstream version 2.5

1  2 
Documentation/kbuild/kbuild.txt
Makefile
lib/Kconfig.debug

index 8f63b224ab0969a758e5347d055777f1601d0b4c,376538c984cef15ce12886c959ca03fac5a42001..f1431d099fce31371aa74f63efed4f7ce5f9b64b
@@@ -146,7 -146,7 +146,7 @@@ INSTALL_MOD_STRI
  INSTALL_MOD_STRIP, if defined, will cause modules to be
  stripped after they are installed.  If INSTALL_MOD_STRIP is '1', then
  the default option --strip-debug will be used.  Otherwise,
 -INSTALL_MOD_STRIP will used as the options to the strip command.
 +INSTALL_MOD_STRIP value will be used as the options to the strip command.
  
  INSTALL_FW_PATH
  --------------------------------------------------
@@@ -196,3 -196,8 +196,8 @@@ to be included in the databases, separa
  To get all available archs you can also specify all. E.g.:
  
      $ make ALLSOURCE_ARCHS=all tags
+ KBUILD_ENABLE_EXTRA_GCC_CHECKS
+ --------------------------------------------------
+ If enabled over the make command line with "W=1", it turns on additional
+ gcc -W... options for more extensive build-time checking.
diff --combined Makefile
index 9193f94ddf83ee9757f2a039dc7cbddfa214650c,0bf29dcc66fc80862d30de294feba4abf8619bb5..7d4e9c8da7295e628d8a7849b72e1d8651d8772c
+++ b/Makefile
@@@ -1,7 -1,7 +1,7 @@@
  VERSION = 2
  PATCHLEVEL = 6
  SUBLEVEL = 38
 -EXTRAVERSION = -rc1
 +EXTRAVERSION =
  NAME = Flesh-Eating Bats with Fangs
  
  # *DOCUMENTATION*
@@@ -102,6 -102,10 +102,10 @@@ ifeq ("$(origin O)", "command line"
    KBUILD_OUTPUT := $(O)
  endif
  
+ ifeq ("$(origin W)", "command line")
+   export KBUILD_ENABLE_EXTRA_GCC_CHECKS := 1
+ endif
  # That's our default target when none is given on the command line
  PHONY := _all
  _all:
@@@ -421,7 -425,7 +425,7 @@@ endi
  # of make so .config is not included in this case either (for *config).
  
  no-dot-config-targets := clean mrproper distclean \
 -                       cscope TAGS tags help %docs check% coccicheck \
 +                       cscope gtags TAGS tags help %docs check% coccicheck \
                         include/linux/version.h headers_% \
                         kernelversion %src-pkg
  
@@@ -666,7 -670,7 +670,7 @@@ export MODLI
  #  INSTALL_MOD_STRIP, if defined, will cause modules to be
  #  stripped after they are installed.  If INSTALL_MOD_STRIP is '1', then
  #  the default option --strip-debug will be used.  Otherwise,
 -#  INSTALL_MOD_STRIP will used as the options to the strip command.
 +#  INSTALL_MOD_STRIP value will be used as the options to the strip command.
  
  ifdef INSTALL_MOD_STRIP
  ifeq ($(INSTALL_MOD_STRIP),1)
@@@ -1018,7 -1022,7 +1022,7 @@@ hdr-dst = $(if $(KBUILD_HEADERS), dst=i
  
  PHONY += __headers
  __headers: include/linux/version.h scripts_basic FORCE
-       $(Q)$(MAKE) $(build)=scripts scripts/unifdef
+       $(Q)$(MAKE) $(build)=scripts build_unifdef
  
  PHONY += headers_install_all
  headers_install_all:
@@@ -1135,7 -1139,7 +1139,7 @@@ CLEAN_FILES +=  vmlinux System.map 
  MRPROPER_DIRS  += include/config usr/include include/generated
  MRPROPER_FILES += .config .config.old .version .old_version             \
                    include/linux/version.h                               \
 -                Module.symvers tags TAGS cscope*
 +                Module.symvers tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS
  
  # clean - Delete most, but leave enough to build external modules
  #
@@@ -1222,7 -1226,6 +1226,7 @@@ help
        @echo  '  modules_prepare - Set up for building external modules'
        @echo  '  tags/TAGS       - Generate tags file for editors'
        @echo  '  cscope          - Generate cscope index'
 +      @echo  '  gtags           - Generate GNU GLOBAL index'
        @echo  '  kernelrelease   - Output the release version string'
        @echo  '  kernelversion   - Output the version stored in Makefile'
        @echo  '  headers_install - Install sanitised kernel headers to INSTALL_HDR_PATH'; \
        @echo  '  make O=dir [targets] Locate all output files in "dir", including .config'
        @echo  '  make C=1   [targets] Check all c source with $$CHECK (sparse by default)'
        @echo  '  make C=2   [targets] Force check of all c source with $$CHECK'
+       @echo  '  make W=1   [targets] Enable extra gcc checks'
        @echo  ''
        @echo  'Execute "make" or "make all" to build all targets marked with [*] '
        @echo  'For further info see the ./README file'
@@@ -1381,7 -1385,7 +1386,7 @@@ clean: $(clean-dirs
  quiet_cmd_tags = GEN     $@
        cmd_tags = $(CONFIG_SHELL) $(srctree)/scripts/tags.sh $@
  
 -tags TAGS cscope: FORCE
 +tags TAGS cscope gtags: FORCE
        $(call cmd,tags)
  
  # Scripts to check various things for consistency
diff --combined lib/Kconfig.debug
index 6f440d82b58db05e63d3a2ff9e32918e74974ebc,5a24805d4321cc744bd2a44756a97dc14c1be99b..191c5c4c89fcf92fc18e3728cd382f4f39f8e1ce
@@@ -102,11 -102,6 +102,6 @@@ config HEADERS_CHEC
  
  config DEBUG_SECTION_MISMATCH
        bool "Enable full Section mismatch analysis"
-       depends on UNDEFINED || (BLACKFIN)
-       default y
-       # This option is on purpose disabled for now.
-       # It will be enabled when we are down to a reasonable number
-       # of section mismatch warnings (< 10 for an allyesconfig build)
        help
          The section mismatch analysis checks if there are illegal
          references from one section to another section.
@@@ -470,6 -465,15 +465,6 @@@ config DEBUG_MUTEXE
         This feature allows mutex semantics violations to be detected and
         reported.
  
 -config BKL
 -      bool "Big Kernel Lock" if (SMP || PREEMPT)
 -      default y
 -      help
 -        This is the traditional lock that is used in old code instead
 -        of proper locking. All drivers that use the BKL should depend
 -        on this symbol.
 -        Say Y here unless you are working on removing the BKL.
 -
  config DEBUG_LOCK_ALLOC
        bool "Lock debugging: detect incorrect freeing of live locks"
        depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT
@@@ -648,7 -652,7 +643,7 @@@ config DEBUG_HIGHME
          Disable for production systems.
  
  config DEBUG_BUGVERBOSE
 -      bool "Verbose BUG() reporting (adds 70K)" if DEBUG_KERNEL && EMBEDDED
 +      bool "Verbose BUG() reporting (adds 70K)" if DEBUG_KERNEL && EXPERT
        depends on BUG
        depends on ARM || AVR32 || M32R || M68K || SPARC32 || SPARC64 || \
                   FRV || SUPERH || GENERIC_BUG || BLACKFIN || MN10300
@@@ -720,8 -724,8 +715,8 @@@ config DEBUG_WRITECOUN
          If unsure, say N.
  
  config DEBUG_MEMORY_INIT
 -      bool "Debug memory initialisation" if EMBEDDED
 -      default !EMBEDDED
 +      bool "Debug memory initialisation" if EXPERT
 +      default !EXPERT
        help
          Enable this for additional checks during memory initialisation.
          The sanity checks verify aspects of the VM such as the memory model
@@@ -796,7 -800,7 +791,7 @@@ config ARCH_WANT_FRAME_POINTER
  config FRAME_POINTER
        bool "Compile the kernel with frame pointers"
        depends on DEBUG_KERNEL && \
 -              (CRIS || M68K || M68KNOMMU || FRV || UML || \
 +              (CRIS || M68K || FRV || UML || \
                 AVR32 || SUPERH || BLACKFIN || MN10300) || \
                ARCH_WANT_FRAME_POINTERS
        default y if (DEBUG_INFO && UML) || ARCH_WANT_FRAME_POINTERS
This page took 0.090387 seconds and 4 git commands to generate.