mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@kernel.org>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: "Kirill A. Shutemov" <kirill@shutemov.name>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	linux-kernel@vger.kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [GIT PULL] x86/build change for v3.6
Date: Thu, 26 Jul 2012 08:55:06 +0200	[thread overview]
Message-ID: <20120726065506.GA8421@gmail.com> (raw)
In-Reply-To: <20120725201511.GA888@merkur.ravnborg.org>


* Sam Ravnborg <sam@ravnborg.org> 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?

Thanks,

	Ingo

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

  parent reply	other threads:[~2012-07-26  6:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-22 13:44 Ingo Molnar
2012-07-22 13:58 ` Kirill A. Shutemov
2012-07-22 14:22   ` Ingo Molnar
2012-07-23  9:35     ` Kirill A. Shutemov
2012-07-25 20:15     ` Sam Ravnborg
2012-07-25 20:18       ` H. Peter Anvin
2012-07-26  6:55       ` Ingo Molnar [this message]
2012-07-29 20:42         ` Sam Ravnborg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120726065506.GA8421@gmail.com \
    --to=mingo@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=hpa@zytor.com \
    --cc=kirill@shutemov.name \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sam@ravnborg.org \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome