All of lore.kernel.org
 help / color / mirror / Atom feed
* Split String Checkpatch Warning
@ 2016-09-29 22:14 Elizabeth Ferdman
  2016-09-29 23:50 ` Alison Schofield
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Elizabeth Ferdman @ 2016-09-29 22:14 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: amsfield22

I'm seeing this checkpatch error:

WARNING: quoted string split across lines

example:
MODULE_AUTHOR("Ralph Metzler, Trent Piepho, Ben Pfaff, "
             "Christoph Bartelmus, Andrei Tanas");

Just wondering if this is a good thing to fix, and how do I fix it? I
don't see anything about it in the style guide. If I put the whole
string on one line, it's more than 80 characters. I found one option on
stack overflow that says you can do:

char *my_string = "Line 1 \
                   Line 2";

So I'd be putting a space and a backslash after the line?
I don't know if that conforms with linux kernel coding style though.

I'm also wondering if anyone knows any good resources on common
checkpatch errors and the proper way to fix them. 

Thanks,
Liz


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

end of thread, other threads:[~2016-09-30  4:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-29 22:14 Split String Checkpatch Warning Elizabeth Ferdman
2016-09-29 23:50 ` Alison Schofield
2016-09-30  0:04   ` Elizabeth Ferdman
2016-09-30  4:52 ` [Outreachy kernel] " Greg KH
2016-09-30  4:56 ` Julia Lawall

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.