OSDN Git Service

net: ipa: get rid of status size constraint
authorAlex Elder <elder@linaro.org>
Fri, 5 Feb 2021 22:10:59 +0000 (16:10 -0600)
committerJakub Kicinski <kuba@kernel.org>
Sat, 6 Feb 2021 22:57:19 +0000 (14:57 -0800)
There is a build-time check that the packet status structure is a
multiple of 4 bytes in size.  It's not clear where that constraint
comes from, but the structure defines what hardware provides so its
definition won't change.  Get rid of the check; it adds no value.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/ipa_endpoint.c

index bff5d6f..7209ee3 100644 (file)
@@ -174,9 +174,6 @@ static bool ipa_endpoint_data_valid(struct ipa *ipa, u32 count,
        enum ipa_endpoint_name name;
        u32 limit;
 
-       /* Not sure where this constraint come from... */
-       BUILD_BUG_ON(sizeof(struct ipa_status) % 4);
-
        if (count > IPA_ENDPOINT_COUNT) {
                dev_err(dev, "too many endpoints specified (%u > %u)\n",
                        count, IPA_ENDPOINT_COUNT);