<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/scripts/coccinelle/api, branch v3.16</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/scripts/coccinelle/api?h=v3.16</id>
<link rel='self' href='https://git.amat.us/linux/atom/scripts/coccinelle/api?h=v3.16'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2014-04-08T15:27:01Z</updated>
<entry>
<title>scripts/coccinelle: Use PTR_ERR_OR_ZERO</title>
<updated>2014-04-08T15:27:01Z</updated>
<author>
<name>Sachin Kamat</name>
<email>sachin.kamat@linaro.org</email>
</author>
<published>2014-01-27T06:51:22Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=f23a9fa7e81f7df65e0bcf586e028a2db736b9e6'/>
<id>urn:sha1:f23a9fa7e81f7df65e0bcf586e028a2db736b9e6</id>
<content type='text'>
PTR_RET is deprecated. Do not recommend its usage anymore.
Use PTR_ERR_OR_ZERO instead.

Signed-off-by: Sachin Kamat &lt;sachin.kamat@linaro.org&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>scripts: Coccinelle script for pm_runtime_* return checks with IS_ERR_VALUE</title>
<updated>2014-01-03T13:39:35Z</updated>
<author>
<name>Nishanth Menon</name>
<email>nm@ti.com</email>
</author>
<published>2013-12-02T13:39:41Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=79f0345fefaafb7cde301a830471edd21a37989b'/>
<id>urn:sha1:79f0345fefaafb7cde301a830471edd21a37989b</id>
<content type='text'>
As indicated by Sekhar in [1], there seems to be a tendency to use
IS_ERR_VALUE to check the error result for pm_runtime_* functions which
make no sense considering commit c48cd65 (ARM: OMAP: use consistent
error checking) - the error values can either be &lt; 0 for error OR
0, 1 in cases where we have success.

So, setup a coccinelle script to help identify the same.

[1] http://marc.info/?t=138472678100003&amp;r=1&amp;w=2

Cc: Russell King &lt;rmk+kernel@arm.linux.org.uk&gt;
Reported-by: Sekhar Nori &lt;nsekhar@ti.com&gt;
Signed-off-by: Nishanth Menon &lt;nm@ti.com&gt;
Acked-by: Julia Lawall &lt;julia.lawall@lip6.fr&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>scripts/coccinelle/api: remove devm_request_and_ioremap.cocci</title>
<updated>2013-10-23T14:55:15Z</updated>
<author>
<name>Wolfram Sang</name>
<email>wsa@the-dreams.de</email>
</author>
<published>2013-08-15T10:30:25Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=a690876385f29c740798cb99aa2511217ecd9954'/>
<id>urn:sha1:a690876385f29c740798cb99aa2511217ecd9954</id>
<content type='text'>
Use of this function is discouraged in favour of
devm_ioremap_resource(). Don't advertise it.

Signed-off-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
Acked-by: Julia Lawall &lt;julia.lawall@lip6.fr&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>PTR_RET is now PTR_ERR_OR_ZERO(): Replace most.</title>
<updated>2013-07-15T01:55:01Z</updated>
<author>
<name>Rusty Russell</name>
<email>rusty@rustcorp.com.au</email>
</author>
<published>2013-07-15T01:50:32Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=8c6ffba0eddc8c110dbf444f51354ce42069abfc'/>
<id>urn:sha1:8c6ffba0eddc8c110dbf444f51354ce42069abfc</id>
<content type='text'>
Sweep of the simple cases.

Cc: netdev@vger.kernel.org
Cc: linuxppc-dev@lists.ozlabs.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: Julia Lawall &lt;julia.lawall@lip6.fr&gt;
Signed-off-by: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
Acked-by: David S. Miller &lt;davem@davemloft.net&gt;
Acked-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
</content>
</entry>
<entry>
<title>Coccinelle: Update the options used to the new option scheme</title>
<updated>2013-07-03T20:58:13Z</updated>
<author>
<name>Nicolas Palix</name>
<email>nicolas.palix@imag.fr</email>
</author>
<published>2013-06-20T11:10:56Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=93f14468491747d6d3efd0b3a42785b1d51a127a'/>
<id>urn:sha1:93f14468491747d6d3efd0b3a42785b1d51a127a</id>
<content type='text'>
spatch has changed its option scheme.
E.g., --no_show_diff is now --no-show-diff

This patch updates:
 - scripts/coccicheck
 - Semantic patches under scripts/coccinelle/

Signed-off-by: Nicolas Palix &lt;nicolas.palix@imag.fr&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
<entry>
<title>lib: devres: Introduce devm_ioremap_resource()</title>
<updated>2013-01-22T17:41:43Z</updated>
<author>
<name>Thierry Reding</name>
<email>thierry.reding@avionic-design.de</email>
</author>
<published>2013-01-21T10:08:54Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=75096579c3ac39ddc2f8b0d9a8924eba31f4d920'/>
<id>urn:sha1:75096579c3ac39ddc2f8b0d9a8924eba31f4d920</id>
<content type='text'>
The devm_request_and_ioremap() function is very useful and helps avoid a
whole lot of boilerplate. However, one issue that keeps popping up is
its lack of a specific error code to determine which of the steps that
it performs failed. Furthermore, while the function gives an example and
suggests what error code to return on failure, a wide variety of error
codes are used throughout the tree.

In an attempt to fix these problems, this patch adds a new function that
drivers can transition to. The devm_ioremap_resource() returns a pointer
to the remapped I/O memory on success or an ERR_PTR() encoded error code
on failure. Callers can check for failure using IS_ERR() and determine
its cause by extracting the error code using PTR_ERR().

devm_request_and_ioremap() is implemented as a wrapper around the new
API and return NULL on failure as before. This ensures that backwards
compatibility is maintained until all users have been converted to the
new API, at which point the old devm_request_and_ioremap() function
should be removed.

A semantic patch is included which can be used to convert from the old
devm_request_and_ioremap() API to the new devm_ioremap_resource() API.
Some non-trivial cases may require manual intervention, though.

Signed-off-by: Thierry Reding &lt;thierry.reding@avionic-design.de&gt;
Cc: Arnd Bergmann &lt;arnd@arndb.de&gt;
Acked-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Coccinelle: add api/d_find_alias.cocci</title>
<updated>2012-12-18T23:02:11Z</updated>
<author>
<name>Cyril Roelandt</name>
<email>tipecaml@gmail.com</email>
</author>
<published>2012-12-18T22:21:28Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=af56e3f017bae54b9c3b5f7877d5eff990a2eed9'/>
<id>urn:sha1:af56e3f017bae54b9c3b5f7877d5eff990a2eed9</id>
<content type='text'>
Ensure that calls to d_find_alias() have a corresponding dput().

Signed-off-by: Cyril Roelandt &lt;tipecaml@gmail.com&gt;
Cc: Julia Lawall &lt;Julia.Lawall@lip6.fr&gt;
Cc: Gilles Muller &lt;Gilles.Muller@lip6.fr&gt;
Cc: Nicolas Palix &lt;nicolas.palix@imag.fr&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild</title>
<updated>2012-10-12T01:32:29Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2012-10-12T01:32:29Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=cbd8aca472134e666eee87462177f1be854ebbf8'/>
<id>urn:sha1:cbd8aca472134e666eee87462177f1be854ebbf8</id>
<content type='text'>
Pull kbuild misc changes from Michal Marek:
 "In the non-critical part of kbuild, I have
   - Some make coccicheck improvements and two new tests
   - Support for a cleaner html output in scripts/kernel-doc, named
     html5 (no, it does not play videos, yet)

  BTW, Randy wants to route further kernel-doc patches through the
  kbuild tree."

* 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
  Update SmPL/Coccinelle section of MAINTAINERS
  coccicheck: Add the rep+ctxt mode
  scripts/coccinelle/tests/odd_ptr_err.cocci: semantic patch for IS_ERR/PTR_ERR inconsistency
  scripts/tags.sh: Add magic for pci access functions
  scripts/coccinelle: ptr_ret: Add ternary operator version
  scripts/kernel-doc: drop maintainer
  scripts/kernel-doc: added support for html5
</content>
</entry>
<entry>
<title>Coccinelle: fix typo in memdup_user.cocci</title>
<updated>2012-09-01T15:52:13Z</updated>
<author>
<name>Fengguang Wu</name>
<email>fengguang.wu@intel.com</email>
</author>
<published>2012-07-25T11:35:30Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=7c6c4d5c4aec7e2375c7f67515c18c37c5d28e68'/>
<id>urn:sha1:7c6c4d5c4aec7e2375c7f67515c18c37c5d28e68</id>
<content type='text'>
Signed-off-by: Fengguang Wu &lt;fengguang.wu@intel.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>scripts/coccinelle: ptr_ret: Add ternary operator version</title>
<updated>2012-08-31T14:55:15Z</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2012-08-21T08:49:58Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=3085897359d80e73da2b4ea32ade7a9095594422'/>
<id>urn:sha1:3085897359d80e73da2b4ea32ade7a9095594422</id>
<content type='text'>
Add a ternary operator version of the open-coded PTR_RET().

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Julia Lawall &lt;Julia.Lawall@lip6.fr&gt;
Signed-off-by: Michal Marek &lt;mmarek@suse.cz&gt;
</content>
</entry>
</feed>
