* Strange warnings out of checkpatch
@ 2015-11-01 20:19 John Whitmore
2015-11-01 20:34 ` Aruna Hewapathirane
0 siblings, 1 reply; 4+ messages in thread
From: John Whitmore @ 2015-11-01 20:19 UTC (permalink / raw)
To: kernelnewbies
I'm using the MCP2515 driver chip on some work I'm doing. Out of curiosity I
ran checkpatch.pl on the C file and don't understand the output.
A search sort of seems to suggest that it is a problem with the checkpatch
utility itself.
http://www.serverphorums.com/read.php?12,1264313
I'd like to understand what is either wrong with code or chcekpatch
$ scripts/checkpatch.pl drivers/net/can/spi/mcp251x.c
WARNING: Possible unwrapped commit description (prefer a maximum 75 chars per line)
#727:
static void mcp251x_error_skb(struct net_device *net, int can_id, int data1)
ERROR: Does not appear to be a unified-diff format patch
total: 1 errors, 1 warnings, 0 lines checked
drivers/net/can/spi/mcp251x.c has style problems, please review.
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Strange warnings out of checkpatch
2015-11-01 20:19 Strange warnings out of checkpatch John Whitmore
@ 2015-11-01 20:34 ` Aruna Hewapathirane
2015-11-02 20:11 ` John Whitmore
0 siblings, 1 reply; 4+ messages in thread
From: Aruna Hewapathirane @ 2015-11-01 20:34 UTC (permalink / raw)
To: kernelnewbies
>><snip>
I'd like to understand what is either wrong with code or chcekpatch
> $ scripts/checkpatch.pl drivers/net/can/spi/mcp251x.c
>
John,
Please run checkpatch.pl with the -f switch/flag like shown below:
scripts/checkpatch.pl *-f *drivers/net/can/spi/mcp251x.c
also run scripts/checkpatch.pl --help and read.
[ -f, --file treat FILE as regular source file ]
Thanks - Aruna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20151101/a7a568b7/attachment.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Strange warnings out of checkpatch
2015-11-01 20:34 ` Aruna Hewapathirane
@ 2015-11-02 20:11 ` John Whitmore
2015-11-02 20:21 ` Aruna Hewapathirane
0 siblings, 1 reply; 4+ messages in thread
From: John Whitmore @ 2015-11-02 20:11 UTC (permalink / raw)
To: kernelnewbies
On Sun, Nov 01, 2015 at 03:34:15PM -0500, Aruna Hewapathirane wrote:
> >><snip>
>
> I'd like to understand what is either wrong with code or chcekpatch
> > $ scripts/checkpatch.pl drivers/net/can/spi/mcp251x.c
> >
>
> John,
>
> Please run checkpatch.pl with the -f switch/flag like shown below:
>
> scripts/checkpatch.pl *-f *drivers/net/can/spi/mcp251x.c
>
> also run scripts/checkpatch.pl --help and read.
>
> [ -f, --file treat FILE as regular source file ]
>
> Thanks - Aruna
Oops sorry I should have checked there :-( thanks a million for you help
^ permalink raw reply [flat|nested] 4+ messages in thread
* Strange warnings out of checkpatch
2015-11-02 20:11 ` John Whitmore
@ 2015-11-02 20:21 ` Aruna Hewapathirane
0 siblings, 0 replies; 4+ messages in thread
From: Aruna Hewapathirane @ 2015-11-02 20:21 UTC (permalink / raw)
To: kernelnewbies
On Mon, Nov 2, 2015 at 3:11 PM, John Whitmore <arigead@gmail.com> wrote:
> On Sun, Nov 01, 2015 at 03:34:15PM -0500, Aruna Hewapathirane wrote:
> > >><snip>
> >
> > I'd like to understand what is either wrong with code or chcekpatch
> > > $ scripts/checkpatch.pl drivers/net/can/spi/mcp251x.c
> > >
> >
> > John,
> >
> > Please run checkpatch.pl with the -f switch/flag like shown below:
> >
> > scripts/checkpatch.pl *-f *drivers/net/can/spi/mcp251x.c
> >
> > also run scripts/checkpatch.pl --help and read.
> >
> > [ -f, --file treat FILE as regular source file ]
> >
> > Thanks - Aruna
>
> Oops sorry I should have checked there :-( thanks a million for you help
>
Do not be sorry, it is the best way to learn. You make that mistake only
the once :) In my case a few times more than once !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20151102/8e4fd0a7/attachment.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-11-02 20:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-01 20:19 Strange warnings out of checkpatch John Whitmore
2015-11-01 20:34 ` Aruna Hewapathirane
2015-11-02 20:11 ` John Whitmore
2015-11-02 20:21 ` Aruna Hewapathirane
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.