coresight: Fix uninitialized struct warnings
authorJames Clark <james.clark@arm.com>
Thu, 23 Nov 2023 12:04:56 +0000 (12:04 +0000)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 12 Feb 2024 10:18:41 +0000 (10:18 +0000)
These warnings would be hit with the following W=1 build change so
initialize all structs properly.

Signed-off-by: James Clark <james.clark@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20231123120459.287578-2-james.clark@arm.com
12 files changed:
drivers/hwtracing/coresight/coresight-cti-core.c
drivers/hwtracing/coresight/coresight-etb10.c
drivers/hwtracing/coresight/coresight-etm3x-core.c
drivers/hwtracing/coresight/coresight-etm4x-core.c
drivers/hwtracing/coresight/coresight-funnel.c
drivers/hwtracing/coresight/coresight-replicator.c
drivers/hwtracing/coresight/coresight-stm.c
drivers/hwtracing/coresight/coresight-tmc-core.c
drivers/hwtracing/coresight/coresight-tpda.c
drivers/hwtracing/coresight/coresight-tpdm.c
drivers/hwtracing/coresight/coresight-tpiu.c
drivers/hwtracing/coresight/ultrasoc-smb.c

index 3999d0a2cb6026d1d2315299045e87e2d18ae056..e805617020d06a9d23b11b53540021cba0deb71e 100644 (file)
@@ -974,7 +974,7 @@ static const struct amba_id cti_ids[] = {
        CS_AMBA_ID(0x000bb9aa), /* CTI - C-A73 */
        CS_AMBA_UCI_ID(0x000bb9da, uci_id_cti), /* CTI - C-A35 */
        CS_AMBA_UCI_ID(0x000bb9ed, uci_id_cti), /* Coresight CTI (SoC 600) */
-       { 0, 0},
+       { 0, 0, NULL },
 };
 
 MODULE_DEVICE_TABLE(amba, cti_ids);
index fa80039e0821f095b954d445e913c8f516cef4f4..05e21cffd33bd06bc6915d8f614cab8679269d6e 100644 (file)
@@ -837,7 +837,7 @@ static const struct amba_id etb_ids[] = {
                .id     = 0x000bb907,
                .mask   = 0x000fffff,
        },
-       { 0, 0},
+       { 0, 0, NULL },
 };
 
 MODULE_DEVICE_TABLE(amba, etb_ids);
index 116a91d90ac20a86ba7650b6b2f466ce5e1fa7e2..8da1622e0837aab68918722682d6de97474d3346 100644 (file)
@@ -1003,7 +1003,7 @@ static const struct amba_id etm_ids[] = {
        CS_AMBA_ID_DATA(0x000bb95f, "PTM 1.1"),
        /* PTM 1.1 Qualcomm */
        CS_AMBA_ID_DATA(0x000b006f, "PTM 1.1"),
-       { 0, 0},
+       { 0, 0, NULL},
 };
 
 MODULE_DEVICE_TABLE(amba, etm_ids);
index ce1995a2827f01bbe164eaa95a845e9707254364..c5ea808ea66233949c340de127d99eb02ec4dcb9 100644 (file)
@@ -2390,7 +2390,7 @@ static const struct of_device_id etm4_sysreg_match[] = {
 
 #ifdef CONFIG_ACPI
 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);
index a5b1fc787766a0eaea9733374a1288817ec63c24..ef1a0abfee4e912f62e66cac5fc92d3a72ab6e29 100644 (file)
@@ -350,7 +350,7 @@ MODULE_DEVICE_TABLE(of, static_funnel_match);
 
 #ifdef CONFIG_ACPI
 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[] = {
                .id     = 0x000bb9eb,
                .mask   = 0x000fffff,
        },
-       { 0, 0},
+       { 0, 0, NULL },
 };
 
 MODULE_DEVICE_TABLE(amba, dynamic_funnel_ids);
index 91d93060dda5355c3de3fcf04498918547f8c584..73452d9dc13b261f2766b38a99c5aa3fce020744 100644 (file)
@@ -363,7 +363,7 @@ MODULE_DEVICE_TABLE(of, static_replicator_match);
 
 #ifdef CONFIG_ACPI
 static const struct acpi_device_id static_replicator_acpi_ids[] = {
-       {"ARMHC985", 0}, /* ARM CoreSight Static Replicator */
+       {"ARMHC985", 0, 0, 0}, /* ARM CoreSight Static Replicator */
        {}
 };
 
index a1c27c901ad17bb26af078f0628e315716f29142..891ee64efed8773b5fdcddedd2485883fe3628dc 100644 (file)
@@ -950,7 +950,7 @@ static const struct dev_pm_ops stm_dev_pm_ops = {
 static const struct amba_id stm_ids[] = {
        CS_AMBA_ID_DATA(0x000bb962, "STM32"),
        CS_AMBA_ID_DATA(0x000bb963, "STM500"),
-       { 0, 0},
+       { 0, 0, NULL },
 };
 
 MODULE_DEVICE_TABLE(amba, stm_ids);
index 7ec5365e2b6429dcc3da499d7cef9ba2ab0967a5..39bae35d4ffd390ede7f881fcfac1daab32afd31 100644 (file)
@@ -594,7 +594,7 @@ static const struct amba_id tmc_ids[] = {
        CS_AMBA_ID(0x000bb9e9),
        /* Coresight SoC 600 TMC-ETF */
        CS_AMBA_ID(0x000bb9ea),
-       { 0, 0},
+       { 0, 0, NULL },
 };
 
 MODULE_DEVICE_TABLE(amba, tmc_ids);
index 5f82737c37bba5b063c8a80c86e78227b7759cc9..4ac954f4bc136fc71a0f7e96b7781b6f729f45dc 100644 (file)
@@ -300,7 +300,7 @@ static struct amba_id tpda_ids[] = {
                .id     = 0x000f0f00,
                .mask   = 0x000fff00,
        },
-       { 0, 0},
+       { 0, 0, NULL },
 };
 
 static struct amba_driver tpda_driver = {
index 97654aa4b772a07307f798ed93a79fb760960ed0..bd13a548375caad8d0fd09b4fff16c7c76da98e1 100644 (file)
@@ -933,7 +933,7 @@ static struct amba_id tpdm_ids[] = {
                .id = 0x000f0e00,
                .mask = 0x000fff00,
        },
-       { 0, 0},
+       { 0, 0, NULL },
 };
 
 static struct amba_driver tpdm_driver = {
index 59eac93fd6bb9eb6ce1fdb7fa83beaf0bf36cab4..7e69048ac9449db0202555d39ee35c660abbb5b3 100644 (file)
@@ -218,7 +218,7 @@ static const struct amba_id tpiu_ids[] = {
                .id     = 0x000bb9e7,
                .mask   = 0x000fffff,
        },
-       { 0, 0},
+       { 0, 0, NULL },
 };
 
 MODULE_DEVICE_TABLE(amba, tpiu_ids);
index 10e886455b8b711e32de891fac9c025d243eaabb..f0b6806202d19937c956d53d7e967195a2a55eb4 100644 (file)
@@ -586,7 +586,7 @@ static void smb_remove(struct platform_device *pdev)
 
 #ifdef CONFIG_ACPI
 static const struct acpi_device_id ultrasoc_smb_acpi_match[] = {
-       {"HISI03A1", 0},
+       {"HISI03A1", 0, 0, 0},
        {}
 };
 MODULE_DEVICE_TABLE(acpi, ultrasoc_smb_acpi_match);