[PATCH] platform/x86: wmi: declare device_type structure as constant

2018-10-27 Thread Bhumika Goyal
The only usage of device_type structure is getting stored as a reference in the type field of device structure. This type field is declared const. Therefore, the device_type structure can never be modified and can be declared as const. Signed-off-by: Bhumika Goyal --- drivers/platform/x86/wmi.c

[PATCH 0/2] ARM: OMAP2+: CM: make some structures, function arguments and pointers as const

2017-11-06 Thread Bhumika Goyal
Make some pointers and function arguments as const. After this change, make the structures of type cm_ll_data as const. Bhumika Goyal (2): ARM: OMAP2+: CM: make some pointers and function arguments as const ARM: OMAP2+: CM: make cm_ll_data structures as const arch/arm/mach-omap2/cm.h

[PATCH 2/2] ARM: OMAP2+: CM: make cm_ll_data structures as const

2017-11-06 Thread Bhumika Goyal
Make these const as they are only getting passed to the functions cm_register and cm_unregister having the arguments as const. Signed-off-by: Bhumika Goyal --- arch/arm/mach-omap2/cm2xxx.c | 2 +- arch/arm/mach-omap2/cm33xx.c | 2 +- arch/arm/mach-omap2/cm3xxx.c | 2 +- arch/arm

[PATCH 1/2] ARM: OMAP2+: CM: make some pointers and function arguments as const

2017-11-06 Thread Bhumika Goyal
cm_unregister function as const as it is only used inside an if condition. Add const to the function prototypes too. Signed-off-by: Bhumika Goyal --- arch/arm/mach-omap2/cm.h| 4 ++-- arch/arm/mach-omap2/cm_common.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch

[PATCH 2/2] ACPI / PMIC: make intel_pmic_opregion_data structures const

2017-11-03 Thread Bhumika Goyal
Make these structures as const as they are only passed to the function intel_pmic_install_opregion_handler having the argument as const. Signed-off-by: Bhumika Goyal --- drivers/acpi/pmic/intel_pmic_bxtwc.c | 2 +- drivers/acpi/pmic/intel_pmic_chtwc.c | 2 +- drivers/acpi/pmic

[PATCH 0/2] ACPI / PMIC: make some structures and function argument as const

2017-11-03 Thread Bhumika Goyal
Make some structures and the argument of the function intel_pmic_install_opregion_handler as const. After this change, make the structures of type intel_pmic_opregion_data as const. Bhumika Goyal (2): ACPI / PMIC: Make some pointers, structure field and function argument as const

[PATCH 1/2] ACPI / PMIC: Make some pointers, structure field and function argument as const

2017-11-03 Thread Bhumika Goyal
, make the struct intel_pmic_opregion_data * argument of the function intel_pmic_install_opregion_handler as const as it is only getting stored in the data field of the intel_pmic_opregion structure which is now made const. Signed-off-by: Bhumika Goyal --- drivers/acpi/pmic/intel_pmic.c | 10

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

2017-10-20 Thread Bhumika Goyal
On Thu, Oct 19, 2017 at 5:05 PM, Laurent Pinchart wrote: > Hi Christoph, > > On Thursday, 19 October 2017 17:06:57 EEST Christoph Hellwig wrote: >> > Now we have 9 const instances of the config_item_type structure that are >> > identical, with only the .ct_owner field set. Should they be all merge

[tip:x86/cleanups] x86/events/amd/iommu: Make iommu_pmu const and __initconst

2017-10-19 Thread tip-bot for Bhumika Goyal
Commit-ID: 642e641cbea57e559720b9df09889ffcf525cf04 Gitweb: https://git.kernel.org/tip/642e641cbea57e559720b9df09889ffcf525cf04 Author: Bhumika Goyal AuthorDate: Tue, 19 Sep 2017 16:40:43 +0530 Committer: Thomas Gleixner CommitDate: Thu, 19 Oct 2017 16:15:47 +0200 x86/events/amd/iommu

[PATCH 1/2] cpufreq: arm_big_little: make function arguments and structure pointer const

2017-10-19 Thread Bhumika Goyal
argument and the structure pointer const. Add const to function prototypes too. Signed-off-by: Bhumika Goyal --- drivers/cpufreq/arm_big_little.c | 6 +++--- drivers/cpufreq/arm_big_little.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/cpufreq/arm_big_little.c b

[PATCH 2/2] cpufreq: arm_big_little: make cpufreq_arm_bL_ops structures const

2017-10-19 Thread Bhumika Goyal
Make these const as they are only getting passed to the functions bL_cpufreq_{register/unregister} having the arguments as const. Signed-off-by: Bhumika Goyal --- drivers/cpufreq/arm_big_little_dt.c| 2 +- drivers/cpufreq/scpi-cpufreq.c | 2 +- drivers/cpufreq/vexpress-spc-cpufreq.c

[PATCH 0/2] cpufreq: arm_big_little: make function arguments and structures const

2017-10-19 Thread Bhumika Goyal
Make some function arguments as const. After this change make the cpufreq_arm_bL_ops structures const. Bhumika Goyal (2): cpufreq: arm_big_little: make function argument and structure const cpufreq: arm_big_little: make cpufreq_arm_bL_ops structures const drivers/cpufreq/arm_big_little.c

[PATCH 1/4] sunrpc: make the function arg as const

2017-10-17 Thread Bhumika Goyal
Make the struct cache_detail *tmpl argument of the function cache_create_net as const as it is only getting passed to kmemup having the argument as const void *. Add const to the prototype too. Signed-off-by: Bhumika Goyal --- include/linux/sunrpc/cache.h | 2 +- net/sunrpc/cache.c

[PATCH 3/4] NFSD: make cache_detail structures const

2017-10-17 Thread Bhumika Goyal
Make these const as they are only getting passed to the function cache_create_net having the argument as const. Signed-off-by: Bhumika Goyal --- fs/nfsd/export.c| 4 ++-- fs/nfsd/nfs4idmap.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/nfsd/export.c b/fs/nfsd

[PATCH 2/4] NFS: make cache_detail structure const

2017-10-17 Thread Bhumika Goyal
Make it const as it is only getting passed to the function cache_create_net having the argument as const. Signed-off-by: Bhumika Goyal --- fs/nfs/dns_resolve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/dns_resolve.c b/fs/nfs/dns_resolve.c index d25f10f..477934a

[PATCH 4/4] SUNRPC: make cache_detail structures const

2017-10-17 Thread Bhumika Goyal
Make these const as they are only getting passed to the function cache_create_net having the argument as const. Signed-off-by: Bhumika Goyal --- net/sunrpc/auth_gss/svcauth_gss.c | 4 ++-- net/sunrpc/svcauth_unix.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a

[PATCH 0/4] make function arg and structures as const

2017-10-17 Thread Bhumika Goyal
Make the function argument as const. After thing change, make the cache_detail structures as const. Bhumika Goyal (4): sunrpc: make the function arg as const NFS: make cache_detail structures const NFSD: make cache_detail structures const SUNRPC: make cache_detail structures const fs

[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 --- 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 f271c35..8bea5df 100644

[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 --- drivers/clk/spear/clk-aux-synth.c | 2 +- drivers/clk/spear/spear1310_clock.c | 2 +

[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

[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 --- drivers/media/platform/davinci/dm355_ccdc.c | 2

[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 --- 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/media/platform/davinci

[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 --- * Changes in v2- Combine all the followup patches and the constification patches into a series. fs/configfs/dir.c| 10 +- fs/configfs/item.c | 6 +++--- fs

[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 and

[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 --- * Changes in v2- Combine all the followup patches and the constification patches into a series. drivers/usb/gadget/function/f_acm.c

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

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

[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 --- * Changes in v2- Combine all the followup patch

[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 --- * Changes in v2- Combine all the followup patch

[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 --- * Changes in v2- Combine all the followup patch

[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 --- * Changes in v2- Combine all the followup patch

[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 --- * Changes in v2- Combi

[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 --- * Changes in v2- Combine all the followup patch

[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 --- * Changes in v2- Combine all the followup patch

[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 --- * Changes in v2- Combine all the followup patches and the constificati

[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 --- * Changes in v2- Combi

[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 --- * Changes in v2- Combine all the followup patch

[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 --- * Changes in v2- Combine all the followup patch

[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 --- * Changes in v2- Combine all the followup patch

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 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://patchwork.kernel.org/patch/

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 wrote: > Bhumika Goyal writes: > >> On Thu, Oct 12, 2017 at 2:12 PM, Bhumika Goyal wrote: >>> This is a followup patch for: >>> https://patchwork.kernel.org/patch/649/ and >>> https://lk

[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

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

2017-10-16 Thread Bhumika Goyal
structures can be const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- 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.c | 2 +- arch/arm/mach

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

2017-10-16 Thread Bhumika Goyal
o the prototype too. Signed-off-by: Bhumika Goyal --- 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 index 9f9fbfa..bc

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

2017-10-13 Thread Bhumika Goyal
const to the prototype too. Signed-off-by: Bhumika Goyal --- 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/sound/oss/dev_table.c +++ b/

[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 --- sound/oss/pas2_pcm.c | 2 +- sound/oss/waveartist.c | 2 +- 2 files changed, 2 insertions(+), 2

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 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 structure variable >> which onl

[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 --- This change a

[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: Bh

[PATCH] powerpc/eeh: make eeh_ops structures _ro_after_init

2017-10-13 Thread Bhumika Goyal
phase. So, make them __ro_after_init. Signed-off-by: Bhumika Goyal --- arch/powerpc/platforms/powernv/eeh-powernv.c | 2 +- arch/powerpc/platforms/pseries/eeh_pseries.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/powernv/eeh-powernv.c b/arch

[PATCH] misc: make config_item_type const

2017-10-12 Thread Bhumika Goyal
This is a followup patch for: https://lkml.org/lkml/2017/10/11/375 Make this const as it is only stored in the const "ci_type" field of a config_item structure. Signed-off-by: Bhumika Goyal --- It does not seem to be possible to compile this driver and it has not received many patc

Re: [PATCH] iio: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 11:41 AM, Bhumika Goyal wrote: > This is a followup patch for: > https://lkml.org/lkml/2017/10/11/375 > https://patchwork.kernel.org/patch/649/ > https://lkml.org/lkml/2017/10/11/469 and > https://lkml.org/lkml/2017/10/11/661 > > Make the config

Re: [PATCH] ACPI: configfs: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 12:02 PM, Bhumika Goyal wrote: > This is a followup patch for: https://lkml.org/lkml/2017/10/11/375 and > https://patchwork.kernel.org/patch/649/ > > Make these structures const as they are either passed to the functions > having the argument as const

Re: [PATCH] stm class: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 2:12 PM, Bhumika Goyal wrote: > This is a followup patch for: > https://patchwork.kernel.org/patch/649/ and > https://lkml.org/lkml/2017/10/11/375 > > Make config_item_type structures const as they are either passed to a > function having the argumen

Re: [PATCH] IB/cma: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 2:20 PM, Bhumika Goyal wrote: > This is a followup patch for: https://lkml.org/lkml/2017/10/11/375 and > https://patchwork.kernel.org/patch/649/ > > Make these structures const as they are either passed to the functions > having the argument as const

Re: [PATCH] PCI: endpoint: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 2:50 PM, Bhumika Goyal wrote: > This is a followup patch for: > https://patchwork.kernel.org/patch/649/ and > https://lkml.org/lkml/2017/10/11/375 > > Make config_item_type structures const as they are either passed to a > function having the ar

Re: [PATCH] nvmet: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 2:38 PM, Bhumika Goyal wrote: > This is a followup patch for: > https://patchwork.kernel.org/patch/649/ and > https://lkml.org/lkml/2017/10/11/375 > > Make config_item_type structures const as they are either passed to a > function having the argumen

Re: [PATCH] netconsole: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 2:29 PM, Bhumika Goyal wrote: > This is a followup patch for: https://lkml.org/lkml/2017/10/11/375 and > https://patchwork.kernel.org/patch/649/ > > Make these structures const as they are either passed to the functions > having the argument as const

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

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 3:03 PM, Bhumika Goyal wrote: > This is a followup patch for: > https://patchwork.kernel.org/patch/649/ and > https://lkml.org/lkml/2017/10/11/375 > > Make config_item_type structures const as they are either passed to a > function having the ar

Re: [PATCH] dlm: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 3:22 PM, Bhumika Goyal wrote: > This is a followup patch for: > https://patchwork.kernel.org/patch/649/ and > https://lkml.org/lkml/2017/10/11/375 > > Make config_item_type structures const as they are either passed to a > function having the ar

Re: [PATCH] configfs: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 3:29 PM, Bhumika Goyal wrote: > This is a followup patch for: > https://patchwork.kernel.org/patch/649/ and > https://lkml.org/lkml/2017/10/11/375 > > Make config_item_type structures const as they are either passed to a > function having the ar

Re: [PATCH] target/iscsi: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 3:48 PM, Bhumika Goyal wrote: > 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. &g

Re: [PATCH] nullb: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 4:47 PM, Jens Axboe wrote: > On 10/12/2017 08:42 AM, Bhumika Goyal wrote: >> On Thu, Oct 12, 2017 at 4:27 PM, Jens Axboe wrote: >>> On 10/12/2017 04:19 AM, Bhumika Goyal wrote: >>>> This is a followup patch for: https://lkml.org/lkml

Re: [PATCH] nullb: make config_item_type const

2017-10-12 Thread Bhumika Goyal
On Thu, Oct 12, 2017 at 4:27 PM, Jens Axboe wrote: > On 10/12/2017 04:19 AM, Bhumika Goyal wrote: >> This is a followup patch for: https://lkml.org/lkml/2017/10/11/375 and >> https://patchwork.kernel.org/patch/649/ >> >> Make these structures const as they are eit

[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 --- drivers/target/iscsi/iscsi_target_stat.c | 12

[PATCH] configfs: make config_item_type const

2017-10-12 Thread Bhumika Goyal
ure. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- 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 100644 --- a/sample

[PATCH] dlm: make config_item_type const

2017-10-12 Thread Bhumika Goyal
ure. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- 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 @@ -282,44 +282,44 @@ struc

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

2017-10-12 Thread Bhumika Goyal
ure. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- 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/drivers/usb/gadget/config

[PATCH] PCI: endpoint: make config_item_type const

2017-10-12 Thread Bhumika Goyal
ure. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- 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..4f74386 100644 --- a/drivers/pci/en

[PATCH] nvmet: make config_item_type const

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

[PATCH] netconsole: make config_item_type const

2017-10-12 Thread Bhumika Goyal
structure. Done using Coccienlle. Signed-off-by: Bhumika Goyal --- drivers/net/netconsole.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c index 0e27920..be9aa36 100644 --- a/drivers/net/netconsole.c +++ b/drivers/net/ne

[PATCH] IB/cma: make config_item_type const

2017-10-12 Thread Bhumika Goyal
structure. Done using Coccienlle. Signed-off-by: Bhumika Goyal --- 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 54076a3..31dfee0 100644 ---

[PATCH] stm class: make config_item_type const

2017-10-12 Thread Bhumika Goyal
; field of a config_item structure. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- 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.c index 6c0ae29..33e9a1b 10

[PATCH] nullb: make config_item_type const

2017-10-12 Thread Bhumika Goyal
structure. Done using Coccienlle. Signed-off-by: Bhumika Goyal --- 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/null_blk.c +++ b/drivers/block/

[PATCH] ACPI: configfs: make config_item_type const

2017-10-12 Thread Bhumika Goyal
structure. Done using Coccienlle. Signed-off-by: Bhumika Goyal --- 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 --- a/drivers/acpi/acpi_config

[PATCH] iio: make config_item_type const

2017-10-12 Thread Bhumika Goyal
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 --- drivers/iio/dummy/iio_simple_dummy.c | 2 +- drivers/iio/industrialio-configfs.c| 2 +- drivers/iio/industrialio-s

[PATCH] target: make config_item_type const

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

[PATCH] ocfs2/cluster: make config_item_type const

2017-10-12 Thread Bhumika Goyal
structure. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- 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/heartbeat.c index d020604..ea8c

[PATCH] iio: sw_trigger: make the function argument as const

2017-10-11 Thread Bhumika Goyal
This is a follow-up patch for: https://patchwork.kernel.org/patch/649/ Make the argument of the function iio_swt_group_init_type_name const as it is only passed to the function config_group_init_type_name having the argument as const. Signed-off-by: Bhumika Goyal --- include/linux/iio

[PATCH] usb: gadget: make config_item_type structures const

2017-10-11 Thread Bhumika Goyal
sition ref.p; identifier rule1.x; @@ x@p @depends on forall !bad disable optional_qualifier@ identifier rule1.x; @@ static + const struct config_item_type x={...}; Signed-off-by: Bhumika Goyal --- drivers/usb/gadget/function/f_acm.c | 2 +- drivers/usb/gadget/function/f_ecm.c | 2 +-

[PATCH] iio: sw_device: make the function argument as const

2017-10-11 Thread Bhumika Goyal
This is a follow-up patch for: https://patchwork.kernel.org/patch/649/ Make the argument of the function iio_swd_group_init_type_name const as it is only passed to the function config_group_init_type_name having the argument as const. Signed-off-by: Bhumika Goyal --- This change allows a

[PATCH] configfs: make function arguments const

2017-10-11 Thread Bhumika Goyal
. Make the argument of configfs_register_default_group const as it is only passed to the argument of the function config_group_init_type_name which is now const. Signed-off-by: Bhumika Goyal --- This change allows lots of config_item_type structure to be const. fs/configfs/dir.c| 2 +- fs

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

2017-10-11 Thread Bhumika Goyal
: Bhumika Goyal --- 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 56fb261..ccdd33f 100644 --- a/fs

[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 --- 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/tegra/clk-tegra30.c +++ b

Re: [PATCH] nvme: make config_item_type __ro_after_init

2017-10-02 Thread Bhumika Goyal
On Mon, Oct 2, 2017 at 12:44 AM, Bhumika Goyal wrote: > Make these __ro_after_init as they are only stored as a reference in the > ci_type field of a config_item structure during the init phase in the > function config_group_init_type_name. None of the fields of these > structures

[PATCH] nvme: make config_item_type __ro_after_init

2017-10-01 Thread Bhumika Goyal
found using Coccinelle and changes done by hand. Signed-off-by: Bhumika Goyal --- drivers/nvme/target/configfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/nvme/target/configfs.c b/drivers/nvme/target/configfs.c index b6aeb1d..075d9b5 100644 --- a/drivers

[PATCH] scsi: esas2r: make bin_attr_default_nvram const

2017-09-30 Thread Bhumika Goyal
Make this const as it is only passed to the const arguments of the functions sysfs_remove_bin_file and sysfs_create_bin_file. Make the declaration const too. Structure found using Coccinelle and changes done by hand. Signed-off-by: Bhumika Goyal --- drivers/scsi/esas2r/esas2r.h | 2

[PATCH] libata: make ata_port_type const

2017-09-30 Thread Bhumika Goyal
Make this const as it is only stored in the const field of a device structure. Make the declaration in header const too. Structure found using Coccinelle and changes done by hand. Signed-off-by: Bhumika Goyal --- drivers/ata/libata-core.c | 2 +- drivers/ata/libata.h | 2 +- 2 files

[PATCH] thunderbolt: make tb_domain_type const

2017-09-30 Thread Bhumika Goyal
Make this const as it is only stored in the const field of a device structure. Make the declaration in header const too. Structure found using Coccinelle and changes done by hand. Signed-off-by: Bhumika Goyal --- drivers/thunderbolt/domain.c | 2 +- drivers/thunderbolt/tb.h | 2 +- 2 files

[PATCH] FS-Cache: make fscache_fsdef_netfs_def const

2017-09-30 Thread Bhumika Goyal
Make fscache_fsdef_netfs_def const as it is only stored in a const field of a fscache_cookie structure. Make the declaration const too. Structure found using Coccinelle and changes done by hand. Signed-off-by: Bhumika Goyal --- fs/fscache/fsdef.c| 2 +- fs/fscache/internal.h | 2 +- 2

[PATCH] staging: rtl8192u: make r8192_wx_handlers_def structure const

2017-09-30 Thread Bhumika Goyal
Make this const as it is only stored in a const field of a pci_dev structure. Make the declaration in the header const too. Structure found using Coccinelle and changes done by hand. Signed-off-by: Bhumika Goyal --- drivers/staging/rtl8192u/r8192U_wx.c | 2 +- drivers/staging/rtl8192u

[PATCH] vfio-mdev: make mdev_fops const and static

2017-09-30 Thread Bhumika Goyal
Make this const as it is only passed to a const argument of the function mdev_register_device. Make it static as it is not referenced in any other file. Structure found using Coccinelle and changes done by hand. Signed-off-by: Bhumika Goyal --- samples/vfio-mdev/mtty.c | 2 +- 1 file changed

[PATCH] [IA64] sn: make sn_screen_info const, static and __initconst

2017-09-28 Thread Bhumika Goyal
Make this structure static as it is only used in the file in which it is defined. Make it const as it is only used during a copy operation. Make it __initconst as this usage is during the init phase. Structure found using Coccinelle and changes done by hand. Signed-off-by: Bhumika Goyal

[PATCH] usb: gadget: f_uvc: make uvc_v4l2_fops const

2017-09-27 Thread Bhumika Goyal
Make this const as it is only stored in the const field of a structure video_device in the file referencing it. Make the declaration const too. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/usb/gadget/function/uvc_v4l2.c | 2 +- drivers/usb/gadget/function/uvc_v4l2.h | 2

[PATCH] [media] vb2: make vb2_ops

2017-09-27 Thread Bhumika Goyal
Make vb2_ops const as they are only stored in the const field of a vb2_queue structure. Make the declarations const too. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/media/usb/au0828/au0828-vbi.c | 2 +- drivers/media/usb/au0828/au0828.h | 2 +- drivers/media/usb/em28xx

[PATCH] [media] vb2: make vb2_ops const

2017-09-27 Thread Bhumika Goyal
Make vb2_ops const as they are only stored in the const field of a vb2_queue structure. Make the declarations const too. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/media/pci/cx23885/cx23885-vbi.c | 2 +- drivers/media/pci/cx23885/cx23885.h | 2 +- drivers/media/pci

[PATCH] ASoC: kirkwood: make kirkwood_soc_platform const

2017-09-27 Thread Bhumika Goyal
Make kirkwood_soc_platform const as it only passed to a const argument of the function snd_soc_register_platform in the file referencing it. Make the declaration const too. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/soc/kirkwood/kirkwood-dma.c | 2 +- sound/soc/kirkwood

[PATCH v2] [media] zoran: make zoran_template const

2017-09-27 Thread Bhumika Goyal
Make this const as it is only used in a copy operation in the file referencing it. Make the declaration const too. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- Changes in v2: * Fix spelling mistake in the commit message. drivers/media/pci/zoran/zoran_card.h | 2 +- drivers/media

[PATCH] [media] zoran: make zoran_template const

2017-09-27 Thread Bhumika Goyal
Make this constas it is only used in a copy operation in the file referencing it. Make the declaration const too. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/media/pci/zoran/zoran_card.h | 2 +- drivers/media/pci/zoran/zoran_driver.c | 2 +- 2 files changed, 2 insertions

  1   2   3   4   5   6   7   >