Commit 8a519235 authored by James Clark's avatar James Clark Committed by Suzuki K Poulose

coresight: Fix uninitialized struct warnings

These warnings would be hit with the following W=1 build change so
initialize all structs properly.
Signed-off-by: default avatarJames Clark <james.clark@arm.com>
Signed-off-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20231123120459.287578-2-james.clark@arm.com
parent 841c3516
...@@ -974,7 +974,7 @@ static const struct amba_id cti_ids[] = { ...@@ -974,7 +974,7 @@ static const struct amba_id cti_ids[] = {
CS_AMBA_ID(0x000bb9aa), /* CTI - C-A73 */ CS_AMBA_ID(0x000bb9aa), /* CTI - C-A73 */
CS_AMBA_UCI_ID(0x000bb9da, uci_id_cti), /* CTI - C-A35 */ CS_AMBA_UCI_ID(0x000bb9da, uci_id_cti), /* CTI - C-A35 */
CS_AMBA_UCI_ID(0x000bb9ed, uci_id_cti), /* Coresight CTI (SoC 600) */ CS_AMBA_UCI_ID(0x000bb9ed, uci_id_cti), /* Coresight CTI (SoC 600) */
{ 0, 0}, { 0, 0, NULL },
}; };
MODULE_DEVICE_TABLE(amba, cti_ids); MODULE_DEVICE_TABLE(amba, cti_ids);
......
...@@ -837,7 +837,7 @@ static const struct amba_id etb_ids[] = { ...@@ -837,7 +837,7 @@ static const struct amba_id etb_ids[] = {
.id = 0x000bb907, .id = 0x000bb907,
.mask = 0x000fffff, .mask = 0x000fffff,
}, },
{ 0, 0}, { 0, 0, NULL },
}; };
MODULE_DEVICE_TABLE(amba, etb_ids); MODULE_DEVICE_TABLE(amba, etb_ids);
......
...@@ -1003,7 +1003,7 @@ static const struct amba_id etm_ids[] = { ...@@ -1003,7 +1003,7 @@ static const struct amba_id etm_ids[] = {
CS_AMBA_ID_DATA(0x000bb95f, "PTM 1.1"), CS_AMBA_ID_DATA(0x000bb95f, "PTM 1.1"),
/* PTM 1.1 Qualcomm */ /* PTM 1.1 Qualcomm */
CS_AMBA_ID_DATA(0x000b006f, "PTM 1.1"), CS_AMBA_ID_DATA(0x000b006f, "PTM 1.1"),
{ 0, 0}, { 0, 0, NULL},
}; };
MODULE_DEVICE_TABLE(amba, etm_ids); MODULE_DEVICE_TABLE(amba, etm_ids);
......
...@@ -2390,7 +2390,7 @@ static const struct of_device_id etm4_sysreg_match[] = { ...@@ -2390,7 +2390,7 @@ static const struct of_device_id etm4_sysreg_match[] = {
#ifdef CONFIG_ACPI #ifdef CONFIG_ACPI
static const struct acpi_device_id etm4x_acpi_ids[] = { static const struct acpi_device_id etm4x_acpi_ids[] = {
{"ARMHC500", 0}, /* ARM CoreSight ETM4x */ {"ARMHC500", 0, 0, 0}, /* ARM CoreSight ETM4x */
{} {}
}; };
MODULE_DEVICE_TABLE(acpi, etm4x_acpi_ids); MODULE_DEVICE_TABLE(acpi, etm4x_acpi_ids);
......
...@@ -350,7 +350,7 @@ MODULE_DEVICE_TABLE(of, static_funnel_match); ...@@ -350,7 +350,7 @@ MODULE_DEVICE_TABLE(of, static_funnel_match);
#ifdef CONFIG_ACPI #ifdef CONFIG_ACPI
static const struct acpi_device_id static_funnel_ids[] = { static const struct acpi_device_id static_funnel_ids[] = {
{"ARMHC9FE", 0}, {"ARMHC9FE", 0, 0, 0},
{}, {},
}; };
...@@ -391,7 +391,7 @@ static const struct amba_id dynamic_funnel_ids[] = { ...@@ -391,7 +391,7 @@ static const struct amba_id dynamic_funnel_ids[] = {
.id = 0x000bb9eb, .id = 0x000bb9eb,
.mask = 0x000fffff, .mask = 0x000fffff,
}, },
{ 0, 0}, { 0, 0, NULL },
}; };
MODULE_DEVICE_TABLE(amba, dynamic_funnel_ids); MODULE_DEVICE_TABLE(amba, dynamic_funnel_ids);
......
...@@ -363,7 +363,7 @@ MODULE_DEVICE_TABLE(of, static_replicator_match); ...@@ -363,7 +363,7 @@ MODULE_DEVICE_TABLE(of, static_replicator_match);
#ifdef CONFIG_ACPI #ifdef CONFIG_ACPI
static const struct acpi_device_id static_replicator_acpi_ids[] = { static const struct acpi_device_id static_replicator_acpi_ids[] = {
{"ARMHC985", 0}, /* ARM CoreSight Static Replicator */ {"ARMHC985", 0, 0, 0}, /* ARM CoreSight Static Replicator */
{} {}
}; };
......
...@@ -950,7 +950,7 @@ static const struct dev_pm_ops stm_dev_pm_ops = { ...@@ -950,7 +950,7 @@ static const struct dev_pm_ops stm_dev_pm_ops = {
static const struct amba_id stm_ids[] = { static const struct amba_id stm_ids[] = {
CS_AMBA_ID_DATA(0x000bb962, "STM32"), CS_AMBA_ID_DATA(0x000bb962, "STM32"),
CS_AMBA_ID_DATA(0x000bb963, "STM500"), CS_AMBA_ID_DATA(0x000bb963, "STM500"),
{ 0, 0}, { 0, 0, NULL },
}; };
MODULE_DEVICE_TABLE(amba, stm_ids); MODULE_DEVICE_TABLE(amba, stm_ids);
......
...@@ -594,7 +594,7 @@ static const struct amba_id tmc_ids[] = { ...@@ -594,7 +594,7 @@ static const struct amba_id tmc_ids[] = {
CS_AMBA_ID(0x000bb9e9), CS_AMBA_ID(0x000bb9e9),
/* Coresight SoC 600 TMC-ETF */ /* Coresight SoC 600 TMC-ETF */
CS_AMBA_ID(0x000bb9ea), CS_AMBA_ID(0x000bb9ea),
{ 0, 0}, { 0, 0, NULL },
}; };
MODULE_DEVICE_TABLE(amba, tmc_ids); MODULE_DEVICE_TABLE(amba, tmc_ids);
......
...@@ -300,7 +300,7 @@ static struct amba_id tpda_ids[] = { ...@@ -300,7 +300,7 @@ static struct amba_id tpda_ids[] = {
.id = 0x000f0f00, .id = 0x000f0f00,
.mask = 0x000fff00, .mask = 0x000fff00,
}, },
{ 0, 0}, { 0, 0, NULL },
}; };
static struct amba_driver tpda_driver = { static struct amba_driver tpda_driver = {
......
...@@ -933,7 +933,7 @@ static struct amba_id tpdm_ids[] = { ...@@ -933,7 +933,7 @@ static struct amba_id tpdm_ids[] = {
.id = 0x000f0e00, .id = 0x000f0e00,
.mask = 0x000fff00, .mask = 0x000fff00,
}, },
{ 0, 0}, { 0, 0, NULL },
}; };
static struct amba_driver tpdm_driver = { static struct amba_driver tpdm_driver = {
......
...@@ -218,7 +218,7 @@ static const struct amba_id tpiu_ids[] = { ...@@ -218,7 +218,7 @@ static const struct amba_id tpiu_ids[] = {
.id = 0x000bb9e7, .id = 0x000bb9e7,
.mask = 0x000fffff, .mask = 0x000fffff,
}, },
{ 0, 0}, { 0, 0, NULL },
}; };
MODULE_DEVICE_TABLE(amba, tpiu_ids); MODULE_DEVICE_TABLE(amba, tpiu_ids);
......
...@@ -586,7 +586,7 @@ static void smb_remove(struct platform_device *pdev) ...@@ -586,7 +586,7 @@ static void smb_remove(struct platform_device *pdev)
#ifdef CONFIG_ACPI #ifdef CONFIG_ACPI
static const struct acpi_device_id ultrasoc_smb_acpi_match[] = { static const struct acpi_device_id ultrasoc_smb_acpi_match[] = {
{"HISI03A1", 0}, {"HISI03A1", 0, 0, 0},
{} {}
}; };
MODULE_DEVICE_TABLE(acpi, ultrasoc_smb_acpi_match); MODULE_DEVICE_TABLE(acpi, ultrasoc_smb_acpi_match);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment