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
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
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
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
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
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
, 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
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
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
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
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
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
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
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
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
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
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
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
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 +
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
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
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
.
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
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
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
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
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 +
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
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
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
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
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
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
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
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
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
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
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
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
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/
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
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
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
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
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/
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
---
; 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
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/
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
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
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
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
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
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 +-
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
.
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
: 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
__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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 - 100 of 670 matches
Mail list logo