Never directly free @dev after calling device_register(), even
if it returned an error! Always use put_device() to give up the
reference initialized.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/scsi_transport_iscsi.c | 27 +--
1 file c
if device_register() returned an error! Always use put_device()
to give up the reference initialized.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/target/loopback/tcm_loop.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/target/loopback/tcm_loop.c
b/d
Trivial fix to spelling mistakes in 'iscsi_get_host_stats'.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/scsi_transport_iscsi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/scsi_transport_iscsi.c
b/driver
parisc_device_id are not supposed to change at runtime. All functions
working with parisc_device_id provided by work
with const parisc_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/lasi700.c | 2 +-
1 file chan
parisc_device_id are not supposed to change at runtime. All functions
working with parisc_device_id provided by work
with const parisc_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/zalon.c | 2 +-
1 file chan
parisc_device_id are not supposed to change at runtime. All functions
working with parisc_device_id provided by work with
const parisc_device_id. So mark the non-const structs as const.
Arvind Yadav (4):
[PATCH 1/4] scsi: lasi700: constify parisc_device_id
[PATCH 2/4] scsi: zalon: constify
vio_device_id are not supposed to change at runtime. All functions
working with vio_device_id provided by work with
const vio_device_id. So mark the non-const structs as const.
Arvind Yadav (3):
[PATCH 1/3] scsi: ibmvfc: constify vio_device_id
[PATCH 2/3] scsi: ibmvscsi: constify
vio_device_id are not supposed to change at runtime. All functions
working with vio_device_id provided by work with
const vio_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/ibmvscsi/ibmvfc.c | 2 +-
1 file chan
vio_device_id are not supposed to change at runtime. All functions
working with vio_device_id provided by work with
const vio_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c | 2 +-
vio_device_id are not supposed to change at runtime. All functions
working with vio_device_id provided by work with
const vio_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/ibmvscsi/ibmvscsi.c | 2 +-
1 file chan
pnp_device_id are not supposed to change at runtime. All functions
working with pnp_device_id provided by work with
const pnp_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/aha1542.c | 2 +-
1 file changed, 1 ins
pnp_device_id are not supposed to change at runtime. All functions
working with pnp_device_id provided by work with
const pnp_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/g_NCR5380.c | 2 +-
1 file chan
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/message/fusion/mptspi.c | 2 +-
1 file chan
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/message/fusion/mptsas.c | 2 +-
1 file chan
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/message/fusion/mptfc.c | 2 +-
1 file chan
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Arvind Yadav (3):
[PATCH 1/3] scsi: mptfusion: constify pci_device_id.
[PATCH 2/3] scsi: mptfc: constify
On Monday 31 July 2017 01:26 PM, Johannes Thumshirn wrote:
On Sun, Jul 30, 2017 at 02:07:09PM +0530, Arvind Yadav wrote:
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/pmcraid.c | 2 +-
1 file changed, 1 ins
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/fnic/fnic_main.c | 2 +-
1 file chan
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/stex.c | 2 +-
1 file changed, 1 ins
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/atp870u.c | 2 +-
1 file changed, 1 ins
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/advansys.c | 2 +-
1 file chan
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/megaraid/megaraid_sas_base.c | 2 +-
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/a100u2w.c | 2 +-
1 file changed, 1 ins
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/3w-.c | 2 +-
1 file changed, 1 ins
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/nsp32.c | 2 +-
1 file changed, 1 ins
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/hptiop.c | 2 +-
1 file changed, 1 ins
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/fdomain.c | 2 +-
1 file changed, 1 ins
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/sym53c8xx_2/sym_glue.c | 2 +-
1 file c
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/snic/snic_main.c | 2 +-
1 file chan
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/qla2xxx/qla_os.c | 2 +-
1 file chan
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/megaraid.c | 2 +-
1 file chan
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/esas2r/esas2r_main.c | 2 +-
1 file c
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/dmx3191d.c | 2 +-
1 file chan
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/cxlflash/main.c | 2 +-
1 file chan
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/3w-sas.c | 2 +-
1 file changed, 1 ins
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/am53c974.c | 2 +-
1 file chan
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/qla1280.c | 2 +-
1 file changed, 1 ins
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/qedi/qedi_main.c | 2 +-
1 file chan
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/pm8001/pm8001_init.c | 2 +-
1 file c
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/3w-9xxx.c | 2 +-
1 file changed, 1 ins
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/qla4xxx/ql4_os.c | 2 +-
1 file chan
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/ipr.c | 2 +-
1 file changed, 1 ins
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/mvsas/mv_init.c | 2 +-
1 file chan
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/arcmsr/arcmsr_hba.c | 2 +-
1 file chan
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/dpt_i2o.c | 2 +-
1 file changed, 1 ins
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by work with
const pci_device_id. So mark the non-const structs as const.
Arvind Yadav (29):
[PATCH 01/29] scsi: qla1280: constify pci_device_id.
[PATCH 02/29] scsi: qedi: constify
/scsi_transport_iscsi.o
File size After adding 'const':
textdata bss dec hex filename
40764 10070 44 50878c6be scsi/scsi_transport_iscsi.o
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/scsi_transport_iscsi.c | 12 ++--
drivers/scsi/scsi_transport_fc.o
File size After adding 'const':
textdata bss dec hex filename
341861868 4 360588cda drivers/scsi/scsi_transport_fc.o
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/scsi_transport_fc.c | 2 +-
drivers/scsi/scsi_transport_spi.o
File size After adding 'const':
textdata bss dec hex filename
155721488 0 1706042a4 drivers/scsi/scsi_transport_spi.o
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/scsi_transport_spi.c | 4 +
drivers/scsi/iscsi_boot_sysfs.o
File size After adding 'const':
textdata bss dec hex filename
28041512 0431610dc drivers/scsi/iscsi_boot_sysfs.o
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/iscsi_boot_sysfs.c
attribute_groups are not supposed to change at runtime.
So mark the non-const structs as const.
Arvind Yadav (4):
[PATCH 1/4] scsi: scsi_transport_iscsi: constify attribute_group structures.
[PATCH 2/4] scsi: iscsi_boot_sysfs: constify attribute_group structures.
[PATCH 3/4] scsi
/ibmvfc.o
File size After adding 'const':
textdata bss dec hex filename
421291104 20 43253a8f5 drivers/scsi/ibmvscsi/ibmvfc.o
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/ibmvscsi/ibmvfc.c | 2 +-
1 file changed, 1 insertion
/ibmvscsi.o
File size After adding 'const':
textdata bss dec hex filename
181641264 8 194364bec drivers/scsi/ibmvscsi/ibmvscsi.o
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/ibmvscsi/ibmvscsi.c | 2 +-
1 file changed, 1 ins
File size before:
textdata bss dec hex filename
409111432 304 42647a697 drivers/block/cciss.o
File size After adding 'const':
textdata bss dec hex filename
410391304 304 42647a697 drivers/block/cciss.o
Signed-off-by: Arvind
Free memory regions, if qlafx00_iospace_config is not successful.
Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com>
---
drivers/scsi/qla2xxx/qla_mr.c | 11 +++
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/drivers/scsi/qla2xxx/qla_mr.c b/drivers/scsi/q
56 matches
Mail list logo