summaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)Author
2009-09-15Linux 2.6.27.34v2.6.27.34Greg Kroah-Hartman
2009-09-09Linux 2.6.27.33v2.6.27.33Greg Kroah-Hartman
2009-09-08Linux 2.6.27.32v2.6.27.32Greg Kroah-Hartman
2009-08-17Linux 2.6.27.31v2.6.27.31Greg Kroah-Hartman
2009-08-16Linux 2.6.27.30v2.6.27.30Greg Kroah-Hartman
2009-07-30Linux 2.6.27.29v2.6.27.29Greg Kroah-Hartman
2009-07-24Linux 2.6.27.28v2.6.27.28Greg Kroah-Hartman
2009-07-19Linux 2.6.27.27v2.6.27.27Greg Kroah-Hartman
2009-07-19Don't use '-fwrapv' compiler option: it's buggy in gcc-4.1.xLinus Torvalds
commit a137802ee839ace40079bebde24cfb416f73208a upstream. This causes kernel images that don't run init to completion with certain broken gcc versions. This fixes kernel bugzilla entry: http://bugzilla.kernel.org/show_bug.cgi?id=13012 I suspect the gcc problem is this: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28230 Fix the problem by using the -fno-strict-overflow flag instead, which not only does not exist in the known-to-be-broken versions of gcc (it was introduced later than fwrapv), but seems to be much less disturbing to gcc too: the difference in the generated code by -fno-strict-overflow are smaller (compared to using neither flag) than when using -fwrapv. Reported-by: Barry K. Nathan <barryn@pobox.com> Pushed-by: Frans Pop <elendil@planet.nl> Cc: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-07-19Add '-fno-delete-null-pointer-checks' to gcc CFLAGSEugene Teo
commit a3ca86aea507904148870946d599e07a340b39bf upstream. Turning on this flag could prevent the compiler from optimising away some "useless" checks for null pointers. Such bugs can sometimes become exploitable at compile time because of the -O2 optimisation. See http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Optimize-Options.html An example that clearly shows this 'problem' is commit 6bf67672. static void __devexit agnx_pci_remove(struct pci_dev *pdev) { struct ieee80211_hw *dev = pci_get_drvdata(pdev); - struct agnx_priv *priv = dev->priv; + struct agnx_priv *priv; AGNX_TRACE; if (!dev) return; + priv = dev->priv; By reverting this patch, and compile it with and without -fno-delete-null-pointer-checks flag, we can see that the check for dev is compiled away. call printk # - testq %r12, %r12 # dev - je .L94 #, movq %r12, %rdi # dev, Clearly the 'fix' is to stop using dev before it is tested, but building with -fno-delete-null-pointer-checks flag at least makes it harder to abuse. Signed-off-by: Eugene Teo <eugeneteo@kernel.sg> Acked-by: Eric Paris <eparis@redhat.com> Acked-by: Wang Cong <amwang@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-07-02Linux 2.6.27.26v2.6.27.26Greg Kroah-Hartman
2009-06-11Linux 2.6.27.25v2.6.27.25Greg Kroah-Hartman
2009-05-19Linux 2.6.27.24v2.6.27.24Greg Kroah-Hartman
2009-05-08Linux 2.6.27.23v2.6.27.23Greg Kroah-Hartman
2009-05-02Linux 2.6.27.22v2.6.27.22Greg Kroah-Hartman
2009-03-23Linux 2.6.27.21v2.6.27.21Greg Kroah-Hartman
2009-03-23Move cc-option to below arch-specific setupLinus Torvalds
commit d0115552cdb0b4d4146975889fee2e9355515c4b upstream. Sam Ravnborg says: "We have several architectures that plays strange games with $(CC) and $(CROSS_COMPILE). So we need to postpone any use of $(call cc-option..) until we have included the arch specific Makefile so we try with the correct $(CC) version." Requested-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-03-23Add '-fwrapv' to gcc CFLAGSLinus Torvalds
commit 68df3755e383e6fecf2354a67b08f92f18536594 upstream. This makes sure that gcc doesn't try to optimize away wrapping arithmetic, which the kernel occasionally uses for overflow testing, ie things like if (ptr + offset < ptr) which technically is undefined for non-unsigned types. See http://bugzilla.kernel.org/show_bug.cgi?id=12597 for details. Not all versions of gcc support it, so we need to make it conditional (it looks like it was introduced in gcc-3.4). Reminded-by: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-03-16Linux 2.6.27.20v2.6.27.20Greg Kroah-Hartman
2009-02-20Linux 2.6.27.19v2.6.27.19Greg Kroah-Hartman
2009-02-17Linux 2.6.27.18v2.6.27.18Greg Kroah-Hartman
2009-02-12Linux 2.6.27.17v2.6.27.17Greg Kroah-Hartman
2009-02-12Linux 2.6.27.16v2.6.27.16Greg Kroah-Hartman
2009-02-06Linux 2.6.27.15v2.6.27.15Greg Kroah-Hartman
2009-02-02Linux 2.6.27.14v2.6.27.14Greg Kroah-Hartman
2009-01-24Linux 2.6.27.13v2.6.27.13Greg Kroah-Hartman
2009-01-18Linux 2.6.27.12v2.6.27.12Greg Kroah-Hartman
2009-01-14Linux 2.6.27.11v2.6.27.11Greg Kroah-Hartman
2008-12-18Linux 2.6.27.10v2.6.27.10Greg Kroah-Hartman
2008-12-13Linux 2.6.27.9v2.6.27.9Greg Kroah-Hartman
2008-12-05Linux 2.6.27.8v2.6.27.8Greg Kroah-Hartman
2008-11-20Linux 2.6.27.7v2.6.27.7Greg Kroah-Hartman
2008-11-13Linux 2.6.27.6v2.6.27.6Greg Kroah-Hartman
2008-11-07Linux 2.6.27.5v2.6.27.5Greg Kroah-Hartman
2008-10-25Linux 2.6.27.4v2.6.27.4Greg Kroah-Hartman
2008-10-22Linux 2.6.27.3v2.6.27.3Greg Kroah-Hartman
2008-10-18Linux 2.6.27.2v2.6.27.2Greg Kroah-Hartman
2008-10-15Linux 2.6.27.1v2.6.27.1Greg Kroah-Hartman
2008-10-09Linux 2.6.27v2.6.27Linus Torvalds
2008-10-06Linux 2.6.27-rc9v2.6.27-rc9Linus Torvalds
2008-09-29Linux 2.6.27-rc8v2.6.27-rc8Linus Torvalds
2008-09-21Linux 2.6.27-rc7v2.6.27-rc7Linus Torvalds
2008-09-09Linux 2.6.27-rc6v2.6.27-rc6Linus Torvalds
2008-08-28Linux 2.6.27-rc5v2.6.27-rc5Linus Torvalds
2008-08-20Linux v2.6.27-rc4v2.6.27-rc4Linus Torvalds
2008-08-12Linux 2.6.27-rc3v2.6.27-rc3Linus Torvalds
2008-08-12docsrc: build Documentation/ sourcesRandy Dunlap
Currently source files in the Documentation/ sub-dir can easily bit-rot since they are not generally buildable, either because they are hidden in text files or because there are no Makefile rules for them. This needs to be fixed so that the source files remain usable and good examples of code instead of bad examples. Add the ability to build source files that are in the Documentation/ dir. Add to Kconfig as "BUILD_DOCSRC" config symbol. Use "CONFIG_BUILD_DOCSRC=1 make ..." to build objects from the Documentation/ sources. Or enable BUILD_DOCSRC in the *config system. However, this symbol depends on HEADERS_CHECK since the header files need to be installed (for userspace builds). Built (using cross-tools) for x86-64, i386, alpha, ia64, sparc32, sparc64, powerpc, sh, m68k, & mips. Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-08-06kbuild: a better way to generate cscope database changeDenis ChengRq
It's a problem about cscope target of kernel Makefile, and the cscope plugin of emacs: 1. `make cscope` will generate cscope.files cscope.{in,po,}.out; 2. the cscope plugin expect a cscope.out.{in,po,}; 3. the default `cscope -b` would generate cscope.{in,po,}.out; There are three approach to solve it: 1. modify the cscope C code; 2. modify the cscope emacs plugin lisp code; 3. modify the Makefile; I have tried to communicate with the cscope upstream, but later I realize the third approach is most meaningful. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2008-08-06kbuild: fix O=.. build with armSam Ravnborg
With a make O=... build kbuild would only create the include2/asm symlink for archs that not yet had moved headers to include/$ARCH/include There is no longer any reason to avoid the symlink for archs that has moved their headers so create it unconditionally. This fixes arm because kbuild checked for include/asm-$ARCH/errno.h and that file was not present for arm but the platform files are not yet moved. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Russell King <rmk@arm.linux.org.uk>
2008-08-05Linux 2.6.27-rc2v2.6.27-rc2Linus Torvalds