Re: [PATCH v2] Documentation: Coccinelle: fix typos and command example

From: Markus Elfring
Date: Wed Jul 01 2020 - 07:57:36 EST


>> â
>>> +++ linux-next-20200629/Documentation/dev-tools/coccinelle.rst
>> â
>> > @@ -177,13 +177,13 @@ For example, to check drivers/net/wirele
>>> To apply Coccinelle on a file basis, instead of a directory basis, the
>>> following command may be used::
>>>
>>> - make C=1 CHECK="scripts/coccicheck"
>>> + make C=1 CHECK="scripts/coccicheck" path/to/file.c
â
>> We might stumble on different interpretations according to the wording âfile basisâ.
>> Do you find a message like âmake: Nothing to be done for 'path/to/file.c'.â interesting then?
>>
>> * Would you like to add any links for information around the support for
>> source code checkers?
>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Makefile?id=7c30b859a947535f2213277e827d7ac7dcff9c84#n198
â
> Feel free to submit patches.

How do you think about to use the following command variant
for the adjustment of the software documentation?

+ make C=1 CHECK='scripts/coccicheck' 'path/to/file.o'

Regards,
Markus