All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/pci: fix checkpatch.pl indentation warnings
@ 2013-07-11  6:23 Valentina Manea
  2013-07-12 10:26 ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Valentina Manea @ 2013-07-11  6:23 UTC (permalink / raw)
  To: x86
  Cc: tglx, mingo, hpa, bhelgaas, gregkh, bin.gao, linux-kernel,
	Valentina Manea

This patch fixes warnings generated by checkpatch.pl
regarding indentation.

Signed-off-by: Valentina Manea <valentina.manea.m@gmail.com>
---
 arch/x86/pci/mrst.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/pci/mrst.c b/arch/x86/pci/mrst.c
index 6eb18c4..cd0a373 100644
--- a/arch/x86/pci/mrst.c
+++ b/arch/x86/pci/mrst.c
@@ -251,8 +251,8 @@ static void pci_d3delay_fixup(struct pci_dev *dev)
 {
 	/* PCI fixups are effectively decided compile time. If we have a dual
 	   SoC/non-SoC kernel we don't want to mangle d3 on non SoC devices */
-        if (!pci_soc_mode)
-            return;
+	if (!pci_soc_mode)
+		return;
 	/* true pci devices in lincroft should allow type 1 access, the rest
 	 * are langwell fake pci devices.
 	 */
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] x86/pci: fix checkpatch.pl indentation warnings
  2013-07-11  6:23 [PATCH] x86/pci: fix checkpatch.pl indentation warnings Valentina Manea
@ 2013-07-12 10:26 ` Ingo Molnar
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2013-07-12 10:26 UTC (permalink / raw)
  To: Valentina Manea
  Cc: x86, tglx, mingo, hpa, bhelgaas, gregkh, bin.gao, linux-kernel


* Valentina Manea <valentina.manea.m@gmail.com> wrote:

> This patch fixes warnings generated by checkpatch.pl
> regarding indentation.
> 
> Signed-off-by: Valentina Manea <valentina.manea.m@gmail.com>
> ---
>  arch/x86/pci/mrst.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/x86/pci/mrst.c b/arch/x86/pci/mrst.c
> index 6eb18c4..cd0a373 100644
> --- a/arch/x86/pci/mrst.c
> +++ b/arch/x86/pci/mrst.c
> @@ -251,8 +251,8 @@ static void pci_d3delay_fixup(struct pci_dev *dev)
>  {
>  	/* PCI fixups are effectively decided compile time. If we have a dual
>  	   SoC/non-SoC kernel we don't want to mangle d3 on non SoC devices */
> -        if (!pci_soc_mode)
> -            return;
> +	if (!pci_soc_mode)
> +		return;
>  	/* true pci devices in lincroft should allow type 1 access, the rest
>  	 * are langwell fake pci devices.
>  	 */

If you do whitespace cleanups then please also fix all the other problems 
in that file, right now mrst.c has more than just one:

  total: 3 errors, 7 warnings, 3 checks, 303 lines checked

plus the area you patched has some wierd comment formatting as well. For 
multi-line comments we use:

  /*
   * Comment .....
   * ...... goes here.
   */

as specified in Documentation/CodingStyle.

Thanks,

	Ingo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-07-12 10:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-11  6:23 [PATCH] x86/pci: fix checkpatch.pl indentation warnings Valentina Manea
2013-07-12 10:26 ` Ingo Molnar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.