[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <23323.1283864982@redhat.com>
Date: Tue, 07 Sep 2010 14:09:42 +0100
From: David Howells <dhowells@...hat.com>
To: Andy Whitcroft <apw@...onical.com>
cc: dhowells@...hat.com, linux-kernel@...r.kernel.org
Subject: checkpatch problem
Hi,
Checkpatch generates the following messages for inline asm strings:
WARNING: unnecessary whitespace before a quoted newline
#49: FILE: arch/m32r/include/asm/irqflags.h:31:
+ "ld24 %0, #0 ; Use 32-bit insn. \n\t"
however, inline asm is more readable if I can tabulate things, including the
newline markers:
asm volatile (
"ld24 %0, #0 ; Use 32-bit insn. \n\t"
"mvfc %1, psw ; No interrupt can be accepted here. \n\t"
"mvtc %0, psw \n\t"
"and3 %0, %1, #0xffbf \n\t"
"mvtc %0, psw \n\t"
: "=&r" (tmpreg0), "=&r" (tmpreg1)
:
: "cbit", "memory");
Can you please fix it, even if it's only to permit multiple TAB chars before
'\n'.
Whilst this check is probaly fine for strings to be displayed in some way, this
doesn't necessarily apply to inline asm strings. Furthermore, the extra white
space does not impact the resulting binary.
David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists