[lkml]   [2012]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
SubjectRe: [GIT PULL] x86/build change for v3.6

* Sam Ravnborg <> wrote:

> >
> > No, the reason for the odd looking diff is that lots of lines in
> > arch/x86/Makefile have 8-space tabs for histerical reasons but
> > new code (such as this one) has proper tabs.
> Use of tabs for indent in a Makefile is just asking for
> trouble.

Ok, I guess you are right - see the patch below which was
another type of bug that could be introduced via not using
spaces properly.

We could do it the other way around: turn all tabs into spaces
and add Makefile checking in kbuild so that the build fails if
a tab is added to a Makefile?

Alternatively, is there perhaps some way to teach make to not be
so broken to depend on whitespace details that are *invisible*
to humans?



Index: linux/arch/x86/Makefile
--- linux.orig/arch/x86/Makefile
+++ linux/arch/x86/Makefile
@@ -96,7 +96,7 @@ ifdef CONFIG_X86_X32
- $(warning CONFIG_X86_X32 enabled but no binutils support)
+ $(warning CONFIG_X86_X32 enabled but no binutils support)
export CONFIG_X86_X32_ABI

 \ /
  Last update: 2012-07-26 09:41    [W:0.068 / U:5.808 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site