From patchwork Wed Feb 3 15:28:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 12064599 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D912FC433E6 for ; Wed, 3 Feb 2021 15:31:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8F23364E55 for ; Wed, 3 Feb 2021 15:31:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233759AbhBCPa4 (ORCPT ); Wed, 3 Feb 2021 10:30:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234296AbhBCPa0 (ORCPT ); Wed, 3 Feb 2021 10:30:26 -0500 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B0DFC0617AA for ; Wed, 3 Feb 2021 07:29:07 -0800 (PST) Received: by mail-io1-xd2e.google.com with SMTP id e133so14797191iof.8 for ; Wed, 03 Feb 2021 07:29:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ktpO/jSmoOx5RVisI52DM6PeD/6jBsQ5/HisJypSEHU=; b=ihyMBeZHOYDRwhA97Y0VNZOgqPLUdd6gsZglBawAKVdApJXPCH/lhyadqr+oE127v9 K6/FiukWucBm8B9tC7LnshCTCphoaFBvC24l8GRkKXlMotsytnouOt+GqsxIY4L29Abl WAKPZhfTJvWI2RHAHxT9jUtDvX3Dkf7n2JfYWiDy/e5dFRzH1vHhct/AShg24zZoC+iW 8RxwxsWLIhjRqmmZGZLNq/dVGjA+A9YvrVNKEJ1gI2jDXBTTbMYfZ6b0paX1ru5OF0dD E7MQothzZl8yGZV+2Y4zOUjRg1csaOFrBx2urW4VyoaSpl5QqM36ZeKIaTk3FLdlY3uv /4UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ktpO/jSmoOx5RVisI52DM6PeD/6jBsQ5/HisJypSEHU=; b=FT2lOcbZMZzLq+TkCtIGCbAK6caJ2K4mqB1gvoVsSistpxctt3i056k5orhmzld/2U 7BJbQgyDYhY0iegHvubrM0Ky5Sd6LRqa7WhG8idWl9mlVNd3hkNxvyZsCGKXwQLXcA7J 1KgEwuWKhJK9TdXJ+DTaS6wJnrSrhpMcV41nQ0D+EpTYRVBE/KqUqV8aJGMRDM2iKEEv 9smxukUxK8V3mNWzYHHHPFMTfCTBNZFK8QTV2mwXBnFXqjlgGUQ7bUp0vie721NS9F2g cxyi19Kn/ate/ooAvLDSZXzQ4hUmgybF1Iuk+OqK0KwkzcWWE0TI7xSo0DMyy4CkhHLR GUyg== X-Gm-Message-State: AOAM531c1nz48nW2jpR8v+bziuHOSD/PwoG50X4wjqr0UgT0bpwzVxrL y9nYs0gv5YzCU9bD07nfTjRLgQ== X-Google-Smtp-Source: ABdhPJwVrKkfnIfJ3CqiS9OOtUlmZVeuA2jWkUayO93w1sLPsIMpVPLS9cnvDTMji4zlOmPdZtwfyw== X-Received: by 2002:a05:6638:271f:: with SMTP id m31mr3456968jav.23.1612366146675; Wed, 03 Feb 2021 07:29:06 -0800 (PST) Received: from beast.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id a15sm1119774ilb.11.2021.02.03.07.29.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Feb 2021 07:29:06 -0800 (PST) From: Alex Elder To: davem@davemloft.net, kuba@kernel.org Cc: elder@kernel.org, evgreen@chromium.org, bjorn.andersson@linaro.org, cpratapa@codeaurora.org, subashab@codeaurora.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 6/7] net: ipa: get rid of status size constraint Date: Wed, 3 Feb 2021 09:28:54 -0600 Message-Id: <20210203152855.11866-7-elder@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210203152855.11866-1-elder@linaro.org> References: <20210203152855.11866-1-elder@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org 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 --- drivers/net/ipa/ipa_endpoint.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ipa/ipa_endpoint.c b/drivers/net/ipa/ipa_endpoint.c index bff5d6ffd1186..7209ee3c31244 100644 --- a/drivers/net/ipa/ipa_endpoint.c +++ b/drivers/net/ipa/ipa_endpoint.c @@ -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);