You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Josh Triplett
ca56dc098c
checkpatch: check for quoted strings broken across lines
...
checkpatch already makes an exception to the 80-column rule for quoted
strings, and Documentation/CodingStyle recommends not splitting quoted
strings across lines, because it breaks the ability to grep for the
string. Rather than just permitting this, actively warn about quoted
strings split across lines.
Test case:
void context(void)
{
struct { unsigned magic; const char *strdata; } foo[] = {
{ 42, "these strings"
"do not produce warnings" },
{ 256, "though perhaps"
"they should" },
};
pr_err("this string"
" should produce a warning\n");
pr_err("this multi-line string\n"
"should not produce a warning\n");
asm ("this asm\n\t"
"should not produce a warning");
}
Results of checkpatch on that test case:
WARNING: quoted string split across lines
+ " should produce a warning\n");
total: 0 errors, 1 warnings, 15 lines checked
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Acked-by: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
13 years ago
..
basic
fixdep: fix extraneous dependencies
14 years ago
coccinelle
scripts/coccinelle: improve the coverage of some semantic patches
13 years ago
dtc
dtc: Implement -d option to write out a dependency file
13 years ago
genksyms
scripts/genksyms: clean lex/yacc generated files
13 years ago
kconfig
Merge branch 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
13 years ago
ksymoops
…
mod
Merge 3.3-rc6 into driver-core-next
13 years ago
package
builddeb: Don't create files in /tmp with predictable names
13 years ago
rt-tester
…
selinux
…
tracing
…
.gitignore
…
Kbuild.include
kbuild: add `baseprereq'
14 years ago
Lindent
…
Makefile
…
Makefile.asm-generic
kbuild: silence Nothing to be done for 'all' message
14 years ago
Makefile.build
scripts/Makefile.build: do not reference EXTRA_CFLAGS as CFLAGS replacement
14 years ago
Makefile.clean
…
Makefile.fwinst
…
Makefile.headersinst
kbuild: Add support for installing generated asm headers
13 years ago
Makefile.help
…
Makefile.host
…
Makefile.lib
Kbuild: Use dtc's -d (dependency) option
13 years ago
Makefile.modbuiltin
…
Makefile.modinst
…
Makefile.modpost
Merge commit 'v3.0-rc1' into kbuild/kbuild
14 years ago
bin2c.c
…
bloat-o-meter
…
bootgraph.pl
bootgraph.pl: relax timing information requirements
14 years ago
checkincludes.pl
…
checkkconfigsymbols.sh
…
checkpatch.pl
checkpatch: check for quoted strings broken across lines
13 years ago
checkstack.pl
…
checksyscalls.sh
checksyscalls: Use arch/x86/syscalls/syscall_32.tbl as source
13 years ago
checkversion.pl
…
cleanfile
…
cleanpatch
…
coccicheck
coccicheck: change handling of C={1,2} when M= is set
13 years ago
config
…
conmakehash.c
…
decodecode
…
depmod.sh
kbuild: do not check for ancient modutils tools
13 years ago
diffconfig
…
docproc.c
docproc: cleanup brace placement
14 years ago
export_report.pl
export_report: use warn() to issue WARNING, so they go to stderr
14 years ago
extract-ikconfig
…
extract-vmlinux
scripts: add extract-vmlinux
14 years ago
gcc-goto.sh
scripts/gcc-goto.sh: fix a typo ("suport")
14 years ago
gcc-version.sh
…
gcc-x86_32-has-stack-protector.sh
…
gcc-x86_64-has-stack-protector.sh
…
gen_initramfs_list.sh
Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6
14 years ago
get_maintainer.pl
get_maintainer.pl: add support for moderated lists
13 years ago
gfp-translate
…
headerdep.pl
…
headers.sh
kbuild, headers.sh: Don't make archheaders explicitly
13 years ago
headers_check.pl
…
headers_install.pl
headers_install: fix __packed in exported kernel headers
14 years ago
kallsyms.c
…
kernel-doc
scripts/kernel-doc: fix fatal error caused by cfg80211.h
13 years ago
makelst
…
markup_oops.pl
…
mkcompile_h
…
mkmakefile
kbuild: silence generated makefile message
14 years ago
mksysmap
…
mkuboot.sh
…
mkversion
…
module-common.lds
…
namespace.pl
…
patch-kernel
…
pnmtologo.c
…
profile2linkerlist.pl
…
recordmcount.c
…
recordmcount.h
recordmcount: Fix handling of elf64 big-endian objects.
13 years ago
recordmcount.pl
…
setlocalversion
…
show_delta
…
tags.sh
ctags: remove struct forward declarations
13 years ago
unifdef.c
…
ver_linux
…
xz_wrap.sh
…