* [PATCH 0/9] constify pci_error_handlers structures
@ 2015-11-14 10:06 ` Julia Lawall
0 siblings, 0 replies; 28+ messages in thread
From: Julia Lawall @ 2015-11-14 10:06 UTC (permalink / raw)
To: MPT-FusionLinux.pdl
Cc: kernel-janitors, linux-kernel, netdev, linux-scsi, qat-linux,
linux-crypto, kvm
Constify never-modified pci_error_handlers structures.
---
drivers/crypto/qat/qat_common/adf_aer.c | 2 +-
drivers/misc/genwqe/card_base.c | 2 +-
drivers/net/ethernet/cavium/liquidio/lio_main.c | 2 +-
drivers/net/ethernet/sfc/efx.c | 2 +-
drivers/scsi/be2iscsi/be_main.c | 2 +-
drivers/scsi/bfa/bfad.c | 2 +-
drivers/scsi/csiostor/csio_init.c | 2 +-
drivers/scsi/mpt3sas/mpt3sas_scsih.c | 2 +-
drivers/vfio/pci/vfio_pci.c | 2 +-
9 files changed, 9 insertions(+), 9 deletions(-)
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH 0/9] constify pci_error_handlers structures
@ 2015-11-14 10:06 ` Julia Lawall
0 siblings, 0 replies; 28+ messages in thread
From: Julia Lawall @ 2015-11-14 10:06 UTC (permalink / raw)
To: MPT-FusionLinux.pdl
Cc: kernel-janitors, linux-kernel, netdev, linux-scsi, qat-linux,
linux-crypto, kvm
Constify never-modified pci_error_handlers structures.
---
drivers/crypto/qat/qat_common/adf_aer.c | 2 +-
drivers/misc/genwqe/card_base.c | 2 +-
drivers/net/ethernet/cavium/liquidio/lio_main.c | 2 +-
drivers/net/ethernet/sfc/efx.c | 2 +-
drivers/scsi/be2iscsi/be_main.c | 2 +-
drivers/scsi/bfa/bfad.c | 2 +-
drivers/scsi/csiostor/csio_init.c | 2 +-
drivers/scsi/mpt3sas/mpt3sas_scsih.c | 2 +-
drivers/vfio/pci/vfio_pci.c | 2 +-
9 files changed, 9 insertions(+), 9 deletions(-)
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH 1/9] net: cavium: liquidio: constify pci_error_handlers structures
2015-11-14 10:06 ` Julia Lawall
@ 2015-11-14 10:06 ` Julia Lawall
-1 siblings, 0 replies; 28+ messages in thread
From: Julia Lawall @ 2015-11-14 10:06 UTC (permalink / raw)
To: Derek Chickles
Cc: kernel-janitors, Satanand Burla, Felix Manlunas, Raghu Vatsavayi,
netdev, linux-kernel
This pci_error_handlers structure is never modified, like all the other
pci_error_handlers structures, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
There are no dependencies between these patches.
drivers/net/ethernet/cavium/liquidio/lio_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/cavium/liquidio/lio_main.c b/drivers/net/ethernet/cavium/liquidio/lio_main.c
index f683d97..b895044 100644
--- a/drivers/net/ethernet/cavium/liquidio/lio_main.c
+++ b/drivers/net/ethernet/cavium/liquidio/lio_main.c
@@ -560,7 +560,7 @@ static int liquidio_resume(struct pci_dev *pdev)
#endif
/* For PCI-E Advanced Error Recovery (AER) Interface */
-static struct pci_error_handlers liquidio_err_handler = {
+static const struct pci_error_handlers liquidio_err_handler = {
.error_detected = liquidio_pcie_error_detected,
.mmio_enabled = liquidio_pcie_mmio_enabled,
.slot_reset = liquidio_pcie_slot_reset,
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 1/9] net: cavium: liquidio: constify pci_error_handlers structures
@ 2015-11-14 10:06 ` Julia Lawall
0 siblings, 0 replies; 28+ messages in thread
From: Julia Lawall @ 2015-11-14 10:06 UTC (permalink / raw)
To: Derek Chickles
Cc: kernel-janitors, Satanand Burla, Felix Manlunas, Raghu Vatsavayi,
netdev, linux-kernel
This pci_error_handlers structure is never modified, like all the other
pci_error_handlers structures, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
There are no dependencies between these patches.
drivers/net/ethernet/cavium/liquidio/lio_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/cavium/liquidio/lio_main.c b/drivers/net/ethernet/cavium/liquidio/lio_main.c
index f683d97..b895044 100644
--- a/drivers/net/ethernet/cavium/liquidio/lio_main.c
+++ b/drivers/net/ethernet/cavium/liquidio/lio_main.c
@@ -560,7 +560,7 @@ static int liquidio_resume(struct pci_dev *pdev)
#endif
/* For PCI-E Advanced Error Recovery (AER) Interface */
-static struct pci_error_handlers liquidio_err_handler = {
+static const struct pci_error_handlers liquidio_err_handler = {
.error_detected = liquidio_pcie_error_detected,
.mmio_enabled = liquidio_pcie_mmio_enabled,
.slot_reset = liquidio_pcie_slot_reset,
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 2/9] GenWQE: constify pci_error_handlers structures
2015-11-14 10:06 ` Julia Lawall
@ 2015-11-14 10:06 ` Julia Lawall
-1 siblings, 0 replies; 28+ messages in thread
From: Julia Lawall @ 2015-11-14 10:06 UTC (permalink / raw)
To: linux-kernel; +Cc: kernel-janitors
This pci_error_handlers structure is never modified, like all the other
pci_error_handlers structures, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
There are no dependencies between these patches.
drivers/misc/genwqe/card_base.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/misc/genwqe/card_base.c b/drivers/misc/genwqe/card_base.c
index 4cf8f82..40cefef 100644
--- a/drivers/misc/genwqe/card_base.c
+++ b/drivers/misc/genwqe/card_base.c
@@ -1337,7 +1337,7 @@ static int genwqe_sriov_configure(struct pci_dev *dev, int numvfs)
return 0;
}
-static struct pci_error_handlers genwqe_err_handler = {
+static const struct pci_error_handlers genwqe_err_handler = {
.error_detected = genwqe_err_error_detected,
.mmio_enabled = genwqe_err_result_none,
.link_reset = genwqe_err_result_none,
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 2/9] GenWQE: constify pci_error_handlers structures
@ 2015-11-14 10:06 ` Julia Lawall
0 siblings, 0 replies; 28+ messages in thread
From: Julia Lawall @ 2015-11-14 10:06 UTC (permalink / raw)
To: linux-kernel; +Cc: kernel-janitors
This pci_error_handlers structure is never modified, like all the other
pci_error_handlers structures, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
There are no dependencies between these patches.
drivers/misc/genwqe/card_base.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/misc/genwqe/card_base.c b/drivers/misc/genwqe/card_base.c
index 4cf8f82..40cefef 100644
--- a/drivers/misc/genwqe/card_base.c
+++ b/drivers/misc/genwqe/card_base.c
@@ -1337,7 +1337,7 @@ static int genwqe_sriov_configure(struct pci_dev *dev, int numvfs)
return 0;
}
-static struct pci_error_handlers genwqe_err_handler = {
+static const struct pci_error_handlers genwqe_err_handler = {
.error_detected = genwqe_err_error_detected,
.mmio_enabled = genwqe_err_result_none,
.link_reset = genwqe_err_result_none,
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 3/9] cxgb4/cxgb4vf/csiostor: constify pci_error_handlers structures
2015-11-14 10:06 ` Julia Lawall
@ 2015-11-14 10:06 ` Julia Lawall
-1 siblings, 0 replies; 28+ messages in thread
From: Julia Lawall @ 2015-11-14 10:06 UTC (permalink / raw)
To: James E.J. Bottomley; +Cc: kernel-janitors, linux-scsi, linux-kernel
This pci_error_handlers structure is never modified, like all the other
pci_error_handlers structures, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
There are no dependencies between these patches.
drivers/scsi/csiostor/csio_init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/csiostor/csio_init.c b/drivers/scsi/csiostor/csio_init.c
index dbe416f..33996f2 100644
--- a/drivers/scsi/csiostor/csio_init.c
+++ b/drivers/scsi/csiostor/csio_init.c
@@ -1162,7 +1162,7 @@ err_resume_exit:
dev_err(&pdev->dev, "resume of device failed: %d\n", rv);
}
-static struct pci_error_handlers csio_err_handler = {
+static const struct pci_error_handlers csio_err_handler = {
.error_detected = csio_pci_error_detected,
.slot_reset = csio_pci_slot_reset,
.resume = csio_pci_resume,
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 3/9] cxgb4/cxgb4vf/csiostor: constify pci_error_handlers structures
@ 2015-11-14 10:06 ` Julia Lawall
0 siblings, 0 replies; 28+ messages in thread
From: Julia Lawall @ 2015-11-14 10:06 UTC (permalink / raw)
To: James E.J. Bottomley; +Cc: kernel-janitors, linux-scsi, linux-kernel
This pci_error_handlers structure is never modified, like all the other
pci_error_handlers structures, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
There are no dependencies between these patches.
drivers/scsi/csiostor/csio_init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/csiostor/csio_init.c b/drivers/scsi/csiostor/csio_init.c
index dbe416f..33996f2 100644
--- a/drivers/scsi/csiostor/csio_init.c
+++ b/drivers/scsi/csiostor/csio_init.c
@@ -1162,7 +1162,7 @@ err_resume_exit:
dev_err(&pdev->dev, "resume of device failed: %d\n", rv);
}
-static struct pci_error_handlers csio_err_handler = {
+static const struct pci_error_handlers csio_err_handler = {
.error_detected = csio_pci_error_detected,
.slot_reset = csio_pci_slot_reset,
.resume = csio_pci_resume,
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 4/9] bfa: constify pci_error_handlers structures
2015-11-14 10:06 ` Julia Lawall
@ 2015-11-14 10:06 ` Julia Lawall
-1 siblings, 0 replies; 28+ messages in thread
From: Julia Lawall @ 2015-11-14 10:06 UTC (permalink / raw)
To: Anil Gurumurthy
Cc: kernel-janitors, Sudarsana Kalluru, James E.J. Bottomley,
linux-scsi, linux-kernel
This pci_error_handlers structure is never modified, like all the other
pci_error_handlers structures, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
There are no dependencies between these patches.
drivers/scsi/bfa/bfad.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/bfa/bfad.c b/drivers/scsi/bfa/bfad.c
index cc3b9d3..8df346a 100644
--- a/drivers/scsi/bfa/bfad.c
+++ b/drivers/scsi/bfa/bfad.c
@@ -1687,7 +1687,7 @@ MODULE_DEVICE_TABLE(pci, bfad_id_table);
/*
* PCI error recovery handlers.
*/
-static struct pci_error_handlers bfad_err_handler = {
+static const struct pci_error_handlers bfad_err_handler = {
.error_detected = bfad_pci_error_detected,
.slot_reset = bfad_pci_slot_reset,
.mmio_enabled = bfad_pci_mmio_enabled,
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 4/9] bfa: constify pci_error_handlers structures
@ 2015-11-14 10:06 ` Julia Lawall
0 siblings, 0 replies; 28+ messages in thread
From: Julia Lawall @ 2015-11-14 10:06 UTC (permalink / raw)
To: Anil Gurumurthy
Cc: kernel-janitors, Sudarsana Kalluru, James E.J. Bottomley,
linux-scsi, linux-kernel
This pci_error_handlers structure is never modified, like all the other
pci_error_handlers structures, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
There are no dependencies between these patches.
drivers/scsi/bfa/bfad.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/bfa/bfad.c b/drivers/scsi/bfa/bfad.c
index cc3b9d3..8df346a 100644
--- a/drivers/scsi/bfa/bfad.c
+++ b/drivers/scsi/bfa/bfad.c
@@ -1687,7 +1687,7 @@ MODULE_DEVICE_TABLE(pci, bfad_id_table);
/*
* PCI error recovery handlers.
*/
-static struct pci_error_handlers bfad_err_handler = {
+static const struct pci_error_handlers bfad_err_handler = {
.error_detected = bfad_pci_error_detected,
.slot_reset = bfad_pci_slot_reset,
.mmio_enabled = bfad_pci_mmio_enabled,
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 5/9] sfc: constify pci_error_handlers structures
2015-11-14 10:06 ` Julia Lawall
@ 2015-11-14 10:06 ` Julia Lawall
-1 siblings, 0 replies; 28+ messages in thread
From: Julia Lawall @ 2015-11-14 10:06 UTC (permalink / raw)
To: Solarflare linux maintainers
Cc: kernel-janitors, Shradha Shah, netdev, linux-kernel
This pci_error_handlers structure is never modified, like all the other
pci_error_handlers structures, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
There are no dependencies between these patches.
drivers/net/ethernet/sfc/efx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c
index d288f1c..a3c42a3 100644
--- a/drivers/net/ethernet/sfc/efx.c
+++ b/drivers/net/ethernet/sfc/efx.c
@@ -3422,7 +3422,7 @@ out:
* with our request for slot reset the mmio_enabled callback will never be
* called, and the link_reset callback is not used by AER or EEH mechanisms.
*/
-static struct pci_error_handlers efx_err_handlers = {
+static const struct pci_error_handlers efx_err_handlers = {
.error_detected = efx_io_error_detected,
.slot_reset = efx_io_slot_reset,
.resume = efx_io_resume,
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 5/9] sfc: constify pci_error_handlers structures
@ 2015-11-14 10:06 ` Julia Lawall
0 siblings, 0 replies; 28+ messages in thread
From: Julia Lawall @ 2015-11-14 10:06 UTC (permalink / raw)
To: Solarflare linux maintainers
Cc: kernel-janitors, Shradha Shah, netdev, linux-kernel
This pci_error_handlers structure is never modified, like all the other
pci_error_handlers structures, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
There are no dependencies between these patches.
drivers/net/ethernet/sfc/efx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c
index d288f1c..a3c42a3 100644
--- a/drivers/net/ethernet/sfc/efx.c
+++ b/drivers/net/ethernet/sfc/efx.c
@@ -3422,7 +3422,7 @@ out:
* with our request for slot reset the mmio_enabled callback will never be
* called, and the link_reset callback is not used by AER or EEH mechanisms.
*/
-static struct pci_error_handlers efx_err_handlers = {
+static const struct pci_error_handlers efx_err_handlers = {
.error_detected = efx_io_error_detected,
.slot_reset = efx_io_slot_reset,
.resume = efx_io_resume,
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 6/9] be2iscsi: constify pci_error_handlers structures
2015-11-14 10:06 ` Julia Lawall
@ 2015-11-14 10:06 ` Julia Lawall
-1 siblings, 0 replies; 28+ messages in thread
From: Julia Lawall @ 2015-11-14 10:06 UTC (permalink / raw)
To: Jayamohan Kallickal
Cc: kernel-janitors, Ketan Mukadam, John Soni Jose,
James E.J. Bottomley, linux-scsi, linux-kernel
This pci_error_handlers structure is never modified, like all the other
pci_error_handlers structures, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
There are no dependencies between these patches.
drivers/scsi/be2iscsi/be_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c
index 2e6abe7..0b8f873 100644
--- a/drivers/scsi/be2iscsi/be_main.c
+++ b/drivers/scsi/be2iscsi/be_main.c
@@ -5786,7 +5786,7 @@ disable_pci:
return ret;
}
-static struct pci_error_handlers beiscsi_eeh_handlers = {
+static const struct pci_error_handlers beiscsi_eeh_handlers = {
.error_detected = beiscsi_eeh_err_detected,
.slot_reset = beiscsi_eeh_reset,
.resume = beiscsi_eeh_resume,
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 6/9] be2iscsi: constify pci_error_handlers structures
@ 2015-11-14 10:06 ` Julia Lawall
0 siblings, 0 replies; 28+ messages in thread
From: Julia Lawall @ 2015-11-14 10:06 UTC (permalink / raw)
To: Jayamohan Kallickal
Cc: kernel-janitors, Ketan Mukadam, John Soni Jose,
James E.J. Bottomley, linux-scsi, linux-kernel
This pci_error_handlers structure is never modified, like all the other
pci_error_handlers structures, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
There are no dependencies between these patches.
drivers/scsi/be2iscsi/be_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c
index 2e6abe7..0b8f873 100644
--- a/drivers/scsi/be2iscsi/be_main.c
+++ b/drivers/scsi/be2iscsi/be_main.c
@@ -5786,7 +5786,7 @@ disable_pci:
return ret;
}
-static struct pci_error_handlers beiscsi_eeh_handlers = {
+static const struct pci_error_handlers beiscsi_eeh_handlers = {
.error_detected = beiscsi_eeh_err_detected,
.slot_reset = beiscsi_eeh_reset,
.resume = beiscsi_eeh_resume,
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 7/9] crypto: constify pci_error_handlers structures
2015-11-14 10:06 ` Julia Lawall
@ 2015-11-14 10:06 ` Julia Lawall
-1 siblings, 0 replies; 28+ messages in thread
From: Julia Lawall @ 2015-11-14 10:06 UTC (permalink / raw)
To: Tadeusz Struk
Cc: kernel-janitors, Herbert Xu, David S. Miller, qat-linux,
linux-crypto, linux-kernel
This pci_error_handlers structure is never modified, like all the other
pci_error_handlers structures, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
There are no dependencies between these patches.
drivers/crypto/qat/qat_common/adf_aer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/qat/qat_common/adf_aer.c b/drivers/crypto/qat/qat_common/adf_aer.c
index 0a5ca0b..d24cfd4 100644
--- a/drivers/crypto/qat/qat_common/adf_aer.c
+++ b/drivers/crypto/qat/qat_common/adf_aer.c
@@ -197,7 +197,7 @@ static void adf_resume(struct pci_dev *pdev)
dev_info(&pdev->dev, "Device is up and runnig\n");
}
-static struct pci_error_handlers adf_err_handler = {
+static const struct pci_error_handlers adf_err_handler = {
.error_detected = adf_error_detected,
.slot_reset = adf_slot_reset,
.resume = adf_resume,
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 7/9] crypto: constify pci_error_handlers structures
@ 2015-11-14 10:06 ` Julia Lawall
0 siblings, 0 replies; 28+ messages in thread
From: Julia Lawall @ 2015-11-14 10:06 UTC (permalink / raw)
To: Tadeusz Struk
Cc: kernel-janitors, Herbert Xu, David S. Miller, qat-linux,
linux-crypto, linux-kernel
This pci_error_handlers structure is never modified, like all the other
pci_error_handlers structures, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
There are no dependencies between these patches.
drivers/crypto/qat/qat_common/adf_aer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/qat/qat_common/adf_aer.c b/drivers/crypto/qat/qat_common/adf_aer.c
index 0a5ca0b..d24cfd4 100644
--- a/drivers/crypto/qat/qat_common/adf_aer.c
+++ b/drivers/crypto/qat/qat_common/adf_aer.c
@@ -197,7 +197,7 @@ static void adf_resume(struct pci_dev *pdev)
dev_info(&pdev->dev, "Device is up and runnig\n");
}
-static struct pci_error_handlers adf_err_handler = {
+static const struct pci_error_handlers adf_err_handler = {
.error_detected = adf_error_detected,
.slot_reset = adf_slot_reset,
.resume = adf_resume,
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 8/9] mpt3sas: constify pci_error_handlers structures
2015-11-14 10:06 ` Julia Lawall
@ 2015-11-14 10:07 ` Julia Lawall
-1 siblings, 0 replies; 28+ messages in thread
From: Julia Lawall @ 2015-11-14 10:07 UTC (permalink / raw)
To: Nagalakshmi Nandigama
Cc: kernel-janitors, Praveen Krishnamoorthy, Sreekanth Reddy,
Abhijit Mahajan, James E.J. Bottomley, MPT-FusionLinux.pdl,
linux-scsi, linux-kernel
This pci_error_handlers structure is never modified, like all the other
pci_error_handlers structures, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
There are no dependencies between these patches.
drivers/scsi/mpt3sas/mpt3sas_scsih.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c b/drivers/scsi/mpt3sas/mpt3sas_scsih.c
index 9e68432..39678e7 100644
--- a/drivers/scsi/mpt3sas/mpt3sas_scsih.c
+++ b/drivers/scsi/mpt3sas/mpt3sas_scsih.c
@@ -8557,7 +8557,7 @@ static struct raid_function_template mpt3sas_raid_functions = {
.get_state = _scsih_get_state,
};
-static struct pci_error_handlers _scsih_err_handler = {
+static const struct pci_error_handlers _scsih_err_handler = {
.error_detected = _scsih_pci_error_detected,
.mmio_enabled = _scsih_pci_mmio_enabled,
.slot_reset = _scsih_pci_slot_reset,
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 8/9] mpt3sas: constify pci_error_handlers structures
@ 2015-11-14 10:07 ` Julia Lawall
0 siblings, 0 replies; 28+ messages in thread
From: Julia Lawall @ 2015-11-14 10:07 UTC (permalink / raw)
To: Nagalakshmi Nandigama
Cc: kernel-janitors, Praveen Krishnamoorthy, Sreekanth Reddy,
Abhijit Mahajan, James E.J. Bottomley, MPT-FusionLinux.pdl,
linux-scsi, linux-kernel
This pci_error_handlers structure is never modified, like all the other
pci_error_handlers structures, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
There are no dependencies between these patches.
drivers/scsi/mpt3sas/mpt3sas_scsih.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c b/drivers/scsi/mpt3sas/mpt3sas_scsih.c
index 9e68432..39678e7 100644
--- a/drivers/scsi/mpt3sas/mpt3sas_scsih.c
+++ b/drivers/scsi/mpt3sas/mpt3sas_scsih.c
@@ -8557,7 +8557,7 @@ static struct raid_function_template mpt3sas_raid_functions = {
.get_state = _scsih_get_state,
};
-static struct pci_error_handlers _scsih_err_handler = {
+static const struct pci_error_handlers _scsih_err_handler = {
.error_detected = _scsih_pci_error_detected,
.mmio_enabled = _scsih_pci_mmio_enabled,
.slot_reset = _scsih_pci_slot_reset,
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 9/9] vfio-pci: constify pci_error_handlers structures
2015-11-14 10:06 ` Julia Lawall
@ 2015-11-14 10:07 ` Julia Lawall
-1 siblings, 0 replies; 28+ messages in thread
From: Julia Lawall @ 2015-11-14 10:07 UTC (permalink / raw)
To: Alex Williamson; +Cc: kernel-janitors, kvm, linux-kernel
This pci_error_handlers structure is never modified, like all the other
pci_error_handlers structures, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
There are no dependencies between these patches.
drivers/vfio/pci/vfio_pci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers/vfio/pci/vfio_pci.c
index 32b88bd..2760a7b 100644
--- a/drivers/vfio/pci/vfio_pci.c
+++ b/drivers/vfio/pci/vfio_pci.c
@@ -1035,7 +1035,7 @@ static pci_ers_result_t vfio_pci_aer_err_detected(struct pci_dev *pdev,
return PCI_ERS_RESULT_CAN_RECOVER;
}
-static struct pci_error_handlers vfio_err_handlers = {
+static const struct pci_error_handlers vfio_err_handlers = {
.error_detected = vfio_pci_aer_err_detected,
};
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 9/9] vfio-pci: constify pci_error_handlers structures
@ 2015-11-14 10:07 ` Julia Lawall
0 siblings, 0 replies; 28+ messages in thread
From: Julia Lawall @ 2015-11-14 10:07 UTC (permalink / raw)
To: Alex Williamson; +Cc: kernel-janitors, kvm, linux-kernel
This pci_error_handlers structure is never modified, like all the other
pci_error_handlers structures, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
There are no dependencies between these patches.
drivers/vfio/pci/vfio_pci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers/vfio/pci/vfio_pci.c
index 32b88bd..2760a7b 100644
--- a/drivers/vfio/pci/vfio_pci.c
+++ b/drivers/vfio/pci/vfio_pci.c
@@ -1035,7 +1035,7 @@ static pci_ers_result_t vfio_pci_aer_err_detected(struct pci_dev *pdev,
return PCI_ERS_RESULT_CAN_RECOVER;
}
-static struct pci_error_handlers vfio_err_handlers = {
+static const struct pci_error_handlers vfio_err_handlers = {
.error_detected = vfio_pci_aer_err_detected,
};
^ permalink raw reply related [flat|nested] 28+ messages in thread
* Re: [PATCH 5/9] sfc: constify pci_error_handlers structures
2015-11-14 10:06 ` Julia Lawall
@ 2015-11-16 20:07 ` David Miller
-1 siblings, 0 replies; 28+ messages in thread
From: David Miller @ 2015-11-16 20:07 UTC (permalink / raw)
To: Julia.Lawall
Cc: linux-net-drivers, kernel-janitors, sshah, netdev, linux-kernel
From: Julia Lawall <Julia.Lawall@lip6.fr>
Date: Sat, 14 Nov 2015 11:06:57 +0100
> This pci_error_handlers structure is never modified, like all the other
> pci_error_handlers structures, so declare it as const.
>
> Done with the help of Coccinelle.
>
> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Applied.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH 5/9] sfc: constify pci_error_handlers structures
@ 2015-11-16 20:07 ` David Miller
0 siblings, 0 replies; 28+ messages in thread
From: David Miller @ 2015-11-16 20:07 UTC (permalink / raw)
To: Julia.Lawall
Cc: linux-net-drivers, kernel-janitors, sshah, netdev, linux-kernel
From: Julia Lawall <Julia.Lawall@lip6.fr>
Date: Sat, 14 Nov 2015 11:06:57 +0100
> This pci_error_handlers structure is never modified, like all the other
> pci_error_handlers structures, so declare it as const.
>
> Done with the help of Coccinelle.
>
> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Applied.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH 1/9] net: cavium: liquidio: constify pci_error_handlers structures
2015-11-14 10:06 ` Julia Lawall
@ 2015-11-16 20:07 ` David Miller
-1 siblings, 0 replies; 28+ messages in thread
From: David Miller @ 2015-11-16 20:07 UTC (permalink / raw)
To: Julia.Lawall
Cc: derek.chickles, kernel-janitors, satananda.burla, felix.manlunas,
raghu.vatsavayi, netdev, linux-kernel
From: Julia Lawall <Julia.Lawall@lip6.fr>
Date: Sat, 14 Nov 2015 11:06:53 +0100
> This pci_error_handlers structure is never modified, like all the other
> pci_error_handlers structures, so declare it as const.
>
> Done with the help of Coccinelle.
>
> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Applied.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH 1/9] net: cavium: liquidio: constify pci_error_handlers structures
@ 2015-11-16 20:07 ` David Miller
0 siblings, 0 replies; 28+ messages in thread
From: David Miller @ 2015-11-16 20:07 UTC (permalink / raw)
To: Julia.Lawall
Cc: derek.chickles, kernel-janitors, satananda.burla, felix.manlunas,
raghu.vatsavayi, netdev, linux-kernel
From: Julia Lawall <Julia.Lawall@lip6.fr>
Date: Sat, 14 Nov 2015 11:06:53 +0100
> This pci_error_handlers structure is never modified, like all the other
> pci_error_handlers structures, so declare it as const.
>
> Done with the help of Coccinelle.
>
> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Applied.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH 7/9] crypto: constify pci_error_handlers structures
2015-11-14 10:06 ` Julia Lawall
@ 2015-11-17 14:09 ` Herbert Xu
-1 siblings, 0 replies; 28+ messages in thread
From: Herbert Xu @ 2015-11-17 14:09 UTC (permalink / raw)
To: Julia Lawall
Cc: Tadeusz Struk, kernel-janitors, David S. Miller, qat-linux,
linux-crypto, linux-kernel
On Sat, Nov 14, 2015 at 11:06:59AM +0100, Julia Lawall wrote:
> This pci_error_handlers structure is never modified, like all the other
> pci_error_handlers structures, so declare it as const.
>
> Done with the help of Coccinelle.
>
> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH 7/9] crypto: constify pci_error_handlers structures
@ 2015-11-17 14:09 ` Herbert Xu
0 siblings, 0 replies; 28+ messages in thread
From: Herbert Xu @ 2015-11-17 14:09 UTC (permalink / raw)
To: Julia Lawall
Cc: Tadeusz Struk, kernel-janitors, David S. Miller, qat-linux,
linux-crypto, linux-kernel
On Sat, Nov 14, 2015 at 11:06:59AM +0100, Julia Lawall wrote:
> This pci_error_handlers structure is never modified, like all the other
> pci_error_handlers structures, so declare it as const.
>
> Done with the help of Coccinelle.
>
> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH 9/9] vfio-pci: constify pci_error_handlers structures
2015-11-14 10:07 ` Julia Lawall
@ 2015-11-19 23:55 ` Alex Williamson
-1 siblings, 0 replies; 28+ messages in thread
From: Alex Williamson @ 2015-11-19 23:55 UTC (permalink / raw)
To: Julia Lawall; +Cc: kernel-janitors, kvm, linux-kernel
On Sat, 2015-11-14 at 11:07 +0100, Julia Lawall wrote:
> This pci_error_handlers structure is never modified, like all the other
> pci_error_handlers structures, so declare it as const.
>
> Done with the help of Coccinelle.
>
> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
>
> ---
> There are no dependencies between these patches.
>
> drivers/vfio/pci/vfio_pci.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers/vfio/pci/vfio_pci.c
> index 32b88bd..2760a7b 100644
> --- a/drivers/vfio/pci/vfio_pci.c
> +++ b/drivers/vfio/pci/vfio_pci.c
> @@ -1035,7 +1035,7 @@ static pci_ers_result_t vfio_pci_aer_err_detected(struct pci_dev *pdev,
> return PCI_ERS_RESULT_CAN_RECOVER;
> }
>
> -static struct pci_error_handlers vfio_err_handlers = {
> +static const struct pci_error_handlers vfio_err_handlers = {
> .error_detected = vfio_pci_aer_err_detected,
> };
>
>
Thank you! I'll queue this one in my tree.
Alex
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH 9/9] vfio-pci: constify pci_error_handlers structures
@ 2015-11-19 23:55 ` Alex Williamson
0 siblings, 0 replies; 28+ messages in thread
From: Alex Williamson @ 2015-11-19 23:55 UTC (permalink / raw)
To: Julia Lawall; +Cc: kernel-janitors, kvm, linux-kernel
On Sat, 2015-11-14 at 11:07 +0100, Julia Lawall wrote:
> This pci_error_handlers structure is never modified, like all the other
> pci_error_handlers structures, so declare it as const.
>
> Done with the help of Coccinelle.
>
> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
>
> ---
> There are no dependencies between these patches.
>
> drivers/vfio/pci/vfio_pci.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers/vfio/pci/vfio_pci.c
> index 32b88bd..2760a7b 100644
> --- a/drivers/vfio/pci/vfio_pci.c
> +++ b/drivers/vfio/pci/vfio_pci.c
> @@ -1035,7 +1035,7 @@ static pci_ers_result_t vfio_pci_aer_err_detected(struct pci_dev *pdev,
> return PCI_ERS_RESULT_CAN_RECOVER;
> }
>
> -static struct pci_error_handlers vfio_err_handlers = {
> +static const struct pci_error_handlers vfio_err_handlers = {
> .error_detected = vfio_pci_aer_err_detected,
> };
>
>
Thank you! I'll queue this one in my tree.
Alex
^ permalink raw reply [flat|nested] 28+ messages in thread
end of thread, other threads:[~2015-11-19 23:55 UTC | newest]
Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-14 10:06 [PATCH 0/9] constify pci_error_handlers structures Julia Lawall
2015-11-14 10:06 ` Julia Lawall
2015-11-14 10:06 ` [PATCH 1/9] net: cavium: liquidio: " Julia Lawall
2015-11-14 10:06 ` Julia Lawall
2015-11-16 20:07 ` David Miller
2015-11-16 20:07 ` David Miller
2015-11-14 10:06 ` [PATCH 2/9] GenWQE: " Julia Lawall
2015-11-14 10:06 ` Julia Lawall
2015-11-14 10:06 ` [PATCH 3/9] cxgb4/cxgb4vf/csiostor: " Julia Lawall
2015-11-14 10:06 ` Julia Lawall
2015-11-14 10:06 ` [PATCH 4/9] bfa: " Julia Lawall
2015-11-14 10:06 ` Julia Lawall
2015-11-14 10:06 ` [PATCH 5/9] sfc: " Julia Lawall
2015-11-14 10:06 ` Julia Lawall
2015-11-16 20:07 ` David Miller
2015-11-16 20:07 ` David Miller
2015-11-14 10:06 ` [PATCH 6/9] be2iscsi: " Julia Lawall
2015-11-14 10:06 ` Julia Lawall
2015-11-14 10:06 ` [PATCH 7/9] crypto: " Julia Lawall
2015-11-14 10:06 ` Julia Lawall
2015-11-17 14:09 ` Herbert Xu
2015-11-17 14:09 ` Herbert Xu
2015-11-14 10:07 ` [PATCH 8/9] mpt3sas: " Julia Lawall
2015-11-14 10:07 ` Julia Lawall
2015-11-14 10:07 ` [PATCH 9/9] vfio-pci: " Julia Lawall
2015-11-14 10:07 ` Julia Lawall
2015-11-19 23:55 ` Alex Williamson
2015-11-19 23:55 ` Alex Williamson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.