- 19 2月, 2016 2 次提交
-
-
由 Vaishali Thakkar 提交于
Use the timer API function setup_timer instead of structure field assignments to initialize a timer. Signed-off-by: NVaishali Thakkar <vaishali.thakkar@oracle.com> Acked-by: NJulia Lawall <julia.lawall@lip6.fr> Signed-off-by: NMichal Marek <mmarek@suse.com>
-
由 Julia Lawall 提交于
Rule r is only used in org or report mode, so only execute it in those cases. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: NMichal Marek <mmarek@suse.com>
-
- 09 9月, 2015 1 次提交
-
-
由 Sean O. Stalley 提交于
add [pci|dma]_pool_zalloc coccinelle check. replaces instances of [pci|dma]_pool_alloc() followed by memset(0) with [pci|dma]_pool_zalloc(). Signed-off-by: NSean O. Stalley <sean.stalley@intel.com> Acked-by: NJulia Lawall <julia.lawall@lip6.fr> Cc: Vinod Koul <vinod.koul@intel.com> Cc: Bjorn Helgaas <bhelgaas@google.com> Cc: Gilles Muller <Gilles.Muller@lip6.fr> Cc: Nicolas Palix <nicolas.palix@imag.fr> Cc: Michal Marek <mmarek@suse.cz> Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Cc: Jonathan Corbet <corbet@lwn.net> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
-
- 19 8月, 2015 1 次提交
-
-
由 Krzysztof Kozlowski 提交于
i2c_add_driver (through i2c_register_driver) sets the owner field so we can drop it also from i2c drivers, just like from platform drivers. Signed-off-by: NKrzysztof Kozlowski <k.kozlowski@samsung.com> Acked-by: NJulia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: NMichal Marek <mmarek@suse.com>
-
- 21 5月, 2015 1 次提交
-
-
由 Dmitry Kalinkin 提交于
This semantic patch replaces explicit computations of vma page count with explicit function call. Signed-off-by: NDmitry Kalinkin <dmitry.kalinkin@gmail.com> Acked-by: NJulia Lawall <julia.lawall@lip6.fr> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 20 5月, 2015 2 次提交
-
-
由 Fabio Estevam 提交于
According to Documentation/SubmittingPatches: "Describe your changes in imperative mood, e.g. "make xyzzy do frotz" instead of "[This patch] makes xyzzy do frotz" or "[I] changed xyzzy to do frotz", as if you are giving orders to the codebase to change its behaviour." So do as recommended. Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com> Acked-by: NJulia Lawall <julia.lawall@lip6.fr> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Fabio Estevam 提交于
Insert a blank line in order to improve the readability of the generated patch and also make it consistent with the other .cocci files. Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com> Acked-by: NJulia Lawall <julia.lawall@lip6.fr> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 07 11月, 2014 1 次提交
-
-
由 Wolfram Sang 提交于
There are calls which silently set the owner of a module. This is the preferred way [1], so avoid setting it manually. Currently, we only care about platform drivers, but there might be more calls to be added later. [1] https://lkml.org/lkml/2014/10/12/87Signed-off-by: NWolfram Sang <wsa@the-dreams.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
- 06 8月, 2014 1 次提交
-
-
由 Himangi Saraogi 提交于
This script detects cases of use of cast for the value returned by kmalloc, kzalloc, kcalloc, kmem_cache_alloc, kmem_cache_zalloc, kmem_cache_alloc_node, kmalloc_node and kzalloc_node and removes the cast as it is not useful. This Coccinelle script replaces drop_kmalloc_cast.cocci as it removes the casting in more limited cases of kmalloc, kzalloc and kcalloc. Signed-off-by: NHimangi Saraogi <himangi774@gmail.com> Acked-by: NJulia Lawall <julia.lawall@lip6.fr> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 20 6月, 2014 1 次提交
-
-
由 Jingoo Han 提交于
devm_request_and_ioremap() was obsoleted by the commit 75096579 ("lib: devres: Introduce devm_ioremap_resource()") and has been deprecated for a long time. So, let's remove this function. In addition, all usages of devm_request_and_ioremap() are also removed. Signed-off-by: NJingoo Han <jg1.han@samsung.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
- 08 4月, 2014 1 次提交
-
-
由 Sachin Kamat 提交于
PTR_RET is deprecated. Do not recommend its usage anymore. Use PTR_ERR_OR_ZERO instead. Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 03 1月, 2014 1 次提交
-
-
由 Nishanth Menon 提交于
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 c48cd659 (ARM: OMAP: use consistent error checking) - the error values can either be < 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&r=1&w=2 Cc: Russell King <rmk+kernel@arm.linux.org.uk> Reported-by: NSekhar Nori <nsekhar@ti.com> Signed-off-by: NNishanth Menon <nm@ti.com> Acked-by: NJulia Lawall <julia.lawall@lip6.fr> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 23 10月, 2013 1 次提交
-
-
由 Wolfram Sang 提交于
Use of this function is discouraged in favour of devm_ioremap_resource(). Don't advertise it. Signed-off-by: NWolfram Sang <wsa@the-dreams.de> Acked-by: NJulia Lawall <julia.lawall@lip6.fr> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 15 7月, 2013 1 次提交
-
-
由 Rusty Russell 提交于
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 <julia.lawall@lip6.fr> Signed-off-by: NRusty Russell <rusty@rustcorp.com.au> Acked-by: NDavid S. Miller <davem@davemloft.net> Acked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
-
- 04 7月, 2013 1 次提交
-
-
由 Nicolas Palix 提交于
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: NNicolas Palix <nicolas.palix@imag.fr> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 23 1月, 2013 1 次提交
-
-
由 Thierry Reding 提交于
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: NThierry Reding <thierry.reding@avionic-design.de> Cc: Arnd Bergmann <arnd@arndb.de> Acked-by: NDmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
- 19 12月, 2012 1 次提交
-
-
由 Cyril Roelandt 提交于
Ensure that calls to d_find_alias() have a corresponding dput(). Signed-off-by: NCyril Roelandt <tipecaml@gmail.com> Cc: Julia Lawall <Julia.Lawall@lip6.fr> Cc: Gilles Muller <Gilles.Muller@lip6.fr> Cc: Nicolas Palix <nicolas.palix@imag.fr> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
-
- 01 9月, 2012 1 次提交
-
-
由 Fengguang Wu 提交于
Signed-off-by: NFengguang Wu <fengguang.wu@intel.com> Signed-off-by: NJiri Kosina <jkosina@suse.cz>
-
- 31 8月, 2012 1 次提交
-
-
由 Lars-Peter Clausen 提交于
Add a ternary operator version of the open-coded PTR_RET(). Signed-off-by: NLars-Peter Clausen <lars@metafoo.de> Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 06 4月, 2012 1 次提交
-
-
由 Julia Lawall 提交于
Find instances of an open-coded simple_open() and replace them with calls to simple_open(). Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> Reported-by: NStephen Boyd <sboyd@codeaurora.org> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
-
- 27 3月, 2012 1 次提交
-
-
由 Julia Lawall 提交于
Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 15 1月, 2012 2 次提交
-
-
由 Julia Lawall 提交于
This patch ensures that all semantic patches in the scripts/coccinelle directory provide the report option. Report messages that include line numbers now have the line number preceded by "line" for easier subsequent processing. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Julia Lawall 提交于
devm_ functions allocate memory that is to remain allocated until the device is detached. This patch checks for opportunities for using the function devm_request_and_ioremap. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 31 8月, 2010 6 次提交
-
-
由 Nicolas Palix 提交于
alloc contains various semantic patches related to the allocation APIs Signed-off-by: NNicolas Palix <npalix@diku.dk> Signed-off-by: NJulia Lawall <julia@diku.dk> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Nicolas Palix 提交于
Signed-off-by: NNicolas Palix <npalix@diku.dk> Signed-off-by: NJulia Lawall <julia@diku.dk> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Nicolas Palix 提交于
Signed-off-by: NNicolas Palix <npalix@diku.dk> Signed-off-by: NJulia Lawall <julia@diku.dk> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Nicolas Palix 提交于
Use kmemdup_user rather than duplicating its implementation This is a little bit restricted to reduce false positives Signed-off-by: NNicolas Palix <npalix@diku.dk> Signed-off-by: NJulia Lawall <julia@diku.dk> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Nicolas Palix 提交于
Use kmemdup rather than duplicating its implementation Signed-off-by: NNicolas Palix <npalix@diku.dk> Signed-off-by: NJulia Lawall <julia@diku.dk> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Nicolas Palix 提交于
Use kstrdup rather than duplicating its implementation Signed-off-by: NNicolas Palix <npalix@diku.dk> Signed-off-by: NJulia Lawall <julia@diku.dk> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-