]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: prestera: add missing ABI compatibility check
authorMaksym Glubokiy <maksym.glubokiy@plvision.eu>
Thu, 18 Aug 2022 11:14:19 +0000 (14:14 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 19 Aug 2022 23:52:24 +0000 (16:52 -0700)
Size-check a type used for FW communication is packed as expected.

Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
Signed-off-by: Maksym Glubokiy <maksym.glubokiy@plvision.eu>
Link: https://lore.kernel.org/r/20220818111419.414877-1-maksym.glubokiy@plvision.eu
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/prestera/prestera_hw.c

index 962d7e0c0cb5819150e61d0cf0fe6fffbd14f49c..e0e9ae34ceea2cbcd1f3e71f2b69f16452345fe7 100644 (file)
@@ -745,6 +745,7 @@ static void prestera_hw_build_tests(void)
        BUILD_BUG_ON(sizeof(struct prestera_msg_rif_resp) != 12);
        BUILD_BUG_ON(sizeof(struct prestera_msg_vr_resp) != 12);
        BUILD_BUG_ON(sizeof(struct prestera_msg_policer_resp) != 12);
+       BUILD_BUG_ON(sizeof(struct prestera_msg_flood_domain_create_resp) != 12);
 
        /* check events */
        BUILD_BUG_ON(sizeof(struct prestera_msg_event_port) != 20);