Free memory region, if gb_lights_channel_config is not successful.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/staging/greybus/light.c | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/greybus/light.c b/drivers/staging/g
Free memory region, if gb_lights_channel_config is not successful.
Signed-off-by: Arvind Yadav
---
drivers/staging/greybus/light.c | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/greybus/light.c b/drivers/staging/greybus/light.c
index 3f4148c
kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/edac/sb_edac.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c
index dc05916..2b9e831 100644
--- a/d
kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/edac/i7core_edac.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c
index c16c3b9..054f361
kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav
---
drivers/edac/sb_edac.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c
index dc05916..2b9e831 100644
--- a/drivers/edac/sb_edac.c
+++ b/drivers
kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav
---
drivers/edac/i7core_edac.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c
index c16c3b9..054f361 100644
--- a/drivers/edac
kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/edac/skx_edac.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/edac/skx_edac.c b/drivers/edac/skx_edac.c
index 16dea97..a7b25bb
kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav
---
drivers/edac/skx_edac.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/edac/skx_edac.c b/drivers/edac/skx_edac.c
index 16dea97..a7b25bb 100644
--- a/drivers/edac/skx_edac.c
+++ b
kasprintf() can fail here and we must check its return value.
Arvind Yadav (3):
[PATCH 1/3] EDAC: i7core: Handle return value of kasprintf
[PATCH 2/3] EDAC: sb_edac: Handle return value of kasprintf
[PATCH 3/3] EDAC: skx_edac: Handle return value of kasprintf
drivers/edac/i7core_edac.c
kasprintf() can fail here and we must check its return value.
Arvind Yadav (3):
[PATCH 1/3] EDAC: i7core: Handle return value of kasprintf
[PATCH 2/3] EDAC: sb_edac: Handle return value of kasprintf
[PATCH 3/3] EDAC: skx_edac: Handle return value of kasprintf
drivers/edac/i7core_edac.c
Use snprintf to avoid unnecessary initializations, avoid calling kfree.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
changes in v2:
Remove kasprintf instead of error checking.
drivers/base/power/opp/debugfs.c | 7 +++
1 file changed, 3 insertions(+), 4 del
Use snprintf to avoid unnecessary initializations, avoid calling kfree.
Signed-off-by: Arvind Yadav
---
changes in v2:
Remove kasprintf instead of error checking.
drivers/base/power/opp/debugfs.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers
devm_kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
changes in v2:
Set return 'ret' to -ENOMEM.
sound/soc/fsl/fsl-asoc-card.c | 4
1 file changed, 4 insertions(+)
diff --git a/sound/soc/fsl/fs
devm_kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav
---
changes in v2:
Set return 'ret' to -ENOMEM.
sound/soc/fsl/fsl-asoc-card.c | 4
1 file changed, 4 insertions(+)
diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl
devm_kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
changes in v2 :
Set return 'err' to -ENOMEM.
drivers/gpio/gpio-brcmstb.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/gpi
devm_kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav
---
changes in v2 :
Set return 'err' to -ENOMEM.
drivers/gpio/gpio-brcmstb.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/gpio/gpio-brcmstb.c b/drivers/gpio/gpio
devm_kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
sound/soc/fsl/fsl-asoc-card.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c
index 2db4d0c..8
devm_kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav
---
sound/soc/fsl/fsl-asoc-card.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c
index 2db4d0c..86f240b 100644
--- a/sound/soc/fsl
devm_kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
sound/soc/omap/omap-hdmi-audio.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sound/soc/omap/omap-hdmi-audio.c b/sound/soc/omap/omap-hdmi-audio.c
index 3
devm_kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav
---
sound/soc/omap/omap-hdmi-audio.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sound/soc/omap/omap-hdmi-audio.c b/sound/soc/omap/omap-hdmi-audio.c
index 3e9cc48..8eeac7c 100644
devm_kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
sound/soc/davinci/davinci-mcasp.c | 12
1 file changed, 12 insertions(+)
diff --git a/sound/soc/davinci/davinci-mcasp.c
b/sound/soc/davinci/d
devm_kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav
---
sound/soc/davinci/davinci-mcasp.c | 12
1 file changed, 12 insertions(+)
diff --git a/sound/soc/davinci/davinci-mcasp.c
b/sound/soc/davinci/davinci-mcasp.c
index f395bbc..d1a4aa2
devm_kasprintf() can fail here and we must check its return value.
Arvind Yadav (3):
[PATCH 1/3] ASoC: davinci-mcasp: Handle return value of devm_kasprintf
[PATCH 2/3] ASoC: fsl-asoc-card: Handle return value of devm_kasprintf
[PATCH 3/3] ASoC: omap-hdmi-audio: Handle return value
devm_kasprintf() can fail here and we must check its return value.
Arvind Yadav (3):
[PATCH 1/3] ASoC: davinci-mcasp: Handle return value of devm_kasprintf
[PATCH 2/3] ASoC: fsl-asoc-card: Handle return value of devm_kasprintf
[PATCH 3/3] ASoC: omap-hdmi-audio: Handle return value
kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
changes in v2 :
Calling coda_free_framebuffers to release already allocated buffers.
drivers/media/platform/coda/coda-bit.c | 4
1 file changed, 4 inse
kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav
---
changes in v2 :
Calling coda_free_framebuffers to release already allocated buffers.
drivers/media/platform/coda/coda-bit.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers
kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/irqchip/irq-gic.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c
index 651d726..ec4a7e6
kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/irqchip/irq-gic-v3-its-platform-msi.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/irqchip/irq-gic-v3-its-platform-msi.c
b/drivers/irqchip/i
kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav
---
drivers/irqchip/irq-gic.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c
index 651d726..ec4a7e6 100644
--- a/drivers/irqchip/irq-gic.c
kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav
---
drivers/irqchip/irq-gic-v3-its-platform-msi.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/irqchip/irq-gic-v3-its-platform-msi.c
b/drivers/irqchip/irq-gic-v3-its-platform-msi.c
index
kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/irqchip/irq-gic-v3-its-pci-msi.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/irqchip/irq-gic-v3-its-pci-msi.c
b/drivers/irqchip/irq-gic-v3-i
kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav
---
drivers/irqchip/irq-gic-v3-its-pci-msi.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/irqchip/irq-gic-v3-its-pci-msi.c
b/drivers/irqchip/irq-gic-v3-its-pci-msi.c
index 14a8c0a
kasprintf() can fail here and we must check its return value.
Arvind Yadav (4):
[PATCH 1/4] irqchip/gic-v3-its: Handle return value of kasprintf
[PATCH 2/4] irqchip/gic-v3-its-platform-msi: Handle return value of kasprintf
[PATCH 3/4] irqchip/gic: Handle return value of kasprintf
[PATCH 4
kasprintf() can fail here and we must check its return value.
Arvind Yadav (4):
[PATCH 1/4] irqchip/gic-v3-its: Handle return value of kasprintf
[PATCH 2/4] irqchip/gic-v3-its-platform-msi: Handle return value of kasprintf
[PATCH 3/4] irqchip/gic: Handle return value of kasprintf
[PATCH 4
kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/media/pci/cx23885/cx23885-input.c | 15 +--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/drivers/media/pci/cx23885/cx23885-inpu
kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav
---
drivers/media/pci/cx23885/cx23885-input.c | 15 +--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/drivers/media/pci/cx23885/cx23885-input.c
b/drivers/media/pci/cx23885
kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/media/platform/coda/coda-bit.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/media/platform/coda/coda-bit.c
b/drivers/media/platform/coda/coda
kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav
---
drivers/media/platform/coda/coda-bit.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/media/platform/coda/coda-bit.c
b/drivers/media/platform/coda/coda-bit.c
index 291c409..8d78183
kasprintf() can fail here and we must check its return value.
Arvind Yadav (2):
[PATCH 1/2][media] coda: Handle return value of kasprintf
[PATCH 2/2][media] cx23885: Handle return value of kasprintf
drivers/media/pci/cx23885/cx23885-input.c | 15 +--
drivers/media/platform/coda
kasprintf() can fail here and we must check its return value.
Arvind Yadav (2):
[PATCH 1/2][media] coda: Handle return value of kasprintf
[PATCH 2/2][media] cx23885: Handle return value of kasprintf
drivers/media/pci/cx23885/cx23885-input.c | 15 +--
drivers/media/platform/coda
kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/gpu/drm/tegra/dc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c
index 4df3911..f3214a1
kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav
---
drivers/gpu/drm/tegra/dc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c
index 4df3911..f3214a1 100644
--- a/drivers/gpu/drm/tegra/dc.c
Free memory region, if drm_crtc_init_with_planes is not successful.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/gpu/drm/drm_crtc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index 5af25ce..cd4e628
Free memory region, if drm_crtc_init_with_planes is not successful.
Signed-off-by: Arvind Yadav
---
drivers/gpu/drm/drm_crtc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index 5af25ce..cd4e628 100644
--- a/drivers/gpu/drm
Arvind Yadav (2):
[PATCH 1/2] drm: tegra: dc: Handle return value of kasprintf
[PATCH 2/2] drm: Release memory obtained by kasprintf
drivers/gpu/drm/drm_crtc.c | 1 +
drivers/gpu/drm/tegra/dc.c | 2 ++
2 files changed, 3 insertions(+)
--
1.9.1
Arvind Yadav (2):
[PATCH 1/2] drm: tegra: dc: Handle return value of kasprintf
[PATCH 2/2] drm: Release memory obtained by kasprintf
drivers/gpu/drm/drm_crtc.c | 1 +
drivers/gpu/drm/tegra/dc.c | 2 ++
2 files changed, 3 insertions(+)
--
1.9.1
devm_kasprintf() can fail here and we must check its return value.
Arvind Yadav (2):
[PATCH 1/2] gpio: brcmstb: Handle return value of devm_kasprintf
[PATCH 2/2] gpio: tb10x: Handle return value of devm_kasprintf
drivers/gpio/gpio-brcmstb.c | 3 +++
drivers/gpio/gpio-tb10x.c | 3 +++
2
devm_kasprintf() can fail here and we must check its return value.
Arvind Yadav (2):
[PATCH 1/2] gpio: brcmstb: Handle return value of devm_kasprintf
[PATCH 2/2] gpio: tb10x: Handle return value of devm_kasprintf
drivers/gpio/gpio-brcmstb.c | 3 +++
drivers/gpio/gpio-tb10x.c | 3 +++
2
devm_kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/gpio/gpio-brcmstb.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpio/gpio-brcmstb.c b/drivers/gpio/gpio-brcmstb.c
index dd0308c..1
devm_kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/gpio/gpio-tb10x.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpio/gpio-tb10x.c b/drivers/gpio/gpio-tb10x.c
index 091ffaa..ac6f2a9
devm_kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav
---
drivers/gpio/gpio-brcmstb.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpio/gpio-brcmstb.c b/drivers/gpio/gpio-brcmstb.c
index dd0308c..1227d6e 100644
--- a/drivers/gpio/gpio
devm_kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav
---
drivers/gpio/gpio-tb10x.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpio/gpio-tb10x.c b/drivers/gpio/gpio-tb10x.c
index 091ffaa..ac6f2a9 100644
--- a/drivers/gpio/gpio-tb10x.c
kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/phy/tegra/xusb.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/phy/tegra/xusb.c b/drivers/phy/tegra/xusb.c
index 3cbcb25..4307bf0 100644
--- a/d
kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav
---
drivers/phy/tegra/xusb.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/phy/tegra/xusb.c b/drivers/phy/tegra/xusb.c
index 3cbcb25..4307bf0 100644
--- a/drivers/phy/tegra/xusb.c
+++ b
Free memory region, if uart_add_one_port is not successful.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/tty/serial/serial_core.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_
Free memory region, if uart_add_one_port is not successful.
Signed-off-by: Arvind Yadav
---
drivers/tty/serial/serial_core.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c
index 3a14ccc..989adbb 100644
Free memory region, if nf_tables_set_alloc_name is not successful.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
net/netfilter/nf_tables_api.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c
Free memory region, if nf_tables_set_alloc_name is not successful.
Signed-off-by: Arvind Yadav
---
net/netfilter/nf_tables_api.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c
index 9299271..393e37e 100644
kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/base/power/opp/debugfs.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/base/power/opp/debugfs.c b/drivers/base/power/opp/deb
kasprintf() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav
---
drivers/base/power/opp/debugfs.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/base/power/opp/debugfs.c b/drivers/base/power/opp/debugfs.c
index 81cf120..226d6ae 100644
Free memory region, if arm_pmu_acpi_probe is not successful.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/perf/arm_pmu_acpi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/perf/arm_pmu_acpi.c b/drivers/perf/arm_pmu_acpi.c
index 0a9b787..3303dd8
Free memory region, if arm_pmu_acpi_probe is not successful.
Signed-off-by: Arvind Yadav
---
drivers/perf/arm_pmu_acpi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/perf/arm_pmu_acpi.c b/drivers/perf/arm_pmu_acpi.c
index 0a9b787..3303dd8 100644
--- a/drivers/perf/arm_pmu_acpi.c
xattr_handler are not supposed to change at runtime.
"struct super_block" working with xattr_handler provided
by work with const xattr_handler. So mark
the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
fs/9p/xattr.c | 6 +++---
1
xattr_handler are not supposed to change at runtime.
"struct super_block" working with xattr_handler provided
by work with const xattr_handler. So mark
the non-const structs as const.
Signed-off-by: Arvind Yadav
---
fs/9p/xattr.c | 6 +++---
1 file changed, 3 insertions(+), 3
xattr_handler are not supposed to change at runtime.
"struct super_block" working with xattr_handler provided
by work with const xattr_handler. So mark
the non-const structs as const
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
fs/orangefs/xattr.c | 2 +-
1
xattr_handler are not supposed to change at runtime.
"struct super_block" working with xattr_handler provided
by work with const xattr_handler. So mark
the non-const structs as const
Signed-off-by: Arvind Yadav
---
fs/orangefs/xattr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletio
Sorry for noise, Please Ignore this. :(
On Thursday 31 August 2017 03:16 PM, Arvind Yadav wrote:
drm_fb_helper_funcs are not supposed to change at runtime.
All functions working with drm_fb_helper_funcs provided by
work with const drm_fb_helper_funcs.
So mark the non-const structs as const
Sorry for noise, Please Ignore this. :(
On Thursday 31 August 2017 03:16 PM, Arvind Yadav wrote:
drm_fb_helper_funcs are not supposed to change at runtime.
All functions working with drm_fb_helper_funcs provided by
work with const drm_fb_helper_funcs.
So mark the non-const structs as const
drm_fb_helper_funcs are not supposed to change at runtime.
All functions working with drm_fb_helper_funcs provided by
work with const drm_fb_helper_funcs.
So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/staging/vboxvideo/vbox_fb
drm_fb_helper_funcs are not supposed to change at runtime.
All functions working with drm_fb_helper_funcs provided by
work with const drm_fb_helper_funcs.
So mark the non-const structs as const.
Signed-off-by: Arvind Yadav
---
drivers/staging/vboxvideo/vbox_fb.c | 2 +-
1 file changed, 1
super_operations are not supposed to change at runtime.
"struct super_block" working with super_operations provided
by work with const super_operations. So mark
the non-const structs as const
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
fs/f2fs/super.c | 2 +-
1
super_operations are not supposed to change at runtime.
"struct super_block" working with super_operations provided
by work with const super_operations. So mark
the non-const structs as const
Signed-off-by: Arvind Yadav
---
fs/f2fs/super.c | 2 +-
1 file changed, 1 insertion(+),
driver_attribute are not supposed to change at runtime.
Functions driver_create_file/driver_remove_file are working with
const driver_attribute. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/staging/media/atomisp/pci/at
driver_attribute are not supposed to change at runtime.
Functions driver_create_file/driver_remove_file are working with
const driver_attribute. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav
---
drivers/staging/media/atomisp/pci/atomisp2/atomisp_drvfs.c | 2 +-
1 file
driver_attribute are not supposed to change at runtime.
Functions driver_create_file/driver_remove_file are working with
const driver_attribute. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/platform/x86/thinkpad_acpi.c | 2 +-
driver_attribute are not supposed to change at runtime.
Functions driver_create_file/driver_remove_file are working with
const driver_attribute. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav
---
drivers/platform/x86/thinkpad_acpi.c | 2 +-
1 file changed, 1 insertion(+), 1
Here, prototype of thermal_zone_device_register is not matching
with static inline thermal_zone_device_register. One is using
const thermal_zone_params. Other is using non-const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
include/linux/thermal.h | 2 +-
1 file chan
Here, prototype of thermal_zone_device_register is not matching
with static inline thermal_zone_device_register. One is using
const thermal_zone_params. Other is using non-const.
Signed-off-by: Arvind Yadav
---
include/linux/thermal.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff
platform_suspend_ops are not supposed to change at runtime.
Functions suspend_set_ops working with const platform_suspend_ops.
So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
arch/powerpc/sysdev/ppc4xx_cpm.c | 2 +-
1 file changed, 1 ins
platform_suspend_ops are not supposed to change at runtime.
Functions suspend_set_ops working with const platform_suspend_ops.
So mark the non-const structs as const.
Signed-off-by: Arvind Yadav
---
arch/powerpc/sysdev/ppc4xx_cpm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff
platform_suspend_ops are not supposed to change at runtime.
Functions suspend_set_ops working with const platform_suspend_ops.
So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
arch/arm/mach-mxs/pm.c | 2 +-
1 file changed, 1 insertion
platform_suspend_ops are not supposed to change at runtime.
Functions suspend_set_ops working with const platform_suspend_ops.
So mark the non-const structs as const.
Signed-off-by: Arvind Yadav
---
arch/arm/mach-mxs/pm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch
rhashtable_params are not supposed to change at runtime. All
Functions rhashtable_* working with const rhashtable_params
provided by . So mark the non-const structs
as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
fs/gfs2/glock.c | 2 +-
1 file changed, 1 insertion
rhashtable_params are not supposed to change at runtime. All
Functions rhashtable_* working with const rhashtable_params
provided by . So mark the non-const structs
as const.
Signed-off-by: Arvind Yadav
---
fs/gfs2/glock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs
rhashtable_params are not supposed to change at runtime. All
Functions rhashtable_* working with const rhashtable_params
provided by . So mark the non-const structs
as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
net/rds/bind.c | 2 +-
1 file changed, 1 insertion
rhashtable_params are not supposed to change at runtime. All
Functions rhashtable_* working with const rhashtable_params
provided by . So mark the non-const structs
as const.
Signed-off-by: Arvind Yadav
---
net/rds/bind.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net
rhashtable_params are not supposed to change at runtime. All
Functions rhashtable_* working with const rhashtable_params
provided by . So mark the non-const structs
as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
net/netfilter/nf_nat_core.c | 2 +-
1 file chan
rhashtable_params are not supposed to change at runtime. All
Functions rhashtable_* working with const rhashtable_params
provided by . So mark the non-const structs
as const.
Signed-off-by: Arvind Yadav
---
net/netfilter/nf_nat_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff
vmw_fence_ops are not supposed to change at runtime. Functions
"dma_fence_init" working with const vmw_fence_ops provided
by . So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | 2 +-
1
vmw_fence_ops are not supposed to change at runtime. Functions
"dma_fence_init" working with const vmw_fence_ops provided
by . So mark the non-const structs as const.
Signed-off-by: Arvind Yadav
---
drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | 2 +-
1 file changed, 1 insertion(+),
iommu_ops are not supposed to change at runtime.
Functions 'bus_set_iommu' working with const iommu_ops provided
by . So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/iommu/s390-iommu.c | 2 +-
1 file changed, 1 insertion(+), 1 de
iommu_ops are not supposed to change at runtime.
Functions 'bus_set_iommu' working with const iommu_ops provided
by . So mark the non-const structs as const.
Signed-off-by: Arvind Yadav
---
drivers/iommu/s390-iommu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers
iommu_ops are not supposed to change at runtime.
Functions 'iommu_device_set_ops' and 'bus_set_iommu' working with
const iommu_ops provided by . So mark the non-const
structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/iommu/exynos-iommu.c | 4 ++--
iommu_ops are not supposed to change at runtime.
Functions 'iommu_device_set_ops' and 'bus_set_iommu' working with
const iommu_ops provided by . So mark the non-const
structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/iommu/mtk_iommu.c| 4 ++--
d
iommu_ops are not supposed to change at runtime.
Functions 'iommu_device_set_ops' and 'bus_set_iommu' working with
const iommu_ops provided by . So mark the non-const
structs as const.
Signed-off-by: Arvind Yadav
---
drivers/iommu/exynos-iommu.c | 4 ++--
1 file changed, 2 insertions(+), 2
iommu_ops are not supposed to change at runtime.
Functions 'iommu_device_set_ops' and 'bus_set_iommu' working with
const iommu_ops provided by . So mark the non-const
structs as const.
Signed-off-by: Arvind Yadav
---
drivers/iommu/mtk_iommu.c| 4 ++--
drivers/iommu/mtk_iommu_v1.c | 4
iommu_ops are not supposed to change at runtime.
Functions 'iommu_device_set_ops' and 'bus_set_iommu' working with
const iommu_ops provided by . So mark the non-const
structs as const.
Arvind Yadav (3):
[PATCH 1/3] iommu: exynos: constify iommu_ops
[PATCH 2/3] iommu: mtk: constify iommu_ops
iommu_ops are not supposed to change at runtime.
Functions 'iommu_device_set_ops' and 'bus_set_iommu' working with
const iommu_ops provided by . So mark the non-const
structs as const.
Arvind Yadav (3):
[PATCH 1/3] iommu: exynos: constify iommu_ops
[PATCH 2/3] iommu: mtk: constify iommu_ops
mtd_partition are not supposed to change at runtime.
Functions 'mtd_device_parse_register' working with const mtd_partition
provided by . So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/mtd/devices/lart.c | 2 +-
drivers/mt
mtd_partition are not supposed to change at runtime.
Functions 'mtd_device_parse_register' working with const mtd_partition
provided by . So mark the non-const structs as const.
Signed-off-by: Arvind Yadav
---
drivers/mtd/devices/lart.c | 2 +-
drivers/mtd/maps/cfi_flagadm.c | 2
701 - 800 of 3336 matches
Mail list logo