Author: Matt Roper <matthew.d.roper@intel.com> We eventually want to calculate watermark values at atomic ‘check’ time instead of atomic ‘commit’ time so that any requested configurations that result in impossible watermark requirements are properly rejected. The first step along this path is to allocate the DDB at atomic ‘check’ time. As we perform this transition, allow …
Category: Coccinelle
May 05 2016
mailbox: Fix devm_ioremap_resource error detection code
Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> devm_ioremap_resource returns an ERR_PTR value, not NULL, on failure. The Coccinelle semantic patch used to make this change is as follows: @@ expression e,e1; statement S; @@ *e = devm_ioremap_resource(…); if (!e1) S Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Jassi Brar — drivers/mailbox/mailbox-sti.c | 4 ++– 1 file changed, 2 insertions(+), …
May 02 2016
md-cluster: fix ifnullfree.cocci warnings
Author: kbuild test robot <lkp@intel.com> drivers/md/bitmap.c:2049:6-11: WARNING: NULL check before freeing functions like kfree, debugfs_remove, debugfs_remove_recursive or usb_free_urb is not needed. Maybe consider reorganizing relevant code to avoid passing NULL values. NULL check before some freeing functions is not needed. Based on checkpatch warning “kfree(NULL) is safe this check is probably not required” and kfreeaddr.cocci …
May 02 2016
intel_telemetry: Constify telemetry_core_ops structures
Author: Julia Lawall <Julia.Lawall@lip6.fr> The telemetry_core_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Signed-off-by: Darren Hart — arch/x86/include/asm/intel_telemetry.h | 2 +- drivers/platform/x86/intel_telemetry_core.c | 6 +++— drivers/platform/x86/intel_telemetry_pltdrv.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff –git a/arch/x86/include/asm/intel_telemetry.h b/arch/x86/include/asm/intel_telemetry.h index ed65fe7..85029b5 100644 …
May 01 2016
rtlwifi: rtl818x: constify rtl_intf_ops structures
Author: Julia Lawall <Julia.Lawall@lip6.fr> The rtl_intf_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Signed-off-by: Kalle Valo — drivers/net/wireless/realtek/rtlwifi/pci.c | 2 +- drivers/net/wireless/realtek/rtlwifi/pci.h | 2 +- drivers/net/wireless/realtek/rtlwifi/usb.c | 2 +- drivers/net/wireless/realtek/rtlwifi/wifi.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff –git a/drivers/net/wireless/realtek/rtlwifi/pci.c …
May 01 2016
VSOCK: constify vsock_transport structure
Author: Julia Lawall <julia.lawall@lip6.fr> The vsock_transport structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Signed-off-by: David S. Miller — net/vmw_vsock/vmci_transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff –git a/net/vmw_vsock/vmci_transport.c b/net/vmw_vsock/vmci_transport.c index 5621473..4120b7a 100644 — a/net/vmw_vsock/vmci_transport.c +++ b/net/vmw_vsock/vmci_transport.c @@ -2051,7 +2051,7 …
May 01 2016
drivers: net: xgene: constify xgene_cle_ops structure
Author: Julia Lawall <julia.lawall@lip6.fr> The xgene_cle_ops structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Acked-by: Iyappan Subramanian Signed-off-by: David S. Miller — drivers/net/ethernet/apm/xgene/xgene_enet_cle.c | 2 +- drivers/net/ethernet/apm/xgene/xgene_enet_cle.h | 2 +- drivers/net/ethernet/apm/xgene/xgene_enet_main.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff –git a/drivers/net/ethernet/apm/xgene/xgene_enet_cle.c …
May 01 2016
i40iw: constify i40iw_vf_cqp_ops structure
Author: Julia Lawall <Julia.Lawall@lip6.fr> The i40iw_vf_cqp_ops structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Reviewed-by: Leon Romanovsky Signed-off-by: Doug Ledford — drivers/infiniband/hw/i40iw/i40iw_type.h | 2 +- drivers/infiniband/hw/i40iw/i40iw_vf.c | 2 +- drivers/infiniband/hw/i40iw/i40iw_vf.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff –git a/drivers/infiniband/hw/i40iw/i40iw_type.h b/drivers/infiniband/hw/i40iw/i40iw_type.h …
May 01 2016
i40iw: constify i40iw_vf_cqp_ops structure
Author: Julia Lawall <Julia.Lawall@lip6.fr> The i40iw_vf_cqp_ops structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Reviewed-by: Leon Romanovsky Signed-off-by: Doug Ledford — drivers/infiniband/hw/i40iw/i40iw_type.h | 2 +- drivers/infiniband/hw/i40iw/i40iw_vf.c | 2 +- drivers/infiniband/hw/i40iw/i40iw_vf.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff –git a/drivers/infiniband/hw/i40iw/i40iw_type.h b/drivers/infiniband/hw/i40iw/i40iw_type.h …
May 01 2016
i40iw: constify i40iw_vf_cqp_ops structure
Author: Julia Lawall <Julia.Lawall@lip6.fr> The i40iw_vf_cqp_ops structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Reviewed-by: Leon Romanovsky Signed-off-by: Doug Ledford — drivers/infiniband/hw/i40iw/i40iw_type.h | 2 +- drivers/infiniband/hw/i40iw/i40iw_vf.c | 2 +- drivers/infiniband/hw/i40iw/i40iw_vf.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff –git a/drivers/infiniband/hw/i40iw/i40iw_type.h b/drivers/infiniband/hw/i40iw/i40iw_type.h …