Re: [PATCH] ALSA: sound/isa: constify snd_kcontrol_new structures

2017-05-17 Thread Bhumika Goyal
On Wed, May 17, 2017 at 5:50 PM, Takashi Iwai <ti...@suse.de> wrote: > On Wed, 17 May 2017 13:38:56 +0200, > Bhumika Goyal wrote: >> >> Declare snd_kcontrol_new structures as const as they are only passed an >> argument to the function snd_ctl_new1. This ar

[PATCH 0/2] drivers: net: add const to mii_phy_ops structures

2017-06-08 Thread Bhumika Goyal
The object references of mii_phy_ops structures are only stored in the ops field of a mii_phy_def structure. This ops field is of type const. So, mii_phy_ops structures having similar properties can be declared as const. Bhumika Goyal (2): drivers/net/sungem: add const to mii_phy_ops structures

[PATCH 1/2] drivers/net/sungem: add const to mii_phy_ops structures

2017-06-08 Thread Bhumika Goyal
The object references of mii_phy_ops structures are only stored in the ops field of a mii_phy_def structure. This ops field is of type const. So, mii_phy_ops structures having similar properties can be declared as const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drive

[PATCH 2/2] drivers: net: emac: add const to mii_phy_ops structures

2017-06-08 Thread Bhumika Goyal
The object references of mii_phy_ops structures are only stored in the ops field of a mii_phy_def structure. This ops field is of type const. So, mii_phy_ops structures having similar properties can be declared as const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/net/et

[PATCH v2] platform/x86: ideapad-laptop: constify rfkill_ops structure

2017-06-09 Thread Bhumika Goyal
Add const to rfkill_ops structure as it is only passed as an argument to the functions rfkill_alloc. This argument is of type const, so annotate the structure with const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- Changes since v1: * Split the changes to one patch per

[PATCH v2] platform/x86: samsung-laptop: constify rfkill_ops structures

2017-06-09 Thread Bhumika Goyal
Add const to rfkill_ops structures that are only passed as an argument to the functions rfkill_alloc or samsung_new_rfkill. These arguments are of type const, so such structures can be annotated with const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- Changes since v1: *

[PATCH v2] dell-rbtn: constify rfkill_ops structures

2017-06-08 Thread Bhumika Goyal
Add const to rfkill_ops structures that are only passed as an argument to the functions rfkill_alloc or samsung_new_rfkill. These arguments are of type const, so such structures can be annotated with const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- Changes since v1: *

[PATCH 0/2] platform/x86: add const to thermal_cooling_device_ops structures

2017-06-21 Thread Bhumika Goyal
Declare thermal_cooling_device_ops structures as const. Bhumika Goyal (2): acerhdf: add const to thermal_cooling_device_ops structure intel_menlow: add const to thermal_cooling_device_ops structure drivers/platform/x86/acerhdf.c | 2 +- drivers/platform/x86/intel_menlow.c | 2 +- 2

[PATCH 2/2] intel_menlow: add const to thermal_cooling_device_ops structure

2017-06-21 Thread Bhumika Goyal
Declare thermal_cooling_device_ops structure as const as it is only passed as an argument to the function thermal_cooling_device_register and this argument is of type const. So, declare the structure as const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/platfo

[PATCH 1/2] acerhdf: add const to thermal_cooling_device_ops structure

2017-06-21 Thread Bhumika Goyal
Declare thermal_cooling_device_ops structure as const as it is only passed as an argument to the function thermal_cooling_device_register and this argument is of type const. So, declare the structure as const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/platform/x86/ace

[PATCH v2 0/2] drm: constify drm_encoder_helper_funcs structures

2017-06-21 Thread Bhumika Goyal
Add const to drm_encoder_helper_funcs structures. Changes in v2 - * Let the line exceed over 80 characters while adding const in analogix_dp-rockchip.c file. Bhumika Goyal (2): drm/rockchip: add const to drm_encoder_helper_funcs structures drm/sun4i: add const to drm_encoder_helper_funcs

[PATCH v2 2/2] drm/sun4i: add const to drm_encoder_helper_funcs structures

2017-06-21 Thread Bhumika Goyal
Add const to drm_encoder_helper_funcs structures as they are only passed as an argument to the function drm_encoder_helper_add and this argument is of type const. So, add const to these structures. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- Changes in v2 - * No change drivers/g

[PATCH v2 1/2] drm/rockchip: add const to drm_encoder_helper_funcs structures

2017-06-21 Thread Bhumika Goyal
Add const to drm_encoder_helper_funcs structures as they are only passed as an argument to the function drm_encoder_helper_add and this argument is of type const. So, add const to these structures. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- Changes in v2 - * Let the line exceed o

[PATCH] thermal/intel_powerclamp: add const to thermal_cooling_device_ops structure

2017-06-21 Thread Bhumika Goyal
Declare thermal_cooling_device_ops structure as const as it is only passed as an argument to the function thermal_cooling_device_register and this argument is of type const. So, declare the structure as const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/t

Re: [PATCH 1/2] drm/rockchip: add const to drm_encoder_helper_funcs structures

2017-06-21 Thread Bhumika Goyal
On Wed, Jun 21, 2017 at 6:18 AM, Mark yao <mark@rock-chips.com> wrote: > On 2017年06月20日 21:07, Bhumika Goyal wrote: >> >> Add const to drm_encoder_helper_funcs structures as they are only passed >> as an argument to the function drm_encoder_helper_add and this argum

[PATCH] iwlwifi: mvm: add const to thermal_cooling_device_ops structure

2017-06-21 Thread Bhumika Goyal
Declare thermal_cooling_device_ops structure as const as it is only passed as an argument to the function thermal_cooling_device_register and this argument is of type const. So, declare the structure as const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/net/wireless

[PATCH] drm/etnaviv: add const to thermal_cooling_device_ops structure

2017-06-21 Thread Bhumika Goyal
Declare thermal_cooling_device_ops structure as const as it is only passed as an argument to the function thermal_of_cooling_device_register and this argument is of type const. So, declare the structure as const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/gpu/drm/e

[PATCH] ath10k: add const to thermal_cooling_device_ops structure

2017-06-21 Thread Bhumika Goyal
Declare thermal_cooling_device_ops structure as const as it is only passed as an argument to the function thermal_cooling_device_register and this argument is of type const. So, declare the structure as const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/net/wireless/ath/

[PATCH 0/2] drm: constify drm_encoder_helper_funcs structures

2017-06-20 Thread Bhumika Goyal
Add const to drm_encoder_helper_funcs structures. Bhumika Goyal (2): drm/rockchip: add const to drm_encoder_helper_funcs structures drm/sun4i: add const to drm_encoder_helper_funcs structures drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 3 ++- drivers/gpu/drm/rockchip/inno_hdmi.c

[PATCH 2/2] drm/sun4i: add const to drm_encoder_helper_funcs structures

2017-06-20 Thread Bhumika Goyal
Add const to drm_encoder_helper_funcs structures as they are only passed as an argument to the function drm_encoder_helper_add and this argument is of type const. So, add const to these structures. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/gpu/drm/sun4i/sun4i_rgb

[PATCH 1/2] drm/rockchip: add const to drm_encoder_helper_funcs structures

2017-06-20 Thread Bhumika Goyal
Add const to drm_encoder_helper_funcs structures as they are only passed as an argument to the function drm_encoder_helper_add and this argument is of type const. So, add const to these structures. Also, fix line over 80 characters warning while adding const. Signed-off-by: Bhumika Goyal <bh

[PATCH 0/2] ALSA: add const to snd_ratnum structures

2017-06-19 Thread Bhumika Goyal
Declare snd_ratnum structures as const as their reference is only stored in the rate field of a snd_pcm_hw_constraint_ratnums structure. This field is of type const, so snd_ratnum structures can be made const. Bhumika Goyal (2): ALSA: sound/isa: constify snd_ratnum structures ALSA: sound/pci

[PATCH 1/2] ALSA: sound/isa: constify snd_ratnum structures

2017-06-19 Thread Bhumika Goyal
Declare snd_ratnum structures as const as their reference is only stored in the rate field of a snd_pcm_hw_constraint_ratnums structure. This field is of type const, so snd_ratnum structures can be made const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- sound/isa/gus/gus_pcm

[PATCH 2/2] ALSA: sound/pci: add const to snd_ratnum structures

2017-06-19 Thread Bhumika Goyal
Declare snd_ratnum structures as const as their reference is only stored in the rate field of a snd_pcm_hw_constraint_ratnums structure. This field is of type const, so snd_ratnum structures can be made const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- sound/pci/bt87x.c

[PATCH] cw1200: add const to hwbus_ops structures

2017-06-23 Thread Bhumika Goyal
Declare hwbus_ops structures as const as they are only passed as an argument to the function cw1200_core_probe. This argument is of type const. So, make these structures const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/net/wireless/st/cw1200/cw1200_sdio.c | 2 +- drive

Re: [PATCH] ALSA: sound/isa: constify snd_kcontrol_new structures

2017-05-21 Thread Bhumika Goyal
On Sun, May 21, 2017 at 12:39 PM, Takashi Iwai <ti...@suse.de> wrote: > On Wed, 17 May 2017 14:33:45 +0200, > Bhumika Goyal wrote: >> >> On Wed, May 17, 2017 at 5:50 PM, Takashi Iwai <ti...@suse.de> wrote: >> > On Wed, 17 May 2017 13:38:56 +0200, >&g

Re: [PATCH] ALSA: sound/isa: constify snd_kcontrol_new structures

2017-05-22 Thread Bhumika Goyal
On Mon, May 22, 2017 at 11:59 AM, Takashi Iwai <ti...@suse.de> wrote: > On Mon, 22 May 2017 08:20:45 +0200, > Julia Lawall wrote: >> >> >> >> On Mon, 22 May 2017, Bhumika Goyal wrote: >> >> > On Sun, May 21, 2017 at 12:39 PM, Takashi Iwai <ti.

[PATCH] ALSA: declare snd_kcontrol_new structures as const

2017-05-27 Thread Bhumika Goyal
/tas.c - powerpc sound/mips/{hal2.c/sgio2audio.c} - mips sound/ppc/{awacs.c/beep.c/tumbler.c} - powerpc sound/soc/sh/siu_dai.c - sh Could not find an architecture to compile sound/sh/aica.c. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- sound/aoa/codecs/tas.c

Re: [PATCH] ALSA: declare snd_kcontrol_new structures as const

2017-05-30 Thread Bhumika Goyal
On Tue, May 30, 2017 at 2:24 PM, Takashi Iwai <ti...@suse.de> wrote: > On Sat, 27 May 2017 16:46:15 +0200, > Bhumika Goyal wrote: >> >> Declare snd_kcontrol_new structures as const as they are only passed an >> argument to the function snd_ctl_new1. This ar

Re: [PATCH] ALSA: declare snd_kcontrol_new structures as const

2017-05-30 Thread Bhumika Goyal
On Tue, May 30, 2017 at 2:26 PM, Julia Lawall <julia.law...@lip6.fr> wrote: > > > On Tue, 30 May 2017, Takashi Iwai wrote: > >> On Sat, 27 May 2017 16:46:15 +0200, >> Bhumika Goyal wrote: >> > >> > Declare snd_kcontrol_new structures a

[PATCH] platform/x86: constify rfkill_ops structures

2017-06-08 Thread Bhumika Goyal
Add const to rfkill_ops structures that are only passed as an argument to the functions rfkill_alloc or samsung_new_rfkill. These arguments are of type const, so such structures can be annotated with const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/platform/x86/dell-

Re: [PATCH] platform/x86: constify rfkill_ops structures

2017-06-08 Thread Bhumika Goyal
On Thu, Jun 8, 2017 at 6:08 PM, Andy Shevchenko <andy.shevche...@gmail.com> wrote: > On Thu, Jun 8, 2017 at 2:17 PM, Bhumika Goyal <bhumi...@gmail.com> wrote: >> Add const to rfkill_ops structures that are only passed as an argument >> to the functions rfkill_

[PATCH] ata: declare ata_port_info structures as const

2017-06-09 Thread Bhumika Goyal
ata_port_info structures are either copied to other objects or their references are stored in objects of type const. So, ata_port_info structures having similar usage pattern can be made const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/ata/pata_rdc.c | 2 +- drive

[PATCH] ALSA: oxygen: Xonar DG(X): make model_xonar_dg const

2017-09-14 Thread Bhumika Goyal
Make this const as it not modified anywhere. It is only used during a copy operation. Also, add const to the declaration in header. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- sound/pci/oxygen/xonar_dg.h | 2 +- sound/pci/oxygen/xonar_dg_mixer.c | 2 +- 2 files chan

[PATCH] video: fbdev: make fb_var_screeninfo static, const and __initconst

2017-09-14 Thread Bhumika Goyal
Make these structures static as they are not referenced in any other file. Make them const as they are used only during a copy operation. Replace __initdata with __initconst in file igafb.c to avoid section conflict error. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- The c

[PATCH] ASoC: Intel: atom: make sst_platform_compr_ops const

2017-09-13 Thread Bhumika Goyal
Make this const as it not modified in the file referencing it. It only stored in the const field 'compr_ops' of a snd_soc_platform_driver structure. Also, add const to the declaration in the header file. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- sound/soc/intel/atom/sst-mfld-pl

[PATCH] [media] saa7146: make saa7146_use_ops const

2017-09-13 Thread Bhumika Goyal
Make these const as they are not modified in the file referencing them. They are only used when their function pointer fields invokes a function and therefore none of the structure fields are getting modified. Also, add a const to the declaration in the header. Signed-off-by: Bhumika Goyal <bh

[PATCH] ath10k: make ath10k_hw_ce_regs const

2017-09-13 Thread Bhumika Goyal
Make them const as they are not modified in the file referencing them. They are only stored in the const field 'hw_ce_reg' of an ath10k structure. Also, make the declarations in the header const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/net/wireless/ath/ath10k/hw

[PATCH] ARM: OMAP2+: make omap_dma_dev_info __initdata

2017-09-18 Thread Bhumika Goyal
Make this __initdata as it is only modified only during the initialisation phase in the function omap2_system_dma_init_dev and after this it is not referenced anywhere in the kernel. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- arch/arm/mach-omap2/dma.c | 2 +- 1 file chan

[PATCH] x86/pci/intel_mid_pci: make intel_mid_pci_ops const and __initconst

2017-09-18 Thread Bhumika Goyal
Make this const as it is only used during a copy operation. This usage is inside init function and the structure is not referenced after initialisation, so make it __initconst too. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- arch/x86/pci/intel_mid_pci.c | 2 +- 1 file chan

[PATCH] parport: make parport_ip32_ops const and __initconst

2017-09-18 Thread Bhumika Goyal
Make this const as it is only used during a copy operation. This usage is inside init function and the structure is not referenced after initialisation, so make it __initconst too. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/parport/parport_ip32.c | 2 +- 1 file chan

[PATCH] x86/numachip: make numachip2_clockevent const and __initconst

2017-09-18 Thread Bhumika Goyal
Make this const as it is only used during a copy operation. This usage is during the init phase, so annotate the structure with __initconst too. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/clocksource/numachip.c | 2 +- 1 file changed, 1 insertion

[PATCH] powerpc: make irq_chip const, __initdata and __initconst

2017-09-18 Thread Bhumika Goyal
-off-by: Bhumika Goyal <bhumi...@gmail.com> --- arch/powerpc/sysdev/ehv_pic.c | 2 +- arch/powerpc/sysdev/mpic.c| 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/sysdev/ehv_pic.c b/arch/powerpc/sysdev/ehv_pic.c index 48866e6..12a54f3 100644 --- a/arch/p

[PATCH] qe/ic: make qe_ic_irq_chip const and __initconst

2017-09-18 Thread Bhumika Goyal
Make this const as it is used only as a copy operation. This usage is inside an __init function, so make it __initconst too. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- Cross-compiled for powerpc. drivers/soc/fsl/qe/qe_ic.c | 2 +- 1 file changed, 1 ins

[PATCH v2] MN10300: make resource __initdata

2017-09-19 Thread Bhumika Goyal
Make code_resource and data_resource __initdata as these are only modified during the init phase and after that the structures and their fields are not referenced anywhere. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- Changes in v2: * Replace __initconst with __initdata in the s

[PATCH] m32r: make resource __initdata

2017-09-19 Thread Bhumika Goyal
Make code_resource and data_resource __initdata as these are only modified during the init phase and after that the structures and their fields are not referenced anywhere. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- arch/m32r/kernel/setup.c | 4 ++--

[PATCH] hexagon/time: make rtos_timer_device __initdata

2017-09-19 Thread Bhumika Goyal
Make this __initdata as it is only modified during the init phase and after that the structure and its fields are not referenced anywhere. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- Hexagon architecture was not found while cross-compiling, so the file is not compile-tested.

[PATCH] MN10300: make resource __initconst

2017-09-19 Thread Bhumika Goyal
Make code_resource and data_resource __initdata as these are only modified during the init phase and after that the structures and their fields are not referenced anywhere. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- arch/mn10300/kernel/setup.c | 4 ++--

[PATCH] x86/events/amd/iommu: make iommu_pmu const and __initconst

2017-09-19 Thread Bhumika Goyal
Make this const as it is only used during a copy operation. Also, make it __initconst as it is only used during the init phase and after this it is not referenced anywhere. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- arch/x86/events/amd/iommu.c | 2 +- 1 file changed, 1 insertion

[PATCH] ALSA: hrtimer: make hrtimer_hw const and __initconst

2017-09-19 Thread Bhumika Goyal
Make this const as it is only used during a copy operation. Also, make it __initconst as it is only used during the init phase and after this it is not referenced anywhere. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- sound/core/hrtimer.c | 2 +- 1 file changed, 1 insertion

[PATCH] apparmor: make allperms structure const

2017-09-19 Thread Bhumika Goyal
Make this structure const as it is only used as a copy operations in the files referencing it. Add const to the declaration in the header too. Structure found using a Coccinelle script and changes done by hand. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- security/apparmor/i

[PATCH] tty: serial: make sport_uart_ops static and const

2017-09-13 Thread Bhumika Goyal
Make this const as it is only stored in the const field 'ops' of an uart_port structure. It is not referenced in any other file and therefore make it static too. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- Compile-tested for blackfin. drivers/tty/

[PATCH] clk: tegra30: make tegra_clk_pll_params __ro_after_init

2017-10-02 Thread Bhumika Goyal
__ro_after_init. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/clk/tegra/clk-tegra30.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/clk/tegra/clk-tegra30.c b/drivers/clk/tegra/clk-tegra30.c index a2d163f..1ce7d76 100644 --- a/drivers/clk

[PATCH 1/2] ARM: davinci: make the function argument as const

2017-10-16 Thread Bhumika Goyal
to the prototype too. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- arch/arm/mach-davinci/common.c | 2 +- arch/arm/mach-davinci/include/mach/common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-davinci/common.c b/arch/arm/mach-davinci/common.c

[PATCH 2/2] ARM: davinci: make davinci_soc_info structures const

2017-10-16 Thread Bhumika Goyal
and the structures can be const. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- arch/arm/mach-davinci/da830.c | 2 +- arch/arm/mach-davinci/da850.c | 2 +- arch/arm/mach-davinci/dm355.c | 2 +- arch/arm/mach-davinci/dm365.c | 2 +- arch/arm/mach-davinci/dm644x

[PATCH 0/2] ARM: davinci: make function argument and structure const

2017-10-16 Thread Bhumika Goyal
Make the function argument of davinci_common_init const. After doing this change make the structures davinci_soc_info const. Bhumika Goyal (2): ARM: davinci: make the function argument as const ARM: davinci: make davinci_soc_info structures const arch/arm/mach-davinci/common.c

Re: [PATCH] stm class: make config_item_type const

2017-10-16 Thread Bhumika Goyal
On Mon, Oct 16, 2017 at 1:55 PM, Alexander Shishkin <alexander.shish...@linux.intel.com> wrote: > Bhumika Goyal <bhumi...@gmail.com> writes: > >> On Thu, Oct 12, 2017 at 2:12 PM, Bhumika Goyal <bhumi...@gmail.com> wrote: >>> This is a followup patch for:

Re: [PATCH] configfs: make config_item_type const

2017-10-16 Thread Bhumika Goyal
On Mon, Oct 16, 2017 at 2:43 PM, Christoph Hellwig <h...@lst.de> wrote: > On Thu, Oct 12, 2017 at 05:02:43PM +0200, Bhumika Goyal wrote: >> Actually, this patch is dependent on the patches in the links >> https://lkml.org/lkml/2017/10/11/375 and >> https://patchwo

[PATCH v2 11/15] stm class: make config_item_type const

2017-10-16 Thread Bhumika Goyal
Make config_item_type structures const as they are either passed to a function having the argument as const or used inside a if statement or stored in the const "ci_type" field of a config_item structure. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com&g

[PATCH v2 12/15] RDMA/cma: make config_item_type const

2017-10-16 Thread Bhumika Goyal
Make these structures const as they are either passed to the functions having the argument as const or stored as a reference in the "ci_type" const field of a config_item structure. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- * Changes in v2- Combine all the

[PATCH v2 06/15] PCI: endpoint: make config_item_type const

2017-10-16 Thread Bhumika Goyal
Make config_item_type structures const as they are either passed to a function having the argument as const or stored in the const "ci_type" field of a config_item structure. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- * Changes in v2- Combine

[PATCH v2 07/15] usb: gadget: configfs: make config_item_type const

2017-10-16 Thread Bhumika Goyal
Make config_item_type structures const as they are either passed to a function having the argument as const or stored in the const "ci_type" field of a config_item structure. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- * Changes in v2- Combine

[PATCH v2 05/15] ocfs2/cluster: make config_item_type const

2017-10-16 Thread Bhumika Goyal
Make these structures const as they are either passed to the functions having the argument as const or stored as a reference in the "ci_type" const field of a config_item structure. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- * Changes in

[PATCH v2 02/15] usb: gadget: make config_item_type structures const

2017-10-16 Thread Bhumika Goyal
Make these structures const as they are only passed to the const argument of the functions config_{group/item}_init_type_name. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- * Changes in v2- Combine all the followup patches and the constification patches into a series. drivers/usb/

[PATCH v2 00/15] make structure field, function arguments and structures const

2017-10-16 Thread Bhumika Goyal
Make the ci_type field and some function arguments as const. After this change, make config_item_type structures as const. * Changes in v2- Combine all the followup patches and the constification patches into a series. Bhumika Goyal (15): configfs: make ci_type field, some pointers

[PATCH v2 15/15] configfs: make config_item_type const

2017-10-16 Thread Bhumika Goyal
Make config_item_type structures const as they are either passed to a function having the argument as const or stored in the const "ci_type" field of a config_item structure. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- * Changes in v2- Combine

[PATCH v2 14/15] dlm: make config_item_type const

2017-10-16 Thread Bhumika Goyal
Make config_item_type structures const as they are either passed to a function having the argument as const or stored in the const "ci_type" field of a config_item structure. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- * Changes in v2- Combine

[PATCH v2 13/15] netconsole: make config_item_type const

2017-10-16 Thread Bhumika Goyal
Make these structures const as they are either passed to the functions having the argument as const or stored as a reference in the "ci_type" const field of a config_item structure. Done using Coccienlle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- * Changes in

[PATCH v2 10/15] nullb: make config_item_type const

2017-10-16 Thread Bhumika Goyal
Make these structures const as they are either passed to the functions having the argument as const or stored as a reference in the "ci_type" const field of a config_item structure. Done using Coccienlle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- * Changes in

[PATCH v2 09/15] ACPI: configfs: make config_item_type const

2017-10-16 Thread Bhumika Goyal
Make these structures const as they are either passed to the functions having the argument as const or stored as a reference in the "ci_type" const field of a config_item structure. Done using Coccienlle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- * Changes in

[PATCH v2 03/15] target: make config_item_type const

2017-10-16 Thread Bhumika Goyal
Make these structures const as they are either passed to the functions having the argument as const or stored as a reference in the "ci_type" const field of a config_item structure. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- * Changes in

[PATCH v2 04/15] iio: make function argument and some structures const

2017-10-16 Thread Bhumika Goyal
or they are stored in the const "ci_type" field of a config_item structure. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- * Changes in v2- Combine all the followup patches and the constification patches into a series. drivers/iio/dummy/iio_simple_dummy.c | 2 +- drivers/

[PATCH v2 08/15] nvmet: make config_item_type const

2017-10-16 Thread Bhumika Goyal
Make config_item_type structures const as they are either passed to a function having the argument as const or used inside an if statement or stored in the const "ci_type" field of a config_item structure. Done using Coccinelle Signed-off-by: Bhumika Goyal <bhumi...@gmail.com&g

[PATCH 2/2] [media] davinci: make ccdc_hw_device structures const

2017-10-17 Thread Bhumika Goyal
Make these structures const as they are only getting passed to the functions vpfe_{register/unregister}_ccdc_device having the argument as const. Structures found using Coccinelle and changes done by hand. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/media/platform/d

[PATCH 0/2] [media] davinci: make function arguments and structures const

2017-10-17 Thread Bhumika Goyal
Make some function arguments as const. After this changes make ccdc_hw_device structures as const. Bhumika Goyal (2): [media] davinci: make function arguments const [media] davinci: make ccdc_hw_device structures const drivers/media/platform/davinci/ccdc_hw_device.h | 4 ++-- drivers/media

[PATCH 1/2] [media] davinci: make function arguments const

2017-10-17 Thread Bhumika Goyal
. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/media/platform/davinci/ccdc_hw_device.h | 4 ++-- drivers/media/platform/davinci/vpfe_capture.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/media/platform/davinci/ccdc_hw_device.h b/drivers

[PATCH v2 01/15] configfs: make ci_type field, some pointers and function arguments const

2017-10-16 Thread Bhumika Goyal
to the argument of the function config_group_init_type_name which is now const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- * Changes in v2- Combine all the followup patches and the constification patches into a series. fs/configfs/dir.c| 10 +- fs/configfs/

[PATCH 1/2] CLK: SPEAr: make structure field and function argument as const

2017-10-17 Thread Bhumika Goyal
made const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/clk/spear/clk-aux-synth.c | 2 +- drivers/clk/spear/clk.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/spear/clk-aux-synth.c b/drivers/clk/spear/clk-aux-synth.c index f

[PATCH 2/2] CLK: SPEAr: make aux_clk_masks structures const

2017-10-17 Thread Bhumika Goyal
Make these const as they are either stored in the masks 'const' field of a clk_aux structure or passed to the function clk_register_aux having the argument as const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/clk/spear/clk-aux-synth.c | 2 +- drivers/clk

[PATCH 0/2] CLK: SPEAr: make structure field, function arg and strutcure const

2017-10-17 Thread Bhumika Goyal
Make structure field and function argument as const. After this change, make the structures as const. Bhumika Goyal (2): CLK: SPEAr: make structure field and function argument as const CLK: SPEAr: make aux_clk_masks structures const drivers/clk/spear/clk-aux-synth.c | 4 ++-- drivers/clk

Re: [PATCH] powerpc/eeh: make eeh_ops structures _ro_after_init

2017-10-13 Thread Bhumika Goyal
On Fri, Oct 13, 2017 at 6:08 PM, Julia Lawall <julia.law...@lip6.fr> wrote: > > > On Fri, 13 Oct 2017, Bhumika Goyal wrote: > >> These structures are passed to the eeh_ops_register function during the >> initialization phase. There they get stored in a structur

[PATCH 1/2] sound: oss: make the function argument as const

2017-10-13 Thread Bhumika Goyal
to the prototype too. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- sound/oss/dev_table.c | 2 +- sound/oss/dev_table.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/oss/dev_table.c b/sound/oss/dev_table.c index 6dad515..dbb9a3b 100644 --- a/sou

[PATCH 0/2] sound: oss: make the function argument and structure const

2017-10-13 Thread Bhumika Goyal
Make the function argument of function sound_install_audiodrv const. After this change, make the structures audio_driver const as they are only passed to the const argument (made const in Patch[1/2]) of the function sound_install_audiodrv . Bhumika Goyal (2): sound: oss: make the function

[PATCH 2/2] sound: oss: make audio_driver structure const

2017-10-13 Thread Bhumika Goyal
This is a followup patch for [PATCH 1/2]. Make these structures const as they are only passed to the const argument of the function sound_install_audiodrv. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- sound/oss/pas2_pcm.c | 2 +- sound/oss/waveartist.c | 2 +- 2 files chan

[PATCH] scsi: scsi_transport_fc: make the function argument as const

2017-10-13 Thread Bhumika Goyal
This is a followup patch for: https://lkml.org/lkml/2017/10/13/476 Make the function argument of fc_attach_transport as const as it is only stored in the const field 'f' (made const in the patch in the link) of a fc_internal structure. Signed-off-by: Bhumika Goyal <bhumi...@gmail.

[PATCH] scsi: scsi_transport_fc: make a field of fc_internal structure const

2017-10-13 Thread Bhumika Goyal
The 'f' field of the fc_internal structure do not modify the fields of the fc_function_template structure it points to. And there are no other pointers initialized with this field 'f'. So, the field 'f' is never modified and therefore make it const. Signed-off-by: Bhumika Goyal <bh

[PATCH] configfs: make ci_type field and some pointers const

2017-10-11 Thread Bhumika Goyal
-by: Bhumika Goyal <bhumi...@gmail.com> --- fs/configfs/dir.c| 8 fs/configfs/item.c | 2 +- fs/configfs/symlink.c| 4 ++-- include/linux/configfs.h | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/fs/configfs/dir.c b/fs/configfs/dir.c index 5

[PATCH] IB/cma: make config_item_type const

2017-10-12 Thread Bhumika Goyal
structure. Done using Coccienlle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/infiniband/core/cma_configfs.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/infiniband/core/cma_configfs.c b/drivers/infiniband/core/cma_configfs.c index

[PATCH] nvmet: make config_item_type const

2017-10-12 Thread Bhumika Goyal
uot; field of a config_item structure. Done using Coccinelle Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/nvme/target/configfs.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/nvme/target/configfs.c b/drivers/nvme/t

[PATCH] PCI: endpoint: make config_item_type const

2017-10-12 Thread Bhumika Goyal
ure. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/pci/endpoint/pci-ep-cfs.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/pci/endpoint/pci-ep-cfs.c b/drivers/pci/endpoint/pci-ep-cfs.c index 424fdd6

[PATCH] iio: make config_item_type const

2017-10-12 Thread Bhumika Goyal
as const (link 2,3,4) or they are stored in the const "ci_type" field of a config_item structure (link 1). Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/iio/dummy/iio_simple_dummy.c | 2 +- drivers/iio/industrialio-configfs.c| 2

[PATCH] target: make config_item_type const

2017-10-12 Thread Bhumika Goyal
structure. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/target/target_core_configfs.c | 14 +++--- drivers/target/target_core_stat.c | 16 2 files changed, 15 insertions(+), 15 deletions(-) diff --git

[PATCH] ocfs2/cluster: make config_item_type const

2017-10-12 Thread Bhumika Goyal
structure. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- fs/ocfs2/cluster/heartbeat.c | 4 ++-- fs/ocfs2/cluster/nodemanager.c | 8 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/h

[PATCH] ACPI: configfs: make config_item_type const

2017-10-12 Thread Bhumika Goyal
structure. Done using Coccienlle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/acpi/acpi_configfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/acpi_configfs.c b/drivers/acpi/acpi_configfs.c index 853bc7f..b588503 100644 --

[PATCH] nullb: make config_item_type const

2017-10-12 Thread Bhumika Goyal
structure. Done using Coccienlle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/block/null_blk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/block/null_blk.c b/drivers/block/null_blk.c index bf2c8ca..46b6008 100644 --- a/drivers/block/

[PATCH] stm class: make config_item_type const

2017-10-12 Thread Bhumika Goyal
uot; field of a config_item structure. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/hwtracing/stm/policy.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/hwtracing/stm/policy.c b/drivers/hwtracing/stm/policy

[PATCH] usb: gadget: configfs: make config_item_type const

2017-10-12 Thread Bhumika Goyal
ure. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/usb/gadget/configfs.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/usb/gadget/configfs.c b/drivers/usb/gadget/configfs.c index a22a892..c90a266 100644 --- a/dr

[PATCH] dlm: make config_item_type const

2017-10-12 Thread Bhumika Goyal
ure. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- fs/dlm/config.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/fs/dlm/config.c b/fs/dlm/config.c index 7211e82..1270551 100644 --- a/fs/dlm/config.c +++ b/fs/dlm/config.c @@

[PATCH] configfs: make config_item_type const

2017-10-12 Thread Bhumika Goyal
ure. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- samples/configfs/configfs_sample.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/configfs/configfs_sample.c b/samples/configfs/configfs_sample.c index 1ea3311..004a4e2 1006

[PATCH] target/iscsi: make config_item_type const

2017-10-12 Thread Bhumika Goyal
This is a followup patch for: https://patchwork.kernel.org/patch/649/ Make config_item_type structures const as they are only passed to the functions having the argument as const. Make the declaration const too. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/target

<    1   2   3   4   5   6   7   8   9   10   >