coccinelle.
Signed-off-by: Silviu-Mihai Popescu
---
drivers/spi/spi-bcm2835.c |7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/spi/spi-bcm2835.c b/drivers/spi/spi-bcm2835.c
index 89c0b50..a4185e4 100644
--- a/drivers/spi/spi-bcm2835.c
+++ b/drivers/spi/spi-bcm2835.c
Convert all uses of devm_request_and_ioremap() to the newly introduced
devm_ioremap_resource() which provides more consistent error handling.
Signed-off-by: Silviu-Mihai Popescu
---
drivers/iio/adc/exynos_adc.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a
Convert use of devm_request_and_ioremap() to the newly introduced
devm_ioremap_resource() which provides more consistent error handling.
This was found with coccinelle.
Signed-off-by: Silviu-Mihai Popescu
---
drivers/ata/sata_rcar.c |6 +++---
1 file changed, 3 insertions(+), 3 deletions
coccinelle.
Signed-off-by: Silviu-Mihai Popescu
---
drivers/tty/serial/serial-tegra.c |8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/tty/serial/serial-tegra.c
b/drivers/tty/serial/serial-tegra.c
index 372de8a..2080fd7 100644
--- a/drivers/tty/serial/serial
coccinelle.
Signed-off-by: Silviu-Mihai Popescu
---
.../net/ethernet/stmicro/stmmac/stmmac_platform.c |8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
index
Convert use of devm_request_and_ioremap() to the newly introduced
devm_ioremap_resource() which provides more consistent error handling.
devm_ioremap_resource() provides its own error messages so all explicit
error messages can be removed from the failure code paths.
Signed-off-by: Silviu-Mihai
Convert all uses of devm_request_and_ioremap() to the newly introduced
devm_ioremap_resource() which provides more consistent error handling.
Signed-off-by: Silviu-Mihai Popescu
---
drivers/mtd/devices/elm.c |6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers
Convert all uses of devm_request_and_ioremap() to the newly introduced
devm_ioremap_resource() which provides more consistent error handling.
Signed-off-by: Silviu-Mihai Popescu
---
drivers/media/platform/sh_veu.c |6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a
-Mihai Popescu
---
drivers/cpuidle/cpuidle-kirkwood.c |6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/cpuidle/cpuidle-kirkwood.c
b/drivers/cpuidle/cpuidle-kirkwood.c
index 670aa1e..53aad73 100644
--- a/drivers/cpuidle/cpuidle-kirkwood.c
+++ b/drivers/cpuidle
-Mihai Popescu
---
drivers/cpufreq/kirkwood-cpufreq.c |8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/cpufreq/kirkwood-cpufreq.c
b/drivers/cpufreq/kirkwood-cpufreq.c
index 0e83e3c..6052476 100644
--- a/drivers/cpufreq/kirkwood-cpufreq.c
+++ b/drivers/cpufreq
This uses the resource_size() function instead of explicit computation.
Signed-off-by: Silviu-Mihai Popescu
---
drivers/staging/media/davinci_vpfe/dm365_ipipe.c |2 +-
drivers/staging/media/davinci_vpfe/dm365_isif.c|4 ++--
drivers/staging/media/davinci_vpfe/dm365_resizer.c |2
This uses the resource_size() function instead of explicit computation.
Signed-off-by: Silviu-Mihai Popescu
---
drivers/power/goldfish_battery.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/power/goldfish_battery.c b/drivers/power/goldfish_battery.c
index
This uses the resource_size() function instead of explicit computation.
Signed-off-by: Silviu-Mihai Popescu
---
drivers/staging/media/davinci_vpfe/dm365_ipipe.c |3 ++-
drivers/staging/media/davinci_vpfe/dm365_isif.c|6 --
drivers/staging/media/davinci_vpfe/dm365_resizer.c
This uses the resource_size() function instead of explicit computation.
Signed-off-by: Silviu-Mihai Popescu
---
drivers/net/irda/au1k_ir.c |5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/net/irda/au1k_ir.c b/drivers/net/irda/au1k_ir.c
index b5151e4..56f1e6d
This uses the resource_size() function instead of explicit computation.
Signed-off-by: Silviu-Mihai Popescu
---
drivers/ata/pata_octeon_cf.c |3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/ata/pata_octeon_cf.c b/drivers/ata/pata_octeon_cf.c
index ff2e57f
The objects allocated by devm_* APIs are managed by devres and are freed
when the device is detached. There is no need to use kfree() explicitly.
Signed-off-by: Silviu-Mihai Popescu
---
drivers/power/88pm860x_charger.c |1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/power
The objects allocated by devm_* APIs are managed by devres and are freed
when the device is detached. There is no need to use kfree() explicitly.
Signed-off-by: Silviu-Mihai Popescu
---
drivers/staging/imx-drm/ipu-v3/ipu-dp.c |1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/staging
The objects allocated by devm_* APIs are managed by devres and are freed when
the device is detached. Hence there is no need to use kfree() explicitly.
Signed-off-by: Silviu-Mihai Popescu
---
sound/soc/soc-core.c |2 --
1 file changed, 2 deletions(-)
diff --git a/sound/soc/soc-core.c b
Use resource_size() instead of explicit calculation and change the way
debugging for struct resource is done.
Signed-off-by: Silviu-Mihai Popescu
---
drivers/net/ethernet/nxp/lpc_eth.c |7 ++-
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/drivers/net/ethernet/nxp
Use resource_size() instead of explicit calculation. This was found via
make coccicheck.
Signed-off-by: Silviu-Mihai Popescu
---
drivers/net/ethernet/nxp/lpc_eth.c |4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/nxp/lpc_eth.c
b/drivers/net
Use resource_size() instead of explicit calculation. This was found via
make coccicheck.
Signed-off-by: Silviu-Mihai Popescu
---
drivers/mmc/host/android-goldfish.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/host/android-goldfish.c
b/drivers/mmc/host
This uses PTR_RET instead of IS_ERR and PTR_ERR in order to increase
readability.
Signed-off-by: Silviu-Mihai Popescu
---
net/bluetooth/hci_sysfs.c |5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c
index 23b4e24
This uses PTR_RET instead of IS_ERR and PTR_ERR in order to increase
readability.
Signed-off-by: Silviu-Mihai Popescu
---
net/bridge/netfilter/ebtable_broute.c |4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/net/bridge/netfilter/ebtable_broute.c
b/net/bridge/netfilter
This uses PTR_RET instead of IS_ERR and PTR_ERR in order to increase
readability.
Signed-off-by: Silviu-Mihai Popescu
---
net/ipv4/netfilter/arptable_filter.c |4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/net/ipv4/netfilter/arptable_filter.c
b/net/ipv4/netfilter
Convert all uses of devm_request_and_ioremap() to the newly introduced
devm_ioremap_resource() which provides more consistent error handling.
Signed-off-by: Silviu-Mihai Popescu
---
arch/mips/pci/pci-ar71xx.c |6 +++---
arch/mips/pci/pci-ar724x.c | 18 +-
2 files changed
This uses PTR_RET instead of IS_ERR and PTR_ERR in order to increase
readability.
Signed-off-by: Silviu-Mihai Popescu
---
arch/arm/mach-omap2/devices.c |4 ++--
arch/arm/mach-omap2/fb.c |5 +
arch/arm/mach-omap2/gpmc.c|2 +-
arch/arm/mach-omap2/pmu.c |5 +
4
This uses PTR_RET instead of IS_ERR and PTR_ERR in order to increase
readability.
Signed-off-by: Silviu-Mihai Popescu
---
drivers/net/ethernet/amd/atarilance.c |4 +---
drivers/net/ethernet/amd/mvme147.c|4 +---
drivers/net/ethernet/amd/ni65.c |2 +-
drivers/net/ethernet
-Mihai Popescu
---
arch/mips/pci/pci-ar71xx.c |6 +++---
arch/mips/pci/pci-ar724x.c | 18 +-
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/arch/mips/pci/pci-ar71xx.c b/arch/mips/pci/pci-ar71xx.c
index 412ec02..18517dd 100644
--- a/arch/mips/pci/pci-ar71xx.c
This replaces calls to kmalloc followed by memcpy with a single call to
kmemdup. This was found via make coccicheck.
Signed-off-by: Silviu-Mihai Popescu
---
drivers/parport/parport_gsc.c|4 ++--
drivers/parport/parport_sunbpp.c |5 ++---
drivers/parport/procfs.c |6
This replaces calls to kmalloc followed by memcpy with a single call to
kmemdup. This was found via make coccicheck.
Signed-off-by: Silviu-Mihai Popescu
---
fs/cifs/cifs_spnego.c |3 +--
fs/cifs/cifsacl.c |3 +--
fs/cifs/cifssmb.c |3 +--
fs/cifs/sess.c|8
-Mihai Popescu
---
sound/soc/omap/omap-dmic.c |9 +++--
sound/soc/omap/omap-mcpdm.c |8 +++-
2 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/sound/soc/omap/omap-dmic.c b/sound/soc/omap/omap-dmic.c
index 77e9e7e..8ebaf11 100644
--- a/sound/soc/omap/omap-dmic.c
+++ b
-Mihai Popescu
---
arch/mips/pci/pci-ar71xx.c |6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/mips/pci/pci-ar71xx.c b/arch/mips/pci/pci-ar71xx.c
index 412ec02..18517dd 100644
--- a/arch/mips/pci/pci-ar71xx.c
+++ b/arch/mips/pci/pci-ar71xx.c
@@ -366,9 +366,9
-Mihai Popescu
---
drivers/cpufreq/kirkwood-cpufreq.c |8 +++-
drivers/cpuidle/cpuidle-kirkwood.c |6 +++---
2 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/drivers/cpufreq/kirkwood-cpufreq.c
b/drivers/cpufreq/kirkwood-cpufreq.c
index 0e83e3c..6052476 100644
--- a/drivers
-Mihai Popescu
---
arch/mips/pci/pci-ar724x.c | 18 +-
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/arch/mips/pci/pci-ar724x.c b/arch/mips/pci/pci-ar724x.c
index 8a0700d..65ec032 100644
--- a/arch/mips/pci/pci-ar724x.c
+++ b/arch/mips/pci/pci-ar724x.c
@@ -365,25
-Mihai Popescu
---
drivers/media/platform/soc_camera/pxa_camera.c |6 +++---
.../platform/soc_camera/sh_mobile_ceu_camera.c |8 +++-
drivers/media/platform/soc_camera/sh_mobile_csi2.c |8 +++-
3 files changed, 9 insertions(+), 13 deletions(-)
diff --git a/drivers/media
-Mihai Popescu
---
drivers/watchdog/ath79_wdt.c |8 +++-
drivers/watchdog/davinci_wdt.c |8 +++-
drivers/watchdog/s3c2410_wdt.c |9 +++--
3 files changed, 9 insertions(+), 16 deletions(-)
diff --git a/drivers/watchdog/ath79_wdt.c b/drivers/watchdog/ath79_wdt.c
index
-Mihai Popescu
---
drivers/cpufreq/kirkwood-cpufreq.c |8 +++-
drivers/cpuidle/cpuidle-kirkwood.c |6 +++---
drivers/thermal/kirkwood_thermal.c |8 +++-
3 files changed, 9 insertions(+), 13 deletions(-)
diff --git a/drivers/cpufreq/kirkwood-cpufreq.c
b/drivers/cpufreq/kirkwood
This replaces a call to kmalloc() followed by memset() with just one
call to kzalloc().
Signed-off-by: Silviu-Mihai Popescu
---
drivers/video/matrox/matroxfb_base.c |3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/video/matrox/matroxfb_base.c
b/drivers/video
This replaces a call to kmalloc() followed by memset() with just one
call to kzalloc(). This was found using make coccicheck.
Signed-off-by: Silviu-Mihai Popescu
---
drivers/scsi/aic7xxx/aic7xxx_core.c |9 +++--
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/drivers/scsi
This lines up function arguments on second and subsequent lines at the
first column after the openning parenthesis of the first line.
Signed-off-by: Silviu-Mihai Popescu
---
net/caif/caif_dev.c |9 +
net/caif/caif_socket.c | 22 +++---
net/caif/caif_usb.c
This lines up function arguments on second and subsequent lines at the
first column after the openning parenthesis of the first line.
Signed-off-by: Silviu-Mihai Popescu
---
net/caif/caif_dev.c |8
net/caif/caif_socket.c | 22 +++---
net/caif/caif_usb.c
This fixes the following sparse warning:
net/caif/caif_usb.c:84:16: warning: symbol 'cfusbl_create' was not
declared. Should it be static?
Signed-off-by: Silviu-Mihai Popescu
---
net/caif/caif_usb.c |4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/caif/ca
This fixes the following sparse warning:
net/caif/caif_usb.c:84:16: warning: symbol 'cfusbl_create' was not
declared. Should it be static?
Signed-off-by: Silviu-Mihai Popescu
---
net/caif/caif_usb.c |4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/caif/ca
This fixes the following sparse warning:
net/caif/caif_usb.c:84:16: warning: symbol 'cfusbl_create' was not
declared. Should it be static?
Signed-off-by: Silviu-Mihai Popescu
---
net/caif/caif_usb.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/caif/caif_u
This fixed the following sparse warning:
net/caif/caif_dev.c:121:6: warning: symbol 'caif_flow_cb' was not
declared. Should it be static?
Signed-off-by: Silviu-Mihai Popescu
---
net/caif/caif_dev.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/caif/caif_d
27; was not declared. Should it be static?
Signed-off-by: Silviu-Mihai Popescu
---
net/sunrpc/auth_gss/gss_mech_switch.c |4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/sunrpc/auth_gss/gss_mech_switch.c
b/net/sunrpc/auth_gss/gss_mech_switch.c
index b174fcd..f0f4
Fix sparse warning:
* symbol 'tcp_wfree' was not declared. Should it be static?
Signed-off-by: Silviu-Mihai Popescu
---
net/ipv4/tcp_output.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
index 3f1bcf
Make sparse happy by fixing the following error:
* symbol 'mac802154_slave_get_priv' was not declared. Should it be
static?
Signed-off-by: Silviu-Mihai Popescu
---
net/mac802154/mib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/mac802154/m
48 matches
Mail list logo