From: "Jan Beulich" Subject: Re: [PATCH] numa.c: use spaces instead of tabs Date: Mon, 08 Sep 2014 07:53:22 +0100 Message-ID: <540D6E820200007800031D17@mail.emea.novell.com> References: <1409717890-2837-1-git-send-email-ufimtseva@gmail.com> <1409737969.2673.35.camel@Solace.lan> <54070330020000780003029A@mail.emea.novell.com> <540725DE0200007800030453@mail.emea.novell.com> <5407286C02000078000304B5@mail.emea.novell.com> <540B4449.1000606@terremark.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <540B4449.1000606@terremark.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Don Slutz Cc: Keir Fraser , Ian Campbell , George Dunlap , Dario Faggioli , Ian Jackson , "xen-devel@lists.xen.org" , Elena Ufimtseva List-Id: xen-devel@lists.xenproject.org >>> On 06.09.14 at 19:28, wrote: > Using this on xen/arch/x86/numa.c (and asking git to ignore white space > changes) gives me: > > dcs-xen-54:~/xen>git diff -w > diff --git a/xen/arch/x86/numa.c b/xen/arch/x86/numa.c > index 628a40a..35ce32c 100644 > --- a/xen/arch/x86/numa.c > +++ b/xen/arch/x86/numa.c > @@ -35,13 +35,15 @@ static typeof(*memnodemap) _memnodemap[64]; > unsigned long memnodemapsize; > u8 *memnodemap; > > -unsigned char cpu_to_node[NR_CPUS] __read_mostly = { > +unsigned char cpu_to_node[NR_CPUS] __read_mostly = > +{ > [0 ... NR_CPUS - 1] = NUMA_NO_NODE > }; > /* > * Keep BIOS's CPU2node information, should not be used for memory allocaion > */ > -unsigned char apicid_to_node[MAX_LOCAL_APIC] __cpuinitdata = { > +unsigned char apicid_to_node[MAX_LOCAL_APIC] __cpuinitdata = > +{ > [0 ... MAX_LOCAL_APIC - 1] = NUMA_NO_NODE > }; > cpumask_t node_to_cpumask[MAX_NUMNODES] __read_mostly; > @@ -413,7 +415,8 @@ static void dump_numa(unsigned char key) > rcu_read_unlock(&domlist_read_lock); > } > > -static struct keyhandler dump_numa_keyhandler = { > +static struct keyhandler dump_numa_keyhandler = > +{ > .diagnostic = 1, > .u.fn = dump_numa, > .desc = "dump numa info" Except that I think on initializers we don't strictly require the { to be on a separate line, albeit I admit that one can conclude either way from ./CODING_STYLE. Jan